Go to the documentation of this file.
31 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
37 const bool readOldTime
47 if (celDistIter != fieldObjects.end())
49 fieldObjects.
erase(celDistIter);
61 const IOobject& io = *fieldObjects[masterNames[i]];
63 fields.set(i,
new GeoField(io,
mesh, readOldTime));
68 template<
class Mesh,
class GeoField>
80 fields.setSize(fieldObjects.size());
91 const IOobject& io = *fieldObjects[masterNames[i]];
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An STL-conforming iterator.
#define forAll(list, i)
Loop across all elements in list.
Info<< "Creating field dpdt\n"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar("dpdt", p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);p_rgh=p - rho *gh;mesh.setFluxRequired(p_rgh.name());multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
wordList sortedNames() const
Return the sorted list of names of the IOobjects.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
IOobjectList lookupClass(const word &className) const
Return the list for all IOobjects of a given class.
List of IOobjects with searching and retrieving facilities.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool erase(iterator &)
Erase an hashedEntry specified by given iterator.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
void readFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, const bool readOldTime)