53 #ifndef cloudGravitationalPotentialEnergy_functionObject_H
54 #define cloudGravitationalPotentialEnergy_functionObject_H
62 namespace functionObjects
69 class cloudGravitationalPotentialEnergy
71 public cloudLagrangianMeshFunctionObject
84 TypeName(
"cloudGravitationalPotentialEnergy");
126 virtual bool write();
129 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.