Go to the documentation of this file.
67 #ifndef functionObjects_derivedFields_H
68 #define functionObjects_derivedFields_H
77 namespace functionObjects
86 public fvMeshFunctionObject
160 virtual bool write();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
bool add_rhoU(const word &derivedName)
Hard-coded derived field (rho * U)
TypeName("derivedFields")
Run-time type information.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
Mesh consisting of general polyhedral cells.
virtual ~derivedFields()=default
Destructor.
virtual bool execute()
Calculate the derived fields.
static const Enum< derivedType > knownNames
Known derived field types.
virtual bool write()
Write derived fields.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A limited set of predefined derived fields ("rhoU", "pTotal").
virtual bool read(const dictionary &dict)
Read the data.
void removeDerivedFields()
Remove (checkOut) derived fields from the object registry.
derivedFields(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const word & name() const
Return the name of this functionObject.
derivedType
Derived/calculated field type.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void movePoints(const polyMesh &m)
Update for mesh point-motion.
bool add_pTotal(const word &derivedName)
Hard-coded derived field (p + 1/2 * rho * U)
List< derivedType > derivedTypes_
List of derived field (types) to create.
scalar rhoRef_
Reference density (to convert from kinematic to static pressure)