52 #ifndef cloudGravitationalPotentialEnergy_functionObject_H
53 #define cloudGravitationalPotentialEnergy_functionObject_H
61 namespace functionObjects
68 class cloudGravitationalPotentialEnergy
70 public cloudLagrangianMeshFunctionObject
83 TypeName(
"cloudGravitationalPotentialEnergy");
125 virtual bool write();
128 virtual bool clear();
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return the name of this functionObject.
Function to compute and write the gravitational potential energy field for a cloud.
cloudGravitationalPotentialEnergy(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual wordList fields() const
Return the list of fields required.
static const word GPEName_
The name of the gravitational potential energy field.
void operator=(const cloudGravitationalPotentialEnergy &)=delete
Disallow default bitwise assignment.
virtual bool clear()
Clear the gravitational potential energy.
virtual void preSolve()
Hook before solution steps.
virtual ~cloudGravitationalPotentialEnergy()
Destructor.
virtual bool execute()
Calculate and store the gravitational potential energy.
virtual bool write()
Write the gravitational potential energy.
TypeName("cloudGravitationalPotentialEnergy")
Runtime type information.
A class for handling words, derived from string.