mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
foamRunTutorials: Rationalized support for the "-test" option
RunFunctions: Added "isTest()" argument parsing function
tutorials: Updated Allrun scripts to propagate the "-test" option
tutorials: Removed the lower Alltest scripts and updated the Allrun to
use the "isTest()" function to handle test-specific operation
This commit is contained in:
@ -1,29 +1,32 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Any cases that are links to solver test cases and are run when the Allrun
|
||||
# scripts of those solvers are run. This script avoids meshing these cases
|
||||
# twice.
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
(
|
||||
cd blob || exit
|
||||
./Allrun
|
||||
)
|
||||
(
|
||||
cd flange || exit
|
||||
./Allrun
|
||||
./Allrun $*
|
||||
)
|
||||
(
|
||||
cd simpleShapes || exit
|
||||
./Allrun
|
||||
)
|
||||
(
|
||||
cd mixerVessel || exit
|
||||
./Allrun
|
||||
./Allrun $*
|
||||
)
|
||||
|
||||
exit 0
|
||||
|
||||
# Any cases that are links to solver test cases and are run when the Allrun
|
||||
# scripts of those solvers are run.
|
||||
|
||||
# This dummy Allrun script avoids meshing these cases twice.
|
||||
if ! isTest $@
|
||||
then
|
||||
(
|
||||
cd flange || exit
|
||||
./Allrun $*
|
||||
)
|
||||
(
|
||||
cd mixerVessel || exit
|
||||
./Allrun $*
|
||||
)
|
||||
fi
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy flange surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/
|
||||
|
||||
cp system/controlDict system/controlDict.org
|
||||
|
||||
sed -e s/"\(endTime[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||
-e s/"\(writeInterval[ \t]*\)\([0-9]*\);"/"\1 10;"/g \
|
||||
system/controlDict.org > system/controlDict
|
||||
|
||||
runApplication foamyHexMesh
|
||||
|
||||
# Change collapseEdges to only do one iteration
|
||||
cp system/collapseDict system/collapseDict.org
|
||||
|
||||
sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \
|
||||
system/collapseDict.org > system/collapseDict
|
||||
|
||||
runApplication collapseEdges -latestTime -collapseFaces
|
||||
|
||||
cp system/controlDict.org system/controlDict
|
||||
cp system/collapseDict.org system/collapseDict
|
||||
|
||||
rm -f system/controlDict.org system/collapseDict.org
|
||||
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Do nothing for now.
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
(
|
||||
cd flange || exit
|
||||
./Allrun
|
||||
./Allrun $*
|
||||
)
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user