73#ifndef functionObjects_fieldExpression_H
74#define functionObjects_fieldExpression_H
84namespace 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();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
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.
fieldExpression(const fieldExpression &)=delete
No copy construct.
virtual bool read(const dictionary &dict)
Read the fieldExpression data.
word resultName_
Name of result field.
void operator=(const fieldExpression &)=delete
No copy assignment.
word fieldName_
Name of field to process.
virtual bool clear()
Clear the result field from the objectRegistry.
TypeName("fieldExpression")
Runtime type information.
virtual ~fieldExpression()=default
Destructor.
virtual bool execute()
Calculate the result field.
autoPtr< Detail::zoneSubSet > zoneSubSetPtr_
Sub-set mesh.
virtual bool write()
Write the result field.
virtual bool calc()=0
Calculate the components of the field and return true if successful.
void setResultName(const word &typeName, const word &defaultArg)
Set the name of result field.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
A class for handling words, derived from Foam::string.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.