55 template<
class GeoField,
class Mesh>
61 const bool syncPar =
true 66 template<
class GeoField>
69 const word& fieldName,
70 const typename GeoField::Mesh&
mesh,
72 objectRegistry& fieldsCache
77 template<
class GeoField>
80 const word& fieldName,
81 const typename GeoField::Mesh&
mesh,
83 const word& registryName =
"fieldsCache" 89 template<
class GeoFieldType>
92 const typename GeoFieldType::Mesh&
mesh,
94 const HashSet<word>& selectedFields,
95 LIFOStack<regIOobject*>& storedObjects
102 template<
class GeoFieldType>
106 const HashSet<word>& selectedFields,
107 LIFOStack<regIOobject*>& storedObjects,
108 const bool syncPar =
true
wordList ReadFields(const Mesh &mesh, const IOobjectList &objects, PtrList< GeoField > &fields, const bool syncPar=true)
Read all fields of the specified type.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the specified type.
List< word > wordList
A List of words.
Info<< "Reading field p_rgh\"<< endl;volScalarField p_rgh(IOobject("p_rgh", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, p_rgh, pimple.dict(), thermo.incompressible());mesh.schemes().setFluxRequired(p_rgh.name());hydrostaticInitialisation(p_rgh, p, rho, U, gh, ghf, pRef, thermo, pimple.dict());Info<< "Creating field dpdt\"<< endl;volScalarField dpdt(IOobject("dpdt", runTime.timeName(), mesh), mesh, dimensionedScalar(p.dimensions()/dimTime, 0));Info<< "Creating field kinetic energy K\"<< endl;volScalarField K("K", 0.5 *magSqr(U));dimensionedScalar initialMass=fvc::domainIntegrate(rho);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
void readUniformFields(const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject *> &storedObjects, const bool syncPar=true)
Read the selected UniformDimensionedFields of the specified type.