34 #ifndef MapGeometricFields_H 35 #define MapGeometricFields_H 44 template<
class Type,
class MeshMapper,
class GeoMesh>
55 const MeshMapper& mapper
66 template<
class>
class PatchField,
72 const MeshMapper& mapper
77 mapper.thisDb().objectRegistry::template
78 lookupClass<GeometricField<Type, PatchField, GeoMesh> >()
89 iterator fieldIter = fields.
begin();
90 fieldIter != fields.
end();
100 if (&field.
mesh() == &mapper.mesh())
109 iterator fieldIter = fields.
begin();
110 fieldIter != fields.
end();
118 if (&field.
mesh() == &mapper.mesh())
148 else if (polyMesh::debug)
151 <<
" since originating mesh differs from that of mapper." static const char *const typeName
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
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
An STL-conforming hash table.
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
const fileName & instance() const
InternalField & internalField()
Return internal field.
const Mesh & mesh() const
Return mesh.
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pre-declare SubField and related Field type.
const word & name() const
Return name.
Generic GeometricField class.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
const Time & time() const
Return time.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
void storeOldTimes() const
Store the old-time fields.
iterator begin()
Iterator set to the beginning of the HashTable.