33 namespace functionObjects
54 const word& defaultFieldName
60 &defaultFieldName == &noFieldName_ ?
word::null
61 : &defaultFieldName == &noDefaultFieldName_ ?
dict.
lookup<
word>(
"field")
62 :
dict.lookupOrDefault(
"field", defaultFieldName)
95 <<
" functionObjects::" <<
type() <<
" " <<
name()
96 <<
" failed to execute." <<
endl;
112 return writeObject(resultName_);
118 return clearObject(resultName_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A functionName is a word starting with '#'.
static const word noFieldName_
Word indicating that this fieldExpression has no field name.
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &functionName, const word &defaultFieldName=noDefaultFieldName_)
Construct from Time and dictionary.
static const word noDefaultFieldName_
Word indicating that this fieldExpression has no default field.
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.
static const word null
An empty word.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
List< word > wordList
A List of words.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.