Go to the documentation of this file.
93 #ifndef functionObjects_derivedFields_H
94 #define functionObjects_derivedFields_H
103 namespace functionObjects
112 public fvMeshFunctionObject
146 bool add_rhoU(
const word& derivedName);
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.
void operator=(const derivedFields &)=delete
No copy assignment.
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
Names for derivedType.
virtual bool write()
Write derived fields.
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...
virtual bool read(const dictionary &dict)
Read the data.
void removeDerivedFields()
Remove (checkOut) derived fields from the object registry.
const word & name() const noexcept
Return the name of this functionObject.
derivedFields(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
derivedType
Options for the 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)