meshCheck: New library for mesh checking functions
Used by the checkMesh utility and functionObject
This commit is contained in:
@ -1,6 +1,3 @@
|
|||||||
checkTools.C
|
|
||||||
checkTopology.C
|
|
||||||
checkGeometry.C
|
|
||||||
checkMeshQuality.C
|
checkMeshQuality.C
|
||||||
checkMesh.C
|
checkMesh.C
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/meshCheck/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/sampling/lnInclude \
|
-I$(LIB_SRC)/sampling/lnInclude \
|
||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
-I$(LIB_SRC)/dynamicMesh/lnInclude
|
||||||
|
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-lgenericPatches \
|
-lmeshCheck \
|
||||||
|
-lfiniteVolume \
|
||||||
-lsampling \
|
-lsampling \
|
||||||
-lsurfMesh \
|
-ldynamicMesh \
|
||||||
-ldynamicMesh
|
-lgenericPatches
|
||||||
|
|||||||
@ -196,13 +196,13 @@ int main(int argc, char *argv[])
|
|||||||
// Reconstruct globalMeshData
|
// Reconstruct globalMeshData
|
||||||
mesh.globalData();
|
mesh.globalData();
|
||||||
|
|
||||||
printMeshStats(mesh, allTopology);
|
meshTools::printMeshStats(mesh, allTopology);
|
||||||
|
|
||||||
label nFailedChecks = 0;
|
label nFailedChecks = 0;
|
||||||
|
|
||||||
if (!noTopology)
|
if (!noTopology)
|
||||||
{
|
{
|
||||||
nFailedChecks += checkTopology
|
nFailedChecks += meshCheck::checkTopology
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
allTopology,
|
allTopology,
|
||||||
@ -211,7 +211,7 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
nFailedChecks += checkGeometry
|
nFailedChecks += meshCheck::checkGeometry
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
allGeometry,
|
allGeometry,
|
||||||
@ -242,7 +242,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.userTimeName() << nl << endl;
|
Info<< "Time = " << runTime.userTimeName() << nl << endl;
|
||||||
|
|
||||||
label nFailedChecks = checkGeometry
|
label nFailedChecks = meshCheck::checkGeometry
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
allGeometry,
|
allGeometry,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -58,7 +58,7 @@ Foam::label Foam::checkMeshQuality
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (writer.valid())
|
if (writer.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(writer(), faces);
|
meshTools::mergeAndWrite(writer(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,15 +40,17 @@ wmake $targetType lagrangian/basic
|
|||||||
|
|
||||||
generic/Allwmake $targetType $*
|
generic/Allwmake $targetType $*
|
||||||
|
|
||||||
|
wmake $targetType sampling
|
||||||
|
wmake $targetType meshCheck
|
||||||
|
|
||||||
wmake $targetType mesh/extrudeModel
|
wmake $targetType mesh/extrudeModel
|
||||||
wmake $targetType dynamicMesh
|
wmake $targetType dynamicMesh
|
||||||
|
|
||||||
|
wmake $targetType conversion
|
||||||
|
|
||||||
# Compile scotchDecomp, metisDecomp etc.
|
# Compile scotchDecomp, metisDecomp etc.
|
||||||
parallel/Allwmake $targetType $*
|
parallel/Allwmake $targetType $*
|
||||||
|
|
||||||
wmake $targetType conversion
|
|
||||||
wmake $targetType sampling
|
|
||||||
|
|
||||||
wmake $targetType fvMeshStitchers
|
wmake $targetType fvMeshStitchers
|
||||||
wmake $targetType fvMeshMovers
|
wmake $targetType fvMeshMovers
|
||||||
fvMeshTopoChangers/Allwmake $targetType $*
|
fvMeshTopoChangers/Allwmake $targetType $*
|
||||||
|
|||||||
@ -1,11 +1,3 @@
|
|||||||
ensight/file/ensightFile.C
|
|
||||||
ensight/file/ensightGeoFile.C
|
|
||||||
ensight/part/ensightPart.C
|
|
||||||
ensight/part/ensightPartIO.C
|
|
||||||
ensight/part/ensightPartCells.C
|
|
||||||
ensight/part/ensightPartFaces.C
|
|
||||||
ensight/part/ensightParts.C
|
|
||||||
|
|
||||||
mergedCyclic/mergedCyclicPolyPatch.C
|
mergedCyclic/mergedCyclicPolyPatch.C
|
||||||
mergedCyclic/polyMeshUnMergeCyclics.C
|
mergedCyclic/polyMeshUnMergeCyclics.C
|
||||||
|
|
||||||
|
|||||||
5
src/meshCheck/Make/files
Normal file
5
src/meshCheck/Make/files
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
checkTools/checkTools.C
|
||||||
|
checkTools/checkTopology.C
|
||||||
|
checkTools/checkGeometry.C
|
||||||
|
|
||||||
|
LIB = $(FOAM_LIBBIN)/libmeshCheck
|
||||||
13
src/meshCheck/Make/options
Normal file
13
src/meshCheck/Make/options
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
EXE_INC = \
|
||||||
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
|
-I$(LIB_SRC)/sampling/lnInclude
|
||||||
|
|
||||||
|
LIB_LIBS = \
|
||||||
|
-lmeshTools \
|
||||||
|
-ltriSurface \
|
||||||
|
-lsurfMesh \
|
||||||
|
-lfileFormats \
|
||||||
|
-lsampling
|
||||||
@ -44,7 +44,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::label Foam::findOppositeWedge
|
Foam::label Foam::meshCheck::findOppositeWedge
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const wedgePolyPatch& wpp
|
const wedgePolyPatch& wpp
|
||||||
@ -84,7 +84,7 @@ Foam::label Foam::findOppositeWedge
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::checkWedges
|
bool Foam::meshCheck::checkWedges
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const bool report,
|
const bool report,
|
||||||
@ -357,7 +357,7 @@ namespace Foam
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::checkCoupledPoints
|
bool Foam::meshCheck::checkCoupledPoints
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const bool report,
|
const bool report,
|
||||||
@ -505,7 +505,7 @@ bool Foam::checkCoupledPoints
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::label Foam::checkGeometry
|
Foam::label Foam::meshCheck::checkGeometry
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const bool allGeometry,
|
const bool allGeometry,
|
||||||
@ -608,7 +608,7 @@ Foam::label Foam::checkGeometry
|
|||||||
nonAlignedPoints.write();
|
nonAlignedPoints.write();
|
||||||
if (setWriter.valid())
|
if (setWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(setWriter, nonAlignedPoints);
|
meshTools::mergeAndWrite(setWriter, nonAlignedPoints);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -643,7 +643,7 @@ Foam::label Foam::checkGeometry
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -659,7 +659,7 @@ Foam::label Foam::checkGeometry
|
|||||||
aspectCells.write();
|
aspectCells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), aspectCells);
|
meshTools::mergeAndWrite(surfWriter(), aspectCells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -680,7 +680,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -702,7 +702,7 @@ Foam::label Foam::checkGeometry
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -725,7 +725,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -747,7 +747,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -769,7 +769,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -793,7 +793,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -826,7 +826,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -851,7 +851,7 @@ Foam::label Foam::checkGeometry
|
|||||||
points.write();
|
points.write();
|
||||||
if (setWriter.valid())
|
if (setWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(setWriter, points);
|
meshTools::mergeAndWrite(setWriter, points);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -874,7 +874,7 @@ Foam::label Foam::checkGeometry
|
|||||||
nearPoints.write();
|
nearPoints.write();
|
||||||
if (setWriter.valid())
|
if (setWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(setWriter, nearPoints);
|
meshTools::mergeAndWrite(setWriter, nearPoints);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -898,7 +898,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -921,7 +921,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -942,7 +942,7 @@ Foam::label Foam::checkGeometry
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -962,7 +962,7 @@ Foam::label Foam::checkGeometry
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -983,7 +983,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1004,7 +1004,7 @@ Foam::label Foam::checkGeometry
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -45,6 +45,8 @@ namespace Foam
|
|||||||
class wedgePolyPatch;
|
class wedgePolyPatch;
|
||||||
class surfaceWriter;
|
class surfaceWriter;
|
||||||
|
|
||||||
|
namespace meshCheck
|
||||||
|
{
|
||||||
//- Find wedge with opposite orientation. Note: does not actually check
|
//- Find wedge with opposite orientation. Note: does not actually check
|
||||||
// that it is opposite, only that it has opposite normal and same axis.
|
// that it is opposite, only that it has opposite normal and same axis.
|
||||||
label findOppositeWedge(const polyMesh&, const wedgePolyPatch&);
|
label findOppositeWedge(const polyMesh&, const wedgePolyPatch&);
|
||||||
@ -70,6 +72,7 @@ namespace Foam
|
|||||||
const autoPtr<setWriter>&
|
const autoPtr<setWriter>&
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -46,7 +46,11 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void Foam::printMeshStats(const polyMesh& mesh, const bool allTopology)
|
void Foam::meshTools::printMeshStats
|
||||||
|
(
|
||||||
|
const polyMesh& mesh,
|
||||||
|
const bool allTopology
|
||||||
|
)
|
||||||
{
|
{
|
||||||
Info<< "Mesh stats" << nl
|
Info<< "Mesh stats" << nl
|
||||||
<< " points: "
|
<< " points: "
|
||||||
@ -205,7 +209,7 @@ void Foam::printMeshStats(const polyMesh& mesh, const bool allTopology)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::mergeAndWrite
|
void Foam::meshTools::mergeAndWrite
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const surfaceWriter& writer,
|
const surfaceWriter& writer,
|
||||||
@ -257,7 +261,7 @@ void Foam::mergeAndWrite
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::fileName Foam::checkMeshOutputDir(const polyMesh& mesh)
|
Foam::fileName Foam::meshTools::checkMeshOutputDir(const polyMesh& mesh)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
mesh.time().globalPath()
|
mesh.time().globalPath()
|
||||||
@ -272,7 +276,7 @@ Foam::fileName Foam::checkMeshOutputDir(const polyMesh& mesh)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::mergeAndWrite
|
void Foam::meshTools::mergeAndWrite
|
||||||
(
|
(
|
||||||
const surfaceWriter& writer,
|
const surfaceWriter& writer,
|
||||||
const faceSet& set
|
const faceSet& set
|
||||||
@ -290,7 +294,7 @@ void Foam::mergeAndWrite
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::mergeAndWrite
|
void Foam::meshTools::mergeAndWrite
|
||||||
(
|
(
|
||||||
const surfaceWriter& writer,
|
const surfaceWriter& writer,
|
||||||
const cellSet& set
|
const cellSet& set
|
||||||
@ -377,7 +381,7 @@ void Foam::mergeAndWrite
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::mergeAndWrite
|
void Foam::meshTools::mergeAndWrite
|
||||||
(
|
(
|
||||||
const setWriter& writer,
|
const setWriter& writer,
|
||||||
const pointSet& set
|
const pointSet& set
|
||||||
@ -32,7 +32,6 @@ SourceFiles
|
|||||||
#ifndef checkTools_H
|
#ifndef checkTools_H
|
||||||
#define checkTools_H
|
#define checkTools_H
|
||||||
|
|
||||||
#include "scalar.H"
|
|
||||||
#include "indirectPrimitivePatch.H"
|
#include "indirectPrimitivePatch.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -45,9 +44,9 @@ namespace Foam
|
|||||||
class pointSet;
|
class pointSet;
|
||||||
class faceSet;
|
class faceSet;
|
||||||
class cellSet;
|
class cellSet;
|
||||||
class fileName;
|
|
||||||
class polyMesh;
|
|
||||||
|
|
||||||
|
namespace meshTools
|
||||||
|
{
|
||||||
//- Output directory for sets and surfaces
|
//- Output directory for sets and surfaces
|
||||||
fileName checkMeshOutputDir(const polyMesh& mesh);
|
fileName checkMeshOutputDir(const polyMesh& mesh);
|
||||||
|
|
||||||
@ -77,6 +76,7 @@ namespace Foam
|
|||||||
// postProcessing/ directory
|
// postProcessing/ directory
|
||||||
void mergeAndWrite(const setWriter&, const pointSet&);
|
void mergeAndWrite(const setWriter&, const pointSet&);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::label Foam::checkTopology
|
Foam::label Foam::meshCheck::checkTopology
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
const bool allTopology,
|
const bool allTopology,
|
||||||
@ -131,7 +131,7 @@ Foam::label Foam::checkTopology
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ Foam::label Foam::checkTopology
|
|||||||
points.write();
|
points.write();
|
||||||
if (setWriter.valid())
|
if (setWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(setWriter, points);
|
meshTools::mergeAndWrite(setWriter, points);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,7 +178,7 @@ Foam::label Foam::checkTopology
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ Foam::label Foam::checkTopology
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -219,7 +219,7 @@ Foam::label Foam::checkTopology
|
|||||||
cells.write();
|
cells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), cells);
|
meshTools::mergeAndWrite(surfWriter(), cells);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -243,7 +243,7 @@ Foam::label Foam::checkTopology
|
|||||||
faces.write();
|
faces.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), faces);
|
meshTools::mergeAndWrite(surfWriter(), faces);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -298,7 +298,7 @@ Foam::label Foam::checkTopology
|
|||||||
oneCells.write();
|
oneCells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), oneCells);
|
meshTools::mergeAndWrite(surfWriter(), oneCells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -314,7 +314,7 @@ Foam::label Foam::checkTopology
|
|||||||
twoCells.write();
|
twoCells.write();
|
||||||
if (surfWriter.valid())
|
if (surfWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(surfWriter(), twoCells);
|
meshTools::mergeAndWrite(surfWriter(), twoCells);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -459,7 +459,7 @@ Foam::label Foam::checkTopology
|
|||||||
points.write();
|
points.write();
|
||||||
if (setWriter.valid())
|
if (setWriter.valid())
|
||||||
{
|
{
|
||||||
mergeAndWrite(setWriter, points);
|
meshTools::mergeAndWrite(setWriter, points);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -43,6 +43,8 @@ namespace Foam
|
|||||||
class surfaceWriter;
|
class surfaceWriter;
|
||||||
class setWriter;
|
class setWriter;
|
||||||
|
|
||||||
|
namespace meshCheck
|
||||||
|
{
|
||||||
label checkTopology
|
label checkTopology
|
||||||
(
|
(
|
||||||
const polyMesh& mesh,
|
const polyMesh& mesh,
|
||||||
@ -51,6 +53,7 @@ namespace Foam
|
|||||||
const autoPtr<Foam::setWriter>& setWriter
|
const autoPtr<Foam::setWriter>& setWriter
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -27,6 +27,14 @@ sampledSet/faceSetSampledSet/faceSetSampledSet.C
|
|||||||
setWriters = sampledSet/writers
|
setWriters = sampledSet/writers
|
||||||
|
|
||||||
$(setWriters)/setWriter.C
|
$(setWriters)/setWriter.C
|
||||||
|
|
||||||
|
$(setWriters)/ensight/file/ensightFile.C
|
||||||
|
$(setWriters)/ensight/file/ensightGeoFile.C
|
||||||
|
$(setWriters)/ensight/part/ensightPart.C
|
||||||
|
$(setWriters)/ensight/part/ensightPartIO.C
|
||||||
|
$(setWriters)/ensight/part/ensightPartCells.C
|
||||||
|
$(setWriters)/ensight/part/ensightPartFaces.C
|
||||||
|
$(setWriters)/ensight/part/ensightParts.C
|
||||||
$(setWriters)/ensight/ensightSetWriter.C
|
$(setWriters)/ensight/ensightSetWriter.C
|
||||||
$(setWriters)/raw/rawSetWriter.C
|
$(setWriters)/raw/rawSetWriter.C
|
||||||
$(setWriters)/vtk/vtkSetWriter.C
|
$(setWriters)/vtk/vtkSetWriter.C
|
||||||
|
|||||||
@ -4,8 +4,6 @@ EXE_INC = \
|
|||||||
-I$(LIB_SRC)/surfMesh/lnInclude \
|
-I$(LIB_SRC)/surfMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/fileFormats/lnInclude \
|
-I$(LIB_SRC)/fileFormats/lnInclude \
|
||||||
-I$(LIB_SRC)/triSurface/lnInclude \
|
-I$(LIB_SRC)/triSurface/lnInclude \
|
||||||
-I$(LIB_SRC)/dynamicMesh/lnInclude \
|
|
||||||
-I$(LIB_SRC)/conversion/lnInclude \
|
|
||||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
||||||
|
|
||||||
LIB_LIBS = \
|
LIB_LIBS = \
|
||||||
@ -14,6 +12,4 @@ LIB_LIBS = \
|
|||||||
-lsurfMesh \
|
-lsurfMesh \
|
||||||
-lfileFormats \
|
-lfileFormats \
|
||||||
-ltriSurface \
|
-ltriSurface \
|
||||||
-llagrangian \
|
-llagrangian
|
||||||
-ldynamicMesh \
|
|
||||||
-lconversion
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
Reference in New Issue
Block a user