39 #ifndef Foam_meshObjects_gravity_H 40 #define Foam_meshObjects_gravity_H 62 TopologicalMeshObject,
Gravitational acceleration vector Although termed a MeshObject it is registered on Time only and thus...
static const meshObjects::gravity & New(const Time &mesh, Args &&... args)
Get existing or create MeshObject registered with typeName.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
TopologicalMeshObject(const word &objName, const objectRegistry &obr)
Construct from name and instance on registry.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
virtual ~gravity()=default
Destructor.
A class for handling words, derived from Foam::string.
gravity(const word &name, const Time &runTime)
Construct with given name on Time from constant (READ_MODIFIED)
static uniformDimensionedVectorField * getObjectPtr(const Time &runTime)
Return non-const pointer to the gravity "g" object field using a const-cast to have it behave like a ...
TypeNameNoDebug("g")
Run-time type information.
static const gravity & New(const word &name, const Time &runTime)
Return named gravity field cached or construct on Time.
static const uniformDimensionedVectorField * findObject(const Time &runTime)
Return const pointer to the gravity "g" object field.
static const uniformDimensionedVectorField & lookupObject(const Time &runTime)
Lookup and return const reference to the gravity "g" object field.