34#ifndef MapDimensionedFields_H
35#define MapDimensionedFields_H
45template<
class Type,
class MeshMapper,
class GeoMesh>
53 mapper.thisDb().template csorted<FieldType, true>()
58 FieldType&
field =
const_cast<FieldType&
>(
fld);
60 if (&
field.mesh() == &mapper.mesh())
65 << FieldType::typeName <<
' ' <<
field.name() <<
endl;
72 else if (polyMesh::debug)
75 << FieldType::typeName <<
' ' <<
field.name()
76 <<
" since originating mesh differs from that of mapper."
Map volume internal field on topology change. This is a partial template specialisation,...
Info<< nl;Info<< "Write faMesh in vtk format:"<< nl;{ vtk::uindirectPatchWriter writer(aMesh.patch(), fileName(aMesh.time().globalPath()/vtkBaseFileName));writer.writeGeometry();globalIndex procAddr(aMesh.nFaces());labelList cellIDs;if(UPstream::master()) { cellIDs.resize(procAddr.totalSize());for(const labelRange &range :procAddr.ranges()) { auto slice=cellIDs.slice(range);slice=identity(range);} } writer.beginCellData(4);writer.writeProcIDs();writer.write("cellID", cellIDs);writer.write("area", aMesh.S().field());writer.write("normal", aMesh.faceAreaNormals());writer.beginPointData(1);writer.write("normal", aMesh.pointAreaNormals());Info<< " "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edges")));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic internal field mapper. For "real" mapping, add template specialisations for mapping of intern...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
void MapDimensionedFields(const MeshMapper &mapper)
multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields