69#ifndef Foam_functionObjects_fieldsExpression_H
70#define Foam_functionObjects_fieldsExpression_H
112 template<
class Type,
class FOType>
116 template<
class Type,
class FOType>
121 template<
class FOType>
125 virtual bool calc() = 0;
166 virtual bool write();
169 virtual bool clear();
static const List< word > & null() noexcept
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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. add, subtract etc....
virtual ~fieldsExpression()=default
Destructor.
fieldsExpression(const fieldsExpression &)=delete
No copy construct.
wordList fieldNames_
Names of fields to process.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
word resultName_
Name of result fields.
void setResultName(const word &typeName, const wordList &defaultArg=wordList::null())
Set the result name.
bool calcType(FOType &fo)
Call 'calcFieldTypes' for the given 'Type' and functionObject.
bool calcAllTypes(FOType &fo)
Call 'calcType' for the given functionObject.
virtual bool clear()
Clear the result fields from the objectRegistry.
TypeName("fieldsExpression")
Runtime type information.
fieldsExpression(const word &name, const Time &runTime, const dictionary &dict, const wordList &fieldNames=wordList::null(), const word &resultName=word::null)
Construct from name, Time and dictionary.
bool calcFieldTypes(FOType &fo)
Call 'calcFieldType' for the given functionObject.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results.
virtual bool calc()=0
Calculate expression.
void operator=(const fieldsExpression &)=delete
No copy assignment.
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.
List< word > wordList
List of word.
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.