30 template<
class GeoField>
34 const typename GeoField::Mesh&
mesh,
47 template<
class GeoField>
51 const fvMeshSubsetProxy& proxy,
58 getField<GeoField>(
io, proxy.baseMesh(), syncPar)
63 template<
class GeoField>
66 const typename GeoField::Mesh&
mesh,
67 const IOobjectList& objects,
68 const word& fieldName,
74 return getField<GeoField>(objects.findObject(fieldName),
mesh, syncPar);
78 template<
class GeoField>
81 const fvMeshSubsetProxy& proxy,
82 const IOobjectList& objects,
83 const word& fieldName,
89 return getField<GeoField>(objects.findObject(fieldName), proxy, syncPar);
93 template<
class GeoField>
96 const typename GeoField::Mesh&
mesh,
97 const IOobjectList& objects
100 const bool syncPar =
true;
103 const wordList fieldNames(objects.sortedNames<GeoField>());
106 PtrList<const GeoField>
fields(fieldNames.size());
110 for (
const word& fieldName : fieldNames)
113 getField<GeoField>(
mesh, objects, fieldName, syncPar);
117 fields.set(nFields++, tfield.ptr());
126 template<
class GeoField>
129 const fvMeshSubsetProxy& proxy,
130 const IOobjectList& objects
133 const bool syncPar =
true;
136 const wordList fieldNames(objects.sortedNames<GeoField>());
139 PtrList<const GeoField>
fields(fieldNames.size());
143 for (
const word& fieldName : fieldNames)
146 getField<GeoField>(proxy, objects, fieldName, syncPar);
150 fields.set(nFields++, tfield.ptr());
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
tmp< GeoField > getField(const IOobject *io, const typename GeoField::Mesh &mesh)
Get the field or return nullptr.
List< word > wordList
A List of words.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
A class for managing temporary objects.