tutorials/mesh/snappyHexMesh/pipe: Calculate closeness from the pipe wall only

This commit is contained in:
Henry Weller
2020-01-27 15:14:11 +00:00
parent f4e47fccbc
commit ea3e891dab
8 changed files with 51 additions and 23 deletions

View File

@ -68,6 +68,7 @@ surface2
// (minPt)(maxPt)
// Keep edges inside the box:
insideBox (0 0 0)(1 1 1);
// Keep edges outside the box:
outsideBox (0 0 0)(1 1 1);

View File

@ -5,9 +5,9 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Remove surface
rm -f constant/triSurface/* > /dev/null 2>&1
rm -rf constant/triSurface
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh
cleanCase

View File

@ -5,7 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy pipe surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/pipe.obj.gz constant/triSurface/
mkdir -p constant/triSurface
cp $FOAM_TUTORIALS/resources/geometry/pipe*.obj.gz constant/triSurface/
runApplication surfaceFeatures
runApplication blockMesh

View File

@ -14,15 +14,15 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radius 25.2;
radiusNeg -25.2;
radius 25.5;
radiusNeg -25.5;
box 5;
boxNeg -5;
zMax 70;
zMin -50;
zMax 84;
zMin -60;
nR 7;
nZ 20;
nZ 24;
verbose no;

View File

@ -27,6 +27,12 @@ geometry
type closedTriSurfaceMesh;
file "pipe.obj";
}
pipeWall
{
type closedTriSurfaceMesh;
file "pipeWall.obj";
}
};
castellatedMeshControls
@ -53,7 +59,7 @@ castellatedMeshControls
refinementRegions
{
pipe
pipeWall
{
mode span;
levels ((1000 2));

View File

@ -14,23 +14,43 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
surfaces
(
"pipe.obj"
);
pipe
{
surfaces
(
"pipe.obj"
);
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
// Do not mark region edges
geometricTestOnly yes;
// Do not mark region edges
geometricTestOnly yes;
// Output the closeness of surface points to other surface elements.
pointCloseness yes;
writeObj yes;
verboseObj yes;
}
writeVTK yes;
pipeWall
{
surfaces
(
"pipeWall.obj"
);
// Mark edges whose adjacent surface normals are at an angle less
// than includedAngle as features
// - 0 : selects no edges
// - 180: selects all edges
includedAngle 150;
// Output the closeness of surface points to other surface elements.
pointCloseness yes;
writeVTK yes;
}
// ************************************************************************* //

Binary file not shown.