mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add directory support for foamCleanTutorials
This commit is contained in:
committed by
Andrew Heather
parent
5de5ae35ba
commit
33edea3ea4
@ -15,7 +15,7 @@ fi
|
||||
removeLogs
|
||||
|
||||
echo "Cleaning tutorials ..."
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
|
||||
echo "--------"
|
||||
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
|
||||
# Extrude mesh around cylinder
|
||||
# An extruded mesh around cylinder
|
||||
(cd cylinderAndBackground && ./Allclean)
|
||||
|
||||
# Add background mesh
|
||||
# The background mesh
|
||||
(cd cylinderMesh && foamCleanTutorials)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Extrude mesh around cylinder
|
||||
# An extruded mesh around cylinder
|
||||
(cd cylinderAndBackground && ./Allclean)
|
||||
|
||||
# Add background mesh
|
||||
# The background mesh
|
||||
(cd cylinderMesh && foamCleanTutorials)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
|
||||
removeCase decompressionTankFine
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Extrude mesh around cylinder
|
||||
# An extruded mesh around cylinder
|
||||
(cd cylinderAndBackground && ./Allclean)
|
||||
|
||||
# Add background mesh
|
||||
# The background mesh
|
||||
(cd cylinderMesh && foamCleanTutorials)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
|
||||
# Extrude mesh around cylinder
|
||||
# An extruded mesh around cylinder
|
||||
(cd cylinderMesh && ./Allrun.pre)
|
||||
|
||||
# Add background mesh
|
||||
# The background mesh
|
||||
(cd cylinderAndBackground && ./Allrun $*)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
|
||||
cleanCase0
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
|
||||
restore0Dir
|
||||
|
||||
@ -11,3 +11,5 @@ runApplication decomposePar
|
||||
runParallel createBoxTurb
|
||||
|
||||
runParallel pimpleFoam
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
(cd initChannel && ./Allclean)
|
||||
(cd fullCase && ./Allclean)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Run a precursor channel flow to create a fully developed flow profile for the
|
||||
# main case
|
||||
@ -8,4 +8,4 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
# Run the main case
|
||||
(cd fullCase && ./Allrun)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
time=$1
|
||||
resultsDir="postProcessing/sample1/$time"
|
||||
@ -47,3 +47,5 @@ gnuplot<<EOF
|
||||
plot "$resultsDir/x40_U_UMean.xy" u (\$5/Ub):1 title "X/h = 4" w lines lc "black" lw 2
|
||||
|
||||
EOF
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Note: CFL3D data available from:
|
||||
# https://turbmodels.larc.nasa.gov/bump_sa.html
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
|
||||
|
||||
#set -x
|
||||
@ -102,3 +102,5 @@ then
|
||||
|
||||
\rm -f Cx.$$ tau.$$ cp.$$ profiles.dat
|
||||
fi
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \
|
||||
probes wallPressure pRefProbe
|
||||
|
||||
|
||||
@ -5,14 +5,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
keepCases="damBreak"
|
||||
loseCases="damBreakFine"
|
||||
|
||||
for case in $keepCases
|
||||
for caseName in $keepCases
|
||||
do
|
||||
(cd $case && foamCleanTutorials)
|
||||
(cd $caseName && foamCleanTutorials)
|
||||
done
|
||||
|
||||
for case in $loseCases
|
||||
for caseName in $loseCases
|
||||
do
|
||||
removeCase $case
|
||||
removeCase $caseName
|
||||
done
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -5,14 +5,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
keepCases="damBreak"
|
||||
loseCases="damBreakFine"
|
||||
|
||||
for case in $keepCases
|
||||
for caseName in $keepCases
|
||||
do
|
||||
(cd $case && foamCleanTutorials)
|
||||
(cd $caseName && foamCleanTutorials)
|
||||
done
|
||||
|
||||
for case in $loseCases
|
||||
for caseName in $loseCases
|
||||
do
|
||||
removeCase $case
|
||||
removeCase $caseName
|
||||
done
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf 0/alpha.water 0/alpha.water.gz probes wallPressure pRefProbe
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
foamCleanTutorials cases
|
||||
foamCleanTutorials -self
|
||||
rm -rf alpha.air alpha.other alpha.water \
|
||||
alpha.air.gz alpha.other.gz alpha.water.gz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user