84#ifndef Foam_functionObjects_derivedFields_H
85#define Foam_functionObjects_derivedFields_H
137 bool add_rhoU(
const word& derivedName);
183 virtual bool write();
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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,...
Computes two predefined derived fields, i.e. rhoU, and pTotal, where the defined fields are hard-code...
scalar rhoRef_
Reference density (to convert from kinematic to static pressure).
derivedType
Options for the derived/calculated field type.
virtual void movePoints(const polyMesh &m)
Update for mesh point-motion.
void operator=(const derivedFields &)=delete
No copy assignment.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
bool add_rhoU(const word &derivedName)
Hard-coded derived field (rho * U).
static const Enum< derivedType > knownNames
Names for derivedType.
derivedFields(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, Time and dictionary.
bool add_pTotal(const word &derivedName)
Hard-coded derived field (p + 1/2 * rho * U).
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
void removeDerivedFields()
Remove (checkOut) derived fields from the object registry.
TypeName("derivedFields")
Run-time type information.
List< derivedType > derivedTypes_
List of derived field (types) to create.
virtual bool execute()
Execute the function-object operations.
virtual bool write()
Write the function-object results.
derivedFields(const derivedFields &)=delete
No copy construct.
virtual ~derivedFields()=default
Destructor.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
fvMeshFunctionObject(const fvMeshFunctionObject &)=delete
No copy construct.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
Function objects are OpenFOAM utilities to ease workflow configurations and enhance workflows.
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.