93#ifndef functionObjects_derivedFields_H
94#define functionObjects_derivedFields_H
103namespace functionObjects
112 public fvMeshFunctionObject
146 bool add_rhoU(
const word& derivedName);
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,...
const word & name() const noexcept
Return the name of this functionObject.
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 data.
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 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()
Calculate the derived fields.
virtual bool write()
Write derived fields.
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...
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.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.