TUT: tidying of periodicHill

This commit is contained in:
Mark Olesen
2018-12-20 10:26:18 +01:00
parent 2a51537d78
commit a403e72277
11 changed files with 38 additions and 49 deletions

View File

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
(cd steadyState && ./Allrun) (cd steadyState && ./Allrun)
(cd transient && ./Allrun) (cd transient && ./Allrun)
#------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
@ -12,4 +10,4 @@ runApplication decomposePar
runParallel simpleFoam runParallel simpleFoam
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,7 +18,7 @@ numberOfSubdomains 16;
method simple; method simple;
simpleCoeffs coeffs
{ {
n (4 2 2); n (4 2 2);
} }

View File

@ -22,42 +22,30 @@ actions
type faceSet; type faceSet;
action new; action new;
source patchToFace; source patchToFace;
sourceInfo patch inlet;
{
name inlet;
}
} }
{ {
name inletCellSet; name inletCellSet;
type cellSet; type cellSet;
action new; action new;
source faceToCell; source faceToCell;
sourceInfo
{
set inletFaceSet; set inletFaceSet;
option any; option any;
} }
}
{ {
name inletCellSet; name inletCellSet;
type cellSet; type cellSet;
action subset; action subset;
source boxToCell; source boxToCell;
sourceInfo
{
box (-100 -100 -100)(0.1 100 100); box (-100 -100 -100)(0.1 100 100);
} }
}
{ {
name inletCellZone; name inletCellZone;
type cellZoneSet; type cellZoneSet;
action new; action new;
source setToCellZone; source setToCellZone;
sourceInfo
{
set inletCellSet; set inletCellSet;
} }
}
); );
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase cleanCase
rm -rf processor* #------------------------------------------------------------------------------

View File

@ -1,9 +1,13 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions echo "Linking processor*/ directory"
. $WM_PROJECT_DIR/bin/tools/RunFunctions for proc in $(\ls -d ../steadyState/processor*)
do
ln -s $(echo ../steadyState/processor*) . [ -d "$proc" ] && ln -sf "$proc" .
done
runParallel pimpleFoam runParallel pimpleFoam
#------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/bash
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
time=$(foamListTimes -latestTime -processor) time="$(foamListTimes -latestTime -processor)"
echo "Creating plots for time $time" echo "Creating plots for time $time"
@ -73,3 +73,4 @@ do
gnuplot<<<$(plotStr $i $exp) gnuplot<<<$(plotStr $i $exp)
done done
#------------------------------------------------------------------------------

View File

@ -45,3 +45,4 @@ cuttingPlane
} }
} }
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,7 +18,7 @@ numberOfSubdomains 16;
method simple; method simple;
simpleCoeffs coeffs
{ {
n (4 2 2); n (4 2 2);
} }