tutorials/mesh/snappyHexMesh/pipe: Calculate closeness from the pipe wall only
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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.
BIN
tutorials/resources/geometry/pipeWall.obj.gz
Normal file
BIN
tutorials/resources/geometry/pipeWall.obj.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user