33 namespace functionObjects
47 const word& functionName,
48 const word& defaultFieldName
57 : (defaultFieldName.empty() || fieldName_ != defaultFieldName)
58 ?
word(functionName +
'(' + fieldName_ +
')')
83 <<
" functionObjects::" <<
type() <<
" " <<
name()
84 <<
" failed to execute." <<
endl;
100 return writeObject(resultName_);
106 return clearObject(resultName_);
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual ~fieldExpression()
Destructor.
A class for handling words, derived from string.
virtual bool write()
Write the result field.
virtual bool execute()
Calculate the result field.
virtual bool clear()
Clear the result field from the objectRegistry.
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
List< word > wordList
A List of words.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual wordList fields() const
Return the field required.
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &functionName, const word &defaultFieldName=word::null)
Construct from Time and dictionary.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.