37 #ifndef functionObjects_fieldsExpression_H 38 #define functionObjects_fieldsExpression_H 47 namespace functionObjects
79 template<
class Type,
class FOType>
83 template<
class Type,
class FOType>
88 template<
class FOType>
91 virtual bool calc() = 0;
137 virtual bool write();
140 virtual bool clear();
virtual bool write()
Write the result fields.
const word & name() const
Return the name of this functionObject.
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool calcAllTypes(FOType &fo)
Call 'calcType' for the given functionObject.
virtual bool read(const dictionary &)
Read the fieldsExpression data.
static const List< word > & null()
Return a null List.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
wordList fieldNames_
Names of fields to process.
static List< word > fieldNames
virtual bool execute()
Calculate the result fields.
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
A class for handling words, derived from string.
virtual bool clear()
Clear the result fields from the objectRegistry.
static const word null
An empty word.
virtual ~fieldsExpression()
Destructor.
bool calcFieldTypes(FOType &fo)
Call 'calcFieldType' for the given functionObject.
word resultName_
Name of result fields.
bool calcType(FOType &fo)
Call 'calcFieldTypes' for the given 'Type' and functionObject.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
TypeName("fieldsExpression")
Runtime type information.