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." Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
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
An STL-conforming hash table.
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Map volume internal field on topology change. This is a partial template specialisation, see MapGeometricFields.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void MapDimensionedFields(const MeshMapper &mapper)