33 template<
class GeoMeshType>
64 template<
class GeoMeshType>
74 if (obr.
found(fieldName))
81 const objectRegistry* subreg = isA<objectRegistry>(iter.val());
83 if (subreg && subreg->found(fieldName))
93 template<
class Type,
class GeoMeshType>
96 const word& fieldName,
110 dimfield->field() =
values;
114 dimfield =
new DimensionedField<Type, GeoMeshType>
134 template<
class Type,
class GeoMeshType>
137 const word& fieldName,
138 const dimensionSet& dims,
143 const objectRegistry& fieldDb = this->fieldData<GeoMeshType>();
146 fieldDb.
getObjectPtr<DimensionedField<Type, GeoMeshType>>(fieldName);
150 dimfield->dimensions().reset(dims);
151 dimfield->field() = std::move(
values);
155 dimfield =
new DimensionedField<Type, GeoMeshType>
bool found(const word &name, const bool recursive=false) const
Can the regIOobject object be found (by name).
Fields (face and point) for polySurface.
Ignore writing from objectRegistry::writeObject()
const Type * cfindObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
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...
const objectRegistry * whichRegistry(const word &fieldName) const
General finding of the registry with the field object (FACE or POINT).
void reset(const dimensionSet &ds)
Copy assign the exponents from the dimensionSet.
const regIOobject * findFieldObject(const word &fieldName, const FieldAssociation association) const
Find the field object with the given name and required FieldAssociation (FACE or POINT).
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Registry of regIOobjects.
void storeField(const word &fieldName, const dimensionSet &dims, const Field< Type > &values)
Copy/store named field as face or point data (template parameter).
forAllConstIters(mixture.phases(), phase)
const dimensionSet & dimensions() const noexcept
Return dimensions.