41#ifndef Foam_rawTopoChangerFvMesh_H
42#define Foam_rawTopoChangerFvMesh_H
56class rawTopoChangerFvMesh
58 public topoChangerFvMesh
63 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
64 static void setUnmappedValues
71 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
72 void zeroUnmappedValues(
const bitSet& mappedFace)
const;
75 rawTopoChangerFvMesh(
const rawTopoChangerFvMesh&) =
delete;
78 void operator=(
const rawTopoChangerFvMesh&) =
delete;
89 explicit rawTopoChangerFvMesh
92 const bool doInit=
true
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))
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
virtual ~rawTopoChangerFvMesh()=default
Destructor.
virtual bool update()
Update the mesh for both mesh motion and topology change.
TypeName("rawTopoChangerFvMesh")
Runtime type information.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.