mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Get the application from the controlDict where necessary.
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application=${PWD##*/}
|
||||
# Get application name
|
||||
application="rhoCentralFoam"
|
||||
|
||||
cases=" \
|
||||
shockTube \
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application="rhoSonicFoam"
|
||||
# Get application name
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application="rhopSonicFoam"
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
(cd laminar && ./Allrun)
|
||||
(cd ras && ./Allrun)
|
||||
@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application=sonicFoam
|
||||
|
||||
cases=" \
|
||||
forwardStep \
|
||||
shockTube \
|
||||
"
|
||||
for case in $cases
|
||||
do
|
||||
(cd $case && runApplication blockMesh)
|
||||
#
|
||||
if [ "$case" = "shockTube" ] ; then
|
||||
(cd $case && ./Allrun)
|
||||
else
|
||||
(cd $case && runApplication $application)
|
||||
fi
|
||||
#
|
||||
done
|
||||
@ -2,7 +2,7 @@
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application="sonicFoam"
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication setFields
|
||||
|
||||
@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application=${PWD##*/}
|
||||
|
||||
runStarToFoam ()
|
||||
{
|
||||
if [ -f log.starToFoam ] ; then
|
||||
echo "starToFoam already run on $PWD: remove log file to run"
|
||||
else
|
||||
echo "starToFoam: converting mesh $1"
|
||||
starToFoam $1 > log.starToFoam 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
# Do prism
|
||||
(cd prism && foamRunTutorials)
|
||||
|
||||
# Special handling for nacaAirfoil
|
||||
cd nacaAirfoil
|
||||
runStarToFoam prostar/nacaAirfoil
|
||||
mv constant/polyMesh/boundary temp
|
||||
sed -e s/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
|
||||
temp > constant/polyMesh/boundary
|
||||
rm temp
|
||||
runApplication $application
|
||||
cd ..
|
||||
23
tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun
Executable file
23
tutorials/compressible/sonicFoam/ras/nacaAirfoil/Allrun
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name
|
||||
application=`getApplication`
|
||||
|
||||
runStarToFoam ()
|
||||
{
|
||||
if [ -f log.starToFoam ] ; then
|
||||
echo "starToFoam already run on $PWD: remove log file to run"
|
||||
else
|
||||
echo "starToFoam: converting mesh $1"
|
||||
starToFoam $1 > log.starToFoam 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
runStarToFoam prostar/nacaAirfoil
|
||||
mv constant/polyMesh/boundary temp
|
||||
sed -e s/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
|
||||
temp > constant/polyMesh/boundary
|
||||
rm temp
|
||||
runApplication $application
|
||||
@ -2,11 +2,7 @@ nacaAirfoil
|
||||
~~~~~~~~~~~
|
||||
* large domain with airfoil section near centre
|
||||
* extremely non-orthogonal, highly skew mesh refined around the airfoil
|
||||
* running at Mach 1.78
|
||||
* running at Mach 1.78
|
||||
* limited 0.5 on all laplacianSchemes because the mesh is so poor
|
||||
* run to t = 0.02 with nextWrite; change to stopAt endTime to continue running
|
||||
* deltaT can be increased later in the run to 2e-07
|
||||
|
||||
prism
|
||||
~~~~~
|
||||
* run to t = 0.0014 for convergence
|
||||
* run to t = 0.02 with nextWrite; change to stopAt endTime to continue running
|
||||
* deltaT can be increased later in the run to 2e-07
|
||||
@ -2,8 +2,8 @@
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application=${PWD##*/}
|
||||
# Set application name
|
||||
application="sonicLiquidFoam"
|
||||
|
||||
setDecompressionTankFine ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user