ENH: Moved STL surface to tutorial resources and updated scripts
This commit is contained in:
parent
c669782818
commit
d855045445
@ -4,6 +4,9 @@ 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
|
||||
|
@ -2,6 +2,9 @@
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy flange surface from resources folder
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication surfaceFeatureExtract -includedAngle 150 -writeObj constant/triSurface/flange.stl flange
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
@ -0,0 +1,4 @@
|
||||
Folder to house tri-surfaces
|
||||
|
||||
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||
folder
|
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/wigley-scaled-oriented.stl.gz
|
||||
|
||||
cleanCase
|
||||
rm 0/alpha1.gz 0/cellLevel.gz 0/pointLevel.gz constant/polyMesh/boundary \
|
||||
> /dev/null 2>&1
|
||||
|
@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy wigley surface from resources folder
|
||||
cp $FOAM_TUTORIALS/resources/geometry/wigley-scaled-oriented.stl.gz constant/triSurface/
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication snappyHexMesh -overwrite
|
||||
if [ ! -e log.transformPoints ]
|
||||
|
@ -0,0 +1,4 @@
|
||||
Folder to house tri-surfaces
|
||||
|
||||
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||
folder
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
12
tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean
Executable file
12
tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/Allclean
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
# remove surface
|
||||
\rm -f constant/triSurface/bullet.stl.gz
|
||||
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy bullet surface from resources folder
|
||||
cp $FOAM_TUTORIALS/resources/geometry/bullet.stl.gz constant/triSurface/
|
||||
|
||||
# Generate the base block mesh
|
||||
runApplication blockMesh
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
Folder to house tri-surfaces
|
||||
|
||||
The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry
|
||||
folder
|
File diff suppressed because it is too large
Load Diff
BIN
tutorials/resources/geometry/bullet.stl.gz
Normal file
BIN
tutorials/resources/geometry/bullet.stl.gz
Normal file
Binary file not shown.
BIN
tutorials/resources/geometry/flange.stl.gz
Normal file
BIN
tutorials/resources/geometry/flange.stl.gz
Normal file
Binary file not shown.
BIN
tutorials/resources/geometry/wigley-scaled-oriented.stl.gz
Normal file
BIN
tutorials/resources/geometry/wigley-scaled-oriented.stl.gz
Normal file
Binary file not shown.
BIN
tutorials/resources/geometry/wigley.stl.gz
Normal file
BIN
tutorials/resources/geometry/wigley.stl.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user