searchableSurface: Renamed geometry directory triSurface -> geometry

Originally the only supported geometry specification were triangulated surfaces,
hence the name of the directory: constant/triSurface, however now that other
surface specifications are supported and provided it is much more logical that
the directory is named accordingly: constant/geometry.  All tutorial and
template cases have been updated.

Note that backward compatibility is provided such that if the constant/geometry
directory does not exist but constant/triSurface does then the geometry files
are read from there.
This commit is contained in:
Henry Weller
2021-02-04 13:51:48 +00:00
parent 1e728ad7e3
commit 66c62e9296
171 changed files with 323 additions and 232 deletions

View File

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

View File

@ -3,7 +3,7 @@
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Copy flange surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/geometry/
runApplication blockMesh
runApplication surfaceFeatures

View File

@ -82,7 +82,7 @@ castellatedMeshControls
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Specifies a level for any cell intersected by its edges.
// This is a featureEdgeMesh, read from constant/triSurface for now.
// This is a featureEdgeMesh, read from constant/geometry for now.
features
(
{

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Remove surface
rm -rf constant/triSurface
rm -rf constant/geometry
rm -rf constant/extendedFeatureEdgeMesh

View File

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