33template<
class Type,
class GeoMeshType>
37 const word& fieldName,
45 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
49 fldptr->dimensions().reset(dims);
54 fldptr =
new fieldType
75template<
class Type,
class GeoMeshType>
79 const word& fieldName,
88 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
92 fldptr->dimensions().reset(dims);
93 fldptr->field() = values;
97 fldptr =
new fieldType
118template<
class Type,
class GeoMeshType>
122 const word& fieldName,
131 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
135 fldptr->dimensions().reset(dims);
136 fldptr->field() = std::move(values);
140 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.
IOobject newIOobject(const word &name, IOobjectOption ioOpt) const
Create an IOobject at the current time instance (timeName) with the specified options.
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...
bool store()
Register object with its registry and transfer ownership to the registry.
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).
DimensionedField< Type, GeoMeshType > & newField(const word &fieldName, const dimensionSet &dims)
Create/store named zero field as face or point data (template parameter).
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 ...