36 const word motionType(SBMFCoeffs.
lookup(
"solidBodyMotionFunction"));
38 Info<<
"Selecting solid-body motion function " << motionType <<
endl;
40 dictionaryConstructorTable::iterator cstrIter =
41 dictionaryConstructorTablePtr_->find(motionType);
43 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 "solidBodyMotionFunction::New" 49 " const dictionary& SBMFCoeffs," 50 " const Time& runTime" 52 ) <<
"Unknown solidBodyMotionFunction type " 53 << motionType <<
nl <<
nl 54 <<
"Valid solidBodyMotionFunctions are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
static autoPtr< solidBodyMotionFunction > New(const dictionary &SBMFCoeffs, const Time &runTime)
Select constructed from the SBMFCoeffs dictionary and Time.
A class for handling words, derived from string.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.