openfoam/applications/utilities/mesh/manipulation/checkMesh/checkTools.H
Henry Weller e2336fefd3 checkMesh: Added writing of faceSets and cellSets containing errors
In parallel the sets are reconstructed. e.g.

mpirun -np 6 checkMesh -parallel -allGeometry -allTopology -writeSets vtk

will create a postProcessing/ folder with the vtk files of the
(reconstructed) faceSets and cellSets.

Also improved analysis of disconnected regions now also checks for point
connectivity with is useful for detecting if AMI regions have duplicate
points.

Patch contributed by Mattijs Janssens
2016-06-12 20:51:07 +01:00

34 lines
918 B
C++

#include "scalar.H"
#include "indirectPrimitivePatch.H"
namespace Foam
{
class polyMesh;
class surfaceWriter;
class faceSet;
class cellSet;
class fileName;
class polyMesh;
void printMeshStats(const polyMesh& mesh, const bool allTopology);
//- Generate merged surface on master and write. Needs input patch
// to be of mesh faces.
void mergeAndWrite
(
const polyMesh& mesh,
const surfaceWriter& writer,
const word& name,
const indirectPrimitivePatch setPatch,
const fileName& outputDir
);
//- Write vtk representation of (assembled) faceSet to vtk file in
// postProcessing/ directory
void mergeAndWrite(const surfaceWriter&, const faceSet&);
//- Write vtk representation of (assembled) cellSet to vtk file in
// postProcessing/ directory
void mergeAndWrite(const surfaceWriter&, const cellSet&);
}