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 Type & New(const Mesh &mesh, Args &&... args)
Get existing or create a new MeshObject. Registered with typeName.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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 (MUST_READ_IF_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.