93 #ifndef functionObjects_derivedFields_H 94 #define functionObjects_derivedFields_H 103 namespace functionObjects
112 public fvMeshFunctionObject
146 bool add_rhoU(
const word& derivedName);
192 virtual bool write();
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
virtual bool read(const dictionary &dict)
Read the data.
derivedType
Options for the derived/calculated field type.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const word & name() const noexcept
Return the name of this functionObject.
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)
A class for handling words, derived from Foam::string.
List< derivedType > derivedTypes_
List of derived field (types) to create.
scalar rhoRef_
Reference density (to convert from kinematic to static pressure)
bool add_rhoU(const word &derivedName)
Hard-coded derived field (rho * U)
Computes two predefined derived fields, i.e. rhoU, and pTotal, where the defined fields are hard-code...
void operator=(const derivedFields &)=delete
No copy assignment.
virtual void updateMesh(const mapPolyMesh &mpm)
Update for changes of mesh.
TypeName("derivedFields")
Run-time type information.
Mesh consisting of general polyhedral cells.
virtual bool execute()
Calculate the derived fields.
static const Enum< derivedType > knownNames
Names for derivedType.
virtual bool write()
Write derived fields.
virtual ~derivedFields()=default
Destructor.