33 namespace functionObjects
48 const word& defaultFieldName
52 fieldName_(
dict.lookupOrDefault(
"field", defaultFieldName)),
56 ?
dict.lookup(
"result")
57 : (defaultFieldName.empty() || fieldName_ != defaultFieldName)
85 <<
" functionObjects::" <<
type() <<
" " <<
name()
86 <<
" failed to execute." <<
endl;
102 return writeObject(resultName_);
108 return clearObject(resultName_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A functionName is a word starting with '#'.
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &functionName, const word &defaultFieldName=word::null)
Construct from Time and dictionary.
virtual wordList fields() const
Return the field required.
virtual ~fieldExpression()
Destructor.
virtual bool clear()
Clear the result field from the objectRegistry.
virtual bool execute()
Calculate the result field.
virtual bool write()
Write the result field.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
virtual bool read(const dictionary &)
Read optional controls.
A class for handling words, derived from string.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
List< word > wordList
A List of words.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.