73 #ifndef functionObjects_fieldExpression_H 74 #define functionObjects_fieldExpression_H 84 namespace functionObjects
93 public fvMeshFunctionObject
112 virtual bool calc() = 0;
115 void setResultName(
const word& typeName,
const word& defaultArg);
160 virtual bool write();
163 virtual bool clear();
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null)
Construct from Time and dictionary.
virtual ~fieldExpression()=default
Destructor.
word resultName_
Name of result field.
TypeName("fieldExpression")
Runtime type information.
Forwards and collection of common volume field types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
autoPtr< Detail::zoneSubSet > zoneSubSetPtr_
Sub-set mesh.
word fieldName_
Name of field to process.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const word & name() const noexcept
Return the name of this functionObject.
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
A class for handling words, derived from Foam::string.
virtual bool calc()=0
Calculate the components of the field and return true if successful.
static const word null
An empty word.
virtual bool write()
Write the result field.
virtual bool execute()
Calculate the result field.
virtual bool clear()
Clear the result field from the objectRegistry.
void operator=(const fieldExpression &)=delete
No copy assignment.
Intermediate class for handling field expression function objects (e.g. blendingFactor etc...
bool foundObject(const word &name, const bool verbose=true) const
Return true if required objects are found.