Go to the documentation of this file.
57 const word functionType(functionDict.
lookup(
"type"));
61 Info<<
"Selecting function " << functionType <<
endl;
64 const_cast<Time&
>(t).libs().open
68 dictionaryConstructorTablePtr_
71 if (!dictionaryConstructorTablePtr_)
74 <<
"Unknown function type "
75 << functionType <<
nl <<
nl
76 <<
"Table of functionObjects is empty" <<
endl
80 dictionaryConstructorTable::iterator cstrIter =
81 dictionaryConstructorTablePtr_->find(functionType);
83 if (cstrIter == dictionaryConstructorTablePtr_->end())
86 <<
"Unknown function type "
87 << functionType <<
nl <<
nl
88 <<
"Valid functions are : " <<
nl
89 << dictionaryConstructorTablePtr_->sortedToc() <<
endl
113 return execute(
false);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from string.
defineDebugSwitchWithName(pointMVCWeight, "pointMVCWeight", 0)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~functionObject()
Destructor.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static autoPtr< functionObject > New(const word &name, const Time &, const dictionary &)
Select from dictionary, based on its "type" entry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool adjustTimeStep()
Called at the end of Time::adjustDeltaT() if adjustTime is true.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual bool end()
Called when Time::run() determines that the time-loop exits.
virtual bool timeSet()
Called when time was set at the end of the Time::operator++.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual const word & name() const
Name.
functionObject(const functionObject &)
Disallow default bitwise copy construct.
word name(const complex &)
Return a string representation of a complex.