68#ifndef Foam_functionObjects_fieldExpression_H
69#define Foam_functionObjects_fieldExpression_H
107 virtual bool calc() = 0;
155 virtual bool write();
158 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,...
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 function-object dictionary.
word resultName_
Name of result field.
void operator=(const fieldExpression &)=delete
No copy assignment.
word fieldName_
Name of field to process.
fieldExpression(const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null)
Construct from name, Time and dictionary.
virtual bool clear()
Clear the result field from the objectRegistry.
TypeName("fieldExpression")
Runtime type information.
virtual ~fieldExpression()=default
Destructor.
virtual bool execute()
Execute the function-object operations.
autoPtr< Detail::zoneSubSet > zoneSubSetPtr_
Sub-set mesh.
virtual bool write()
Write the function-object results.
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...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Forwards and collection of common volume field types.