33 template<
class Type,
class GeoMeshType>
37 const word& fieldName,
45 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
49 fldptr->dimensions().reset(dims);
54 fldptr =
new fieldType
75 template<
class Type,
class GeoMeshType>
79 const word& fieldName,
88 auto* fldptr = fieldDb.
getObjectPtr<fieldType>(fieldName);
92 fldptr->dimensions().reset(dims);
97 fldptr =
new fieldType
118 template<
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
DimensionedField< Type, GeoMeshType > & newField(const word &fieldName, const dimensionSet &dims)
Create/store named zero field as face or point data (template parameter).
bool store()
Register object with its registry and transfer ownership to the registry.
Ignore writing from objectRegistry::writeObject()
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Generic templated field type.
A class for handling words, derived from Foam::string.
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...
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).
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
IOobject newIOobject(const word &name, IOobjectOption ioOpt) const
Create an IOobject at the current time instance (timeName) with the specified options.
Registry of regIOobjects.
Request registration (bool: true)