30template<
class GeoField>
40 return tmp<GeoField>::New(*
io,
mesh);
47template<
class GeoField>
51 const fvMeshSubsetProxy& proxy,
58 getField<GeoField>(
io, proxy.baseMesh(), syncPar)
63template<
class GeoField>
67 const IOobjectList& objects,
68 const word& fieldName,
74 return getField<GeoField>(objects.findObject(fieldName),
mesh, syncPar);
78template<
class GeoField>
81 const fvMeshSubsetProxy& proxy,
82 const IOobjectList& objects,
83 const word& fieldName,
89 return getField<GeoField>(objects.findObject(fieldName), proxy, syncPar);
93template<
class GeoField>
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());
126template<
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());
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
faMesh Mesh
The mesh type.
A class for managing temporary objects.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
List< word > wordList
A List of words.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
tmp< GeoField > getField(const IOobject *io, const typename GeoField::Mesh &mesh)
Get the field or return nullptr.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields