diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean index 34abc6a364dd6ca77df3bfc6d35f2f17fc4b5215..68b0e3cddd93cce3931d6767a4a928972215edf5 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean @@ -1,9 +1,8 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial clean functions -. $WM_PROJECT_DIR/bin/tools/CleanFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions cleanCase \rm -rf constant/boundaryData *.png +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun index 1b2ddd2cad51f50cd913a82d917646736c0e3306..eeae06e87c9730e1ffd28dd745bc033c6422f767 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun @@ -1,8 +1,6 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions channelCase=../initChannel channelDataDir=$channelCase/postProcessing/surfaces/inlet @@ -39,3 +37,5 @@ then # Plot the mean velocity profiles ./plot $(foamListTimes -processor -latestTime) fi + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean index e1c000327020bba83e549e46d5e346616e878b67..6f39374d14d0dbe7b164746db68e65a204b9d04c 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean @@ -1,8 +1,7 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial clean functions -. $WM_PROJECT_DIR/bin/tools/CleanFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions cleanCase +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun index 5d65a383e2c41e6bfe010e456da0874608c43064..89269cb7ebb597ad83af5410f815a70e4f50757f 100755 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun @@ -1,9 +1,8 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions runApplication blockMesh runApplication $(getApplication) +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/system/controlDict b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/system/controlDict index e560ca3279e6a68d1e3638f019a0d097da258cf9..c13aa26723882a35026f146e695c661e3c4f7e81 100644 --- a/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/system/controlDict +++ b/tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/system/controlDict @@ -61,8 +61,8 @@ functions { type surfaces; surfaceFormat boundaryData; - writeControl writeTime; - interpolationScheme cell; + writeControl writeTime; + interpolationScheme cell; fields ( U diff --git a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean index 71f48f6a4e8bbe031494f80a69b2e652fdc3f920..d839638c5903351ff66c6fa199cf555c8dd9f65c 100755 --- a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean +++ b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean @@ -1,10 +1,9 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial clean functions -. $WM_PROJECT_DIR/bin/tools/CleanFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions cleanCase \rm -rf *.dat *.png +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun index fb5696959da6ebc08796e45f2d8636cfe21015c5..fcf73728f7ebf8440bce90dff1987cf2702c2556 100755 --- a/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun +++ b/tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun @@ -1,8 +1,6 @@ #!/bin/sh -cd ${0%/*} || exit 1 # run from this directory - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions runApplication blockMesh runApplication simpleFoam @@ -17,7 +15,7 @@ then exit 1 } - # Copy results to the validation directory + # Copy results to the validation directory timeDir=$(foamListTimes -latestTime) sampleDir=postProcessing/sample/$timeDir @@ -50,7 +48,7 @@ then href = 0.0127 Uref = $Uref - set lmargin 7.5 + set lmargin 7.5 set rmargin 1.5 set tmargin 0.1 set bmargin 3.2 @@ -68,12 +66,12 @@ EOF1 echo "# ccx tau_xx tau_yy tau_zz" > tauw.dat foamDictionary -entry boundaryField.lowerWall.value -value $timeDir/Cx | \ - sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$ + sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$ foamDictionary -entry boundaryField.lowerWall.value -value $timeDir/wallShearStress | \ sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > tau.$$ paste -d ' ' Cx.$$ tau.$$ >> tauw.dat \rm -f Cx.$$ tau.$$ - + graphNameTau="backwardStep2D_tau.png" echo "Creating wallshear stress graph to $graphNameTau" gnuplot<<EOF2 @@ -98,3 +96,4 @@ EOF1 EOF2 fi +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun index 2d0b1c08e8ee10abf51dd4c7ebbad7f6b9e88060..0e22182d9e2263f6f015afea98bdccbf3215bf6c 100755 --- a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun +++ b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun @@ -1,8 +1,6 @@ #!/bin/sh -cd ${0%/*} || exit 1 - -# Source tutorial run functions -. $WM_PROJECT_DIR/bin/tools/RunFunctions +cd ${0%/*} || exit 1 # Run from this directory +. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions if notTest $@ then @@ -82,3 +80,5 @@ then mv postProcessing postProcessing-${model} done fi + +# ----------------------------------------------------------------------------- diff --git a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/system/decomposeParDict b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/system/decomposeParDict index 152544e2724374cf2dfd6677fc494a02913dd391..3b90a3c41c23cc091a5cd96b0ea0a3acb3dead26 100644 --- a/tutorials/incompressible/simpleFoam/turbulentFlatPlate/system/decomposeParDict +++ b/tutorials/incompressible/simpleFoam/turbulentFlatPlate/system/decomposeParDict @@ -16,36 +16,13 @@ FoamFile // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -numberOfSubdomains 8 ; -method hierarchical ; -simpleCoeffs -{ - n (8 1 1); - delta 0.001; -} -hierarchicalCoeffs -{ - n (8 1 1); - delta 0.001; - order xyz; -} -scotchCoeffs -{ - processorWeights - ( - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - ); -} -manualCoeffs +numberOfSubdomains 8; + +method hierarchical; + +coeffs { - dataFile ("" ); + n (8 1 1); } -distributed no ; -roots (); + +// ************************************************************************* // diff --git a/tutorials/multiphase/interFoam/laminar/waveExampleStokesII/system/controlDict b/tutorials/multiphase/interFoam/laminar/waveExampleStokesII/system/controlDict index ae8ca6f1122339a21f24c95fc4c30de69185f29b..929886c3893304c7d6292a33cc8fce2486d37bb5 100644 --- a/tutorials/multiphase/interFoam/laminar/waveExampleStokesII/system/controlDict +++ b/tutorials/multiphase/interFoam/laminar/waveExampleStokesII/system/controlDict @@ -116,7 +116,7 @@ functions start ( 10.0 0.02 0.0 ); end ( 10.0 0.02 0.55 ); nPoints 1001; - } + } line7 { type uniform; @@ -124,7 +124,7 @@ functions start ( 12.0 0.005 0.0 ); end ( 12.0 0.005 0.55 ); nPoints 1001; - } + } line8 { type uniform; diff --git a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean index 27381f42e7b4e74f29fd4700b5cfc465a2acd3b1..1d69dc999c3e8cedf99318d9c0a7e6bbbc59457c 100755 --- a/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean +++ b/tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean @@ -1,6 +1,6 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions +##. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions (cd background && ./Allclean) (cd floatingBody && ./Allclean)