mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
rhoCentralFoam tutorials: move All.* scripts into each case
This commit is contained in:
11
tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean
Executable file
11
tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allclean
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
cleanSamples
|
||||||
|
rm -rf constant/polyMesh/boundary
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
34
tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun
Executable file
34
tutorials/compressible/rhoCentralFoam/biconic25-55Run35/Allrun
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
moveTimeMeshToConstant()
|
||||||
|
{
|
||||||
|
DT=`foamInfoExec -times | tail -1`
|
||||||
|
if [ "$DT" != 0 ]
|
||||||
|
then
|
||||||
|
mv ${DT}/polyMesh/* constant/polyMesh
|
||||||
|
rm -rf ${DT}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
runApplication blockMesh
|
||||||
|
|
||||||
|
runApplication datToFoam grid256.dat
|
||||||
|
|
||||||
|
CONST="constant"
|
||||||
|
cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
|
||||||
|
runApplication collapseEdges "2e-07" 5
|
||||||
|
moveTimeMeshToConstant
|
||||||
|
|
||||||
|
echo "Changing patch type to wedge type in boundary file"
|
||||||
|
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
|
||||||
|
sed -f $CONST/wedgeScr $CONST/polyMesh/boundary.bak > $CONST/polyMesh/boundary
|
||||||
|
rm $CONST/polyMesh/boundary.bak
|
||||||
|
|
||||||
|
runApplication `getApplication`
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
12
tutorials/compressible/rhoCentralFoam/shockTube/Allclean
Executable file
12
tutorials/compressible/rhoCentralFoam/shockTube/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
|
||||||
|
|
||||||
|
rm -rf 0
|
||||||
|
cp -r 0.org 0
|
||||||
|
cleanCase
|
||||||
|
cleanSamples
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
11
tutorials/compressible/rhoCentralFoam/shockTube/Allrun
Executable file
11
tutorials/compressible/rhoCentralFoam/shockTube/Allrun
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
runApplication blockMesh
|
||||||
|
runApplication setFields
|
||||||
|
runApplication `getApplication`
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
Reference in New Issue
Block a user