mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: Updated Allrun scripts for tests. Fixes #710
This commit is contained in:
@ -5,4 +5,4 @@
|
||||
(cd cylinderMesh && ./Allrun.pre)
|
||||
|
||||
# Add background mesh
|
||||
(cd cylinderAndBackground && ./Allrun)
|
||||
(cd cylinderAndBackground && ./Allrun $*)
|
||||
|
||||
@ -29,20 +29,23 @@ run resolved
|
||||
# Run with the plenum modelled by a boundary condition
|
||||
run modelled
|
||||
|
||||
# Plot a comparison of the pressure in the neck
|
||||
cat << EOF | gnuplot -persist
|
||||
if ! isTest $@
|
||||
then
|
||||
# Plot a comparison of the pressure in the neck
|
||||
cat << EOF | gnuplot -persist
|
||||
|
||||
set terminal postscript eps size 5,4 enhanced color
|
||||
set terminal postscript eps size 5,4 enhanced color
|
||||
|
||||
set xlabel "Time (s)"
|
||||
set ylabel "Guage pressure in the neck (Pa)"
|
||||
set xlabel "Time (s)"
|
||||
set ylabel "Guage pressure in the neck (Pa)"
|
||||
|
||||
set output "pressure.eps"
|
||||
set output "pressure.eps"
|
||||
|
||||
plot \
|
||||
"resolved/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Resolved Plenum" w l, \
|
||||
"modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l
|
||||
plot \
|
||||
"resolved/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Resolved Plenum" w l, \
|
||||
"modelled/postProcessing/probes/0/p" us 1:(\$4-1e5) t "Modelled Plenum" w l
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -26,18 +26,21 @@ setDecompressionTankFine()
|
||||
# Do decompressionTank
|
||||
( cd decompressionTank && foamRunTutorials )
|
||||
|
||||
# Clone case
|
||||
cloneCase decompressionTank decompressionTankFine
|
||||
if ! isTest $@
|
||||
then
|
||||
# Clone case
|
||||
cloneCase decompressionTank decompressionTankFine
|
||||
|
||||
(
|
||||
cd decompressionTankFine || exit
|
||||
(
|
||||
cd decompressionTankFine || exit
|
||||
|
||||
# Modify case
|
||||
setDecompressionTankFine
|
||||
# Modify case
|
||||
setDecompressionTankFine
|
||||
|
||||
# And execute
|
||||
runApplication blockMesh
|
||||
runApplication $(getApplication)
|
||||
)
|
||||
# And execute
|
||||
runApplication blockMesh
|
||||
runApplication $(getApplication)
|
||||
)
|
||||
fi
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user