39#ifndef Foam_meshObjects_gravity_H
40#define Foam_meshObjects_gravity_H
62 TopologicalMeshObject,
MeshObject(const Time &mesh)
static FOAM_NO_DANGLING_REFERENCE const meshObjects::gravity & New(const Time &mesh, Args &&... args)
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.
Gravitational acceleration vector Although termed a MeshObject it is registered on Time only and thus...
static const uniformDimensionedVectorField & lookupObject(const Time &runTime)
Lookup and return const reference to the gravity "g" object field.
static const uniformDimensionedVectorField * findObject(const Time &runTime)
Return const pointer to the gravity "g" object field.
static const gravity & New(const word &name, const Time &runTime)
Return named gravity field cached or construct on Time.
static const gravity & New(const Time &runTime)
Return gravity "g" field cached or construct on Time.
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.
virtual ~gravity()=default
Destructor.
gravity(const Time &runTime)
Construct "g" field on Time from constant (READ_MODIFIED).
gravity(const word &name, const Time &runTime)
Construct with given name on Time from constant (READ_MODIFIED).
A class for handling words, derived from Foam::string.
UniformDimensionedField< vector > uniformDimensionedVectorField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
#define TypeNameNoDebug(TypeNameString)
Declare a ClassNameNoDebug() with extra virtual type info.