Tutorials: updates to run with the latest developments

This commit is contained in:
Henry
2011-11-28 16:15:42 +00:00
parent df6459f74f
commit 70592ba210
10 changed files with 22 additions and 116 deletions

View File

@ -1,36 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cases=" \
shockTube \
wedge15Ma5 \
obliqueShock \
forwardStep \
LadenburgJet60psi \
biconic25-55Run35 \
"
for caseName in $cases
do
(
cd $caseName || exit
if [ "$caseName" = shockTube ]
then
rm -rf 0
cp -r 0.org 0
fi
foamCleanTutorials && cleanSamples
if [ "$caseName" = "biconic25-55Run35" ]
then
rm -rf constant/polyMesh/boundary
fi
)
done
# ----------------------------------------------------------------- end-of-file

View File

@ -1,58 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cases=" \
shockTube \
wedge15Ma5 \
obliqueShock \
forwardStep \
LadenburgJet60psi \
biconic25-55Run35 \
"
moveTimeMeshToConstant()
{
DT=`foamInfoExec -times | tail -1`
if [ "$DT" != 0 ]
then
mv ${DT}/polyMesh/* constant/polyMesh
rm -rf ${DT}
fi
}
for caseName in $cases
do
(
cd $caseName || exit
runApplication blockMesh
case "$caseName" in
shockTube)
runApplication setFields
;;
biconic25-55Run35)
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
;;
esac
runApplication `getApplication`
)
done
# ----------------------------------------------------------------- end-of-file

View File

@ -45,7 +45,7 @@ timePrecision 6;
adjustTimeStep yes;
maxCo 0.5;
maxCo 0.4;
maxDeltaT 1;

View File

@ -17,13 +17,13 @@ FoamFile
application rhoPimpleFoam;
startFrom startTime;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 10;
endTime 0.3;
deltaT 1e-05;

View File

@ -22,7 +22,7 @@ solvers
solver PCG;
preconditioner DIC;
tolerance 1e-6;
relTol 0;
relTol 0.01;
}
"(p|rho)Final"
@ -36,7 +36,7 @@ solvers
solver PBiCG;
preconditioner DILU;
tolerance 1e-6;
relTol 0;
relTol 0.01;
}
"(U|h|k|nuTilda)Final"
@ -49,7 +49,7 @@ solvers
PIMPLE
{
momentumPredictor yes;
nOuterCorrectors 2;
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
rhoMin rhoMin [ 1 -3 0 0 0 ] 0.5;