31 #ifndef MapDimensionedFields_H 32 #define MapDimensionedFields_H 42 template<
class Type,
class MeshMapper,
class GeoMesh>
48 TableType
fields(mapper.thisDb().template lookupClass<FieldType>(
true));
52 FieldType&
field =
const_cast<FieldType&
>(*fieldIter());
54 if (&field.mesh() == &mapper.mesh())
58 Info<<
"Mapping " << field.typeName <<
' ' << field.name()
64 field.instance() = field.time().timeName();
66 else if (polyMesh::debug)
68 Info<<
"Not mapping " << field.typeName <<
' ' << field.name()
69 <<
" since originating mesh differs from that of mapper." #define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
void MapDimensionedFields(const MeshMapper &mapper)
Ostream & endl(Ostream &os)
Add newline and flush stream.
An STL-conforming hash table.
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
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
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Map volume internal field on topology change. This is a partial template specialisation, see MapGeometricFields.