mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: adjust tutorial Allclean scripts (issue #310)
- A few without a 'cd' at the start. Several remove files that are already covered by the cleanCase function.
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf 0
|
||||
|
||||
rm -rf constant/triSurface/blob.stl.gz > /dev/null 2>&1
|
||||
|
||||
@ -23,5 +22,4 @@ rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
rm -rf snapToSurface?.obj > /dev/null 2>&1
|
||||
rm -rf tetsToSnapTo.obj > /dev/null 2>&1
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,15 +1,17 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
|
||||
rm -r constant/triSurface/flange.stl.gz > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -r constant/ccx constant/ccy constant/ccz > /dev/null 2>&1
|
||||
rm -r constant/internalDelaunayVertices constant/targetCellSize > /dev/null 2>&1
|
||||
rm -r 0 > /dev/null 2>&1
|
||||
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/boundary > /dev/null 2>&1
|
||||
rm -rf constant/backgroundMeshDecomposition/polyMesh/faces > /dev/null 2>&1
|
||||
@ -19,6 +21,4 @@ rm -rf constant/backgroundMeshDecomposition/polyMesh/points > /dev/null 2>&1
|
||||
|
||||
rm -r *.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,8 +5,8 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh/
|
||||
rm -f constant/triSurface/*.eMesh*
|
||||
rm -f constant/triSurface/*.stl
|
||||
|
||||
@ -1,22 +1,19 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
|
||||
rm -r constant/extendedFeatureEdgeMesh constant/internalDelaunayVertices > /dev/null 2>&1
|
||||
rm constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm constant/triSurface/*_orient* > /dev/null 2>&1
|
||||
rm -r constant/polyMesh > /dev/null 2>&1
|
||||
rm -r constant/polyMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -f constant/triSurface/*_orient* > /dev/null 2>&1
|
||||
rm -r constant/tetDualMesh > /dev/null 2>&1
|
||||
|
||||
rm -r snapToSurface?.obj tetsToSnapTo.obj > /dev/null 2>&1
|
||||
|
||||
rm domain coneAndSphere > /dev/null 2>&1
|
||||
|
||||
rm -rf 0/
|
||||
|
||||
cleanCase
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,15 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/*.eMesh > /dev/null 2>&1
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/jaggedBoundary.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/jaggedBoundary.eMesh > /dev/null 2>&1
|
||||
rm -rf MeshedSurface.obj > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/unit_cube.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/polyMesh > /dev/null 2>&1
|
||||
|
||||
rm -rf MeshedSurface*.obj > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
rm -rf constant/triSurface/unit_cube.eMesh > /dev/null 2>&1
|
||||
rm -rf MeshedSurface*.obj > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,8 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -4,15 +4,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
rm -f constant/triSurface/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/polyMesh/boundary
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
|
||||
rm -f ./flange ./*.obj > /dev/null 2>&1
|
||||
|
||||
# Remove surface and features
|
||||
rm -f constant/triSurface/flange.stl.gz > /dev/null 2>&1
|
||||
rm -f constant/triSurface/flange.eMesh > /dev/null 2>&1
|
||||
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user