30 template<
class GeoField>
34 const typename GeoField::Mesh&
mesh,
47 template<
class GeoField>
51 const fvMeshSubsetProxy& proxy,
60 const word& fieldName =
io->name();
65 tfield.cref(cache->cfindObject<GeoField>(fieldName));
73 tfield = proxy.interpolate
75 getField<GeoField>(
io, proxy.baseMesh(), syncPar)
81 IOobject newIO(tfield(), *cache);
82 newIO.readOpt(IOobjectOption::NO_READ);
83 newIO.writeOpt(IOobjectOption::NO_WRITE);
85 tfield.ref().checkOut();
86 cache->store(
new GeoField(newIO, tfield));
88 tfield.cref(cache->cfindObject<GeoField>(fieldName));
96 template<
class GeoField>
99 const typename GeoField::Mesh&
mesh,
100 const IOobjectList& objects,
101 const word& fieldName,
107 return getField<GeoField>
109 objects.findObject(fieldName),
116 template<
class GeoField>
119 const fvMeshSubsetProxy& proxy,
120 const IOobjectList& objects,
121 const word& fieldName,
123 objectRegistry* cache
128 return getField<GeoField>
130 objects.findObject(fieldName),
138 template<
class GeoField>
141 const typename GeoField::Mesh&
mesh,
142 const IOobjectList& objects
145 const bool syncPar =
true;
148 const wordList fieldNames(objects.sortedNames<GeoField>());
151 PtrList<const GeoField>
fields(fieldNames.size());
155 for (
const word& fieldName : fieldNames)
158 getField<GeoField>(
mesh, objects, fieldName, syncPar);
162 fields.set(nFields++, tfield.ptr());
171 template<
class GeoField>
174 const fvMeshSubsetProxy& proxy,
175 const IOobjectList& objects
178 const bool syncPar =
true;
181 const wordList fieldNames(objects.sortedNames<GeoField>());
184 PtrList<const GeoField>
fields(fieldNames.size());
188 for (
const word& fieldName : fieldNames)
191 getField<GeoField>(proxy, objects, fieldName, syncPar);
195 fields.set(nFields++, tfield.ptr());
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
tmp< GeoField > getField(const IOobject &io, const typename GeoField::Mesh &mesh)
Get the field or FatalError.
List< word > wordList
List of word.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.