37 #ifndef MapGeometricFields_H 38 #define MapGeometricFields_H 47 template<
class Type,
class MeshMapper,
class GeoMesh>
57 const MeshMapper& mapper
68 template<
class>
class PatchField,
74 const MeshMapper& mapper
81 mapper.thisDb().objectRegistry::template csorted<FieldType>()
93 if (&
field.mesh() == &mapper.mesh())
95 const_cast<FieldType&
>(
field).storeOldTimes();
101 FieldType&
fld =
const_cast<FieldType&
>(
field);
103 if (&
field.mesh() == &mapper.mesh())
108 << FieldType::typeName <<
' ' <<
field.name() <<
endl;
114 fld.internalFieldRef(),
119 auto& bfield =
fld.boundaryFieldRef();
128 bfield[patchi].autoMap(mapper.boundaryMap()[patchi]);
131 fld.instance() =
fld.time().timeName();
135 Info<<
"Not mapping " 136 << FieldType::typeName <<
' ' <<
field.name()
137 <<
" since originating mesh differs from that of mapper."
Ostream & endl(Ostream &os)
Add newline and flush stream.
Generic GeometricField class.
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
void MapGeometricFields(const MeshMapper &mapper)
Generic Geometric field mapper.
#define forAll(list, i)
Loop across all elements in list.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
int debug
Static debugging option.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
MapInternalField()=default
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
messageStream Info
Information stream (stdout output on master, null elsewhere)
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.