43#ifndef faMeshBoundaryHalo_H
44#define faMeshBoundaryHalo_H
106 return inputMeshFaces_;
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))
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static label worldComm
Communicator for all ranks. May differ from commGlobal() if local worlds are in use.
faMeshBoundaryHalo(const label comm=UPstream::worldComm)
Default construct.
ClassName("faMeshBoundaryHalo")
void reset(const faMesh &mesh)
Redefine map and connectivity for a mesh.
void clear()
Clear out all parameters.
const labelList & inputMeshFaces() const noexcept
List of local input mesh faces required.
label haloSize() const
The local data size (output).
void distributeSparse(List< Type > &fld, const labelUList &sparseInputLocations, const labelUList &compactOutputMapping) const
Distribute sparse data.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
mapDistributeBase() noexcept
Default construct (uses worldComm).
label comm() const noexcept
The communicator used.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
List< label > labelList
A List of labels.
UList< label > labelUList
A UList of labels.