33template<
class GeoMeshType>
41 const objectRegistry& obr = *
this;
54 if (subreg && (ioptr = subreg->cfindObject<
regIOobject>(fieldName)))
64template<
class GeoMeshType>
72 const objectRegistry& obr = *
this;
74 if (obr.contains(fieldName))
83 if (subreg && subreg->contains(fieldName))
93template<
class Type,
class GeoMeshType>
97 const word& fieldName,
106 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
110 fldptr->dimensions().reset(dims);
115 fldptr =
new fieldType
136template<
class Type,
class GeoMeshType>
140 const word& fieldName,
150 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
154 fldptr->dimensions().reset(dims);
155 fldptr->field() = values;
159 fldptr =
new fieldType
180template<
class Type,
class GeoMeshType>
184 const word& fieldName,
194 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
198 fldptr->dimensions().reset(dims);
199 fldptr->field() = std::move(values);
203 fldptr =
new fieldType
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
@ REGISTER
Request registration (bool: true).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Registry of regIOobjects.
bool contains(const word &name, const bool recursive=false) const
Does the registry contain the regIOobject object (by name).
IOobject newIOobject(const word &name, IOobjectOption ioOpt) const
Create an IOobject at the current time instance (timeName) with the specified options.
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
Type * getObjectPtr(const word &name, const bool recursive=false) const
Return non-const pointer to the object of the given Type, using a const-cast to have it behave like a...
const objectRegistry * whichRegistry(const word &fieldName) const
General finding of the registry with the field object (FACE or POINT).
DimensionedField< Type, GeoMeshType > & storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named field as face or point data (template parameter).
const objectRegistry & fieldData() const
Regular data are stored directly on the registry.
DimensionedField< Type, GeoMeshType > & newField(const word &fieldName, const dimensionSet &dims)
Create/store named zero field as face or point data (template parameter).
const regIOobject * findFieldObject(const word &fieldName, const FieldAssociation association) const
Find the field object with the given name and required FieldAssociation (FACE or POINT).
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
bool store()
Register object with its registry and transfer ownership to the registry.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
const Type * isA(const U &obj)
Attempt dynamic_cast to Type.
Fields (face and point) for polySurface.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.