33 template<
class Type,
class GeoMeshType>
36 const word& fieldName,
49 dimfield->field() =
values;
73 template<
class Type,
class GeoMeshType>
76 const word& fieldName,
77 const dimensionSet& dims,
81 const objectRegistry& fieldDb = *
this;
84 fieldDb.
getObjectPtr<DimensionedField<Type, GeoMeshType>>(fieldName);
88 dimfield->dimensions().reset(dims);
89 dimfield->field() = std::move(
values);
93 dimfield =
new DimensionedField<Type, GeoMeshType>
void storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named 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...
void reset(const dimensionSet &ds)
Copy assign the exponents from the dimensionSet.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Registry of regIOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
const dimensionSet & dimensions() const noexcept
Return dimensions.