Updated tutorials

This commit is contained in:
Henry
2011-04-28 21:14:13 +01:00
parent d8630c4677
commit 24adaa0e1d
52 changed files with 4216 additions and 379 deletions

View File

@ -6,8 +6,10 @@ cd ${0%/*} || exit 1 # run from this directory
runApplication blockMesh
runApplication snappyHexMesh -overwrite
#runApplication transformPoints -scale '(2 1 1)'
transformPoints -scale '(2 1 1)'
if [ ! -e log.transformPoints ]
then
transformPoints -scale '(2 1 1)' > log.transformPoints 2>&1
fi
cp 0/alpha1.org 0/alpha1
runApplication setFields
runApplication `getApplication`

View File

@ -65,7 +65,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}
// ************************************************************************* //

View File

@ -11,12 +11,15 @@ refineMeshByCellSet()
{
while [ $# -ge 1 ]
do
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
if [ ! -e log.refineMesh.$1 ]
then
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
fi
shift
done
}

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
@ -21,25 +21,25 @@ FoamFile
{
type patch;
nFaces 51;
startFace 35380;
startFace 651284;
}
outlet
{
type patch;
nFaces 51;
startFace 35431;
startFace 651335;
}
walls
{
type wall;
nFaces 640;
startFace 35482;
nFaces 2216;
startFace 651386;
}
frontBack
{
type empty;
nFaces 35580;
startFace 36122;
nFaces 651180;
startFace 653602;
}
)

View File

@ -11,12 +11,15 @@ refineMeshByCellSet()
{
while [ $# -ge 1 ]
do
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
if [ ! -e log.refineMesh.$1 ]
then
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
fi
shift
done
}
@ -27,7 +30,7 @@ runApplication blockMesh
refineMeshByCellSet 1 2 3
echo "mapping fields from 2D throttle case"
mapFields ../throttle -sourceTime latestTime > log.mapFields 2>&1
runApplication mapFields ../throttle -sourceTime latestTime
runApplication decomposePar
runParallel $application 4

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;

View File

@ -10,12 +10,15 @@ refineMeshByCellSet()
{
while [ $# -ge 1 ]
do
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
if [ ! -e log.refineMesh.$1 ]
then
echo "creating cell set for primary zone - $1"
cp system/topoSetDict.$1 system/topoSetDict
topoSet > log.topoSet.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
fi
shift
done
}

View File

@ -21,25 +21,25 @@ FoamFile
{
type patch;
nFaces 51;
startFace 57362;
startFace 2061220;
}
outlet
{
type patch;
nFaces 51;
startFace 57413;
startFace 2061271;
}
walls
{
type wall;
nFaces 836;
startFace 57464;
nFaces 3788;
startFace 2061322;
}
frontBack
{
type empty;
nFaces 57540;
startFace 58300;
nFaces 2060940;
startFace 2065110;
}
)

View File

@ -2,4 +2,4 @@
foamCleanTutorials cases
rm -rf processor*
rm -rf 0/p_rgh.gz 0/alpha1.gz
rm -rf 0/p_rgh 0/p_rgh.gz 0/alpha1 0/alpha1.gz

View File

@ -3,6 +3,6 @@ cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf processor*
rm -rf 0/p_rgh.gz 0/alpha1.gz
rm -rf 0/p_rgh 0/p_rgh.gz 0/alpha1 0/alpha1.gz
# ----------------------------------------------------------------- end-of-file

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha1.gz probes wallPressure pRefProbe
rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe
# ----------------------------------------------------------------- end-of-file

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha1.gz probes wallPressure pRefProbe
rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe
# ----------------------------------------------------------------- end-of-file

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha1.gz probes wallPressure pRefProbe
rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe
# ----------------------------------------------------------------- end-of-file

View File

@ -25,7 +25,7 @@ stopAt endTime;
endTime 40;
deltaT 0.01;
deltaT 0.05;
writeControl adjustableRunTime;

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha1.gz probes wallPressure pRefProbe
rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe
# ----------------------------------------------------------------- end-of-file

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha1.gz probes wallPressure pRefProbe
rm -rf 0/alpha1 0/alpha1.gz probes wallPressure pRefProbe
# ----------------------------------------------------------------- end-of-file

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -2,6 +2,6 @@
cd ${0%/*} || exit 1 # run from this directory
foamCleanTutorials cases
rm -rf 0/alpha[1-3].gz
rm -rf 0/alpha[1-3] 0/alpha[1-3].gz
# ----------------------------------------------------------------- end-of-file

View File

@ -38,7 +38,7 @@ FoamFile
bullet
{
type wall;
nFaces 37896;
nFaces 37743;
startFace 1133431;
}
)

View File

@ -105,7 +105,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}

View File

@ -106,7 +106,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}
// ************************************************************************* //

View File

@ -100,7 +100,7 @@ PIMPLE
relaxationFactors
{
U 1;
"U.*" 1;
}
// ************************************************************************* //

View File

@ -27,7 +27,7 @@ endTime 6400;
deltaT 0.1;
writeControl adjustableRunTime;
writeControl runTime;
writeInterval 20;
@ -45,8 +45,4 @@ timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1;
// ************************************************************************* //

View File

@ -69,5 +69,12 @@ PIMPLE
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
"U.*" 1;
"k.*" 1;
"epsilon.*" 1;
}
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
application settlingFoam;
startFrom latestTime;
startFrom startTime;
startTime 0;
@ -27,7 +27,7 @@ endTime 8000;
deltaT 0.1;
writeControl adjustableRunTime;
writeControl runTime;
writeInterval 50;
@ -45,10 +45,4 @@ timePrecision 6;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -69,5 +69,12 @@ PIMPLE
nNonOrthogonalCorrectors 0;
}
relaxationFactors
{
"U.*" 1;
"k.*" 1;
"epsilon.*" 1;
}
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;