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,11 +5,11 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Remove surfaces
rm -f constant/triSurface/propeller*.obj.gz > /dev/null 2>&1
rm -f constant/geometry/propeller*.obj.gz > /dev/null 2>&1
cleanCase
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
rm -f constant/geometry/*.eMesh* > /dev/null 2>&1
#------------------------------------------------------------------------------

View File

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

View File

@ -135,7 +135,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

@ -80,7 +80,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 -f constant/triSurface/motorBike.obj.gz
rm -f constant/geometry/motorBike.obj.gz
cleanCase

View File

@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# copy motorbike surface from resources directory
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/geometry/
runApplication blockMesh
cp system/decomposeParDict.hierarchical system/decomposeParDict

View File

@ -88,7 +88,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

@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
rm *.obj > /dev/null 2>&1
rm -r constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm constant/triSurface/boundaryAndFaceZones.eMesh > /dev/null 2>&1
rm constant/geometry/boundaryAndFaceZones.eMesh > /dev/null 2>&1
rm constant/polyMesh/boundary > /dev/null 2>&1
cleanCase

View File

@ -1,9 +1,9 @@
2013-10-01 Meshing the angledDuct geometry.
constant/triSurface/angledDuct.stl
constant/geometry/angledDuct.stl
outer geometry
constant/triSurface/boundaryAndFaceZones.stl
constant/geometry/boundaryAndFaceZones.stl
boundary and faceZones to extract feature
edges from.
@ -23,7 +23,7 @@ surfaceFeatures
constant/triSurface/porosity_inflated.stl
constant/geometry/porosity_inflated.stl
block around porosity
(slightly inflated)

View File

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

View File

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

View File

@ -87,7 +87,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,8 +5,8 @@
# remove surface and features
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/rotatingZone.eMesh > /dev/null 2>&1
rm -f constant/triSurface/fixed.eMesh > /dev/null 2>&1
rm -f constant/geometry/rotatingZone.eMesh > /dev/null 2>&1
rm -f constant/geometry/fixed.eMesh > /dev/null 2>&1
rm -f 0/pointLevel > /dev/null 2>&1
rm -f 0/cellLevel > /dev/null 2>&1

View File

@ -96,7 +96,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

@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # run from this directory
cleanCase
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/buildings.eMesh > /dev/null 2>&1
rm -f constant/geometry/buildings.eMesh > /dev/null 2>&1
rm -f constant/polyMesh/boundary > /dev/null 2>&1
#------------------------------------------------------------------------------