diff --git a/tutorials/basic/overPotentialFoam/cylinder/Allclean b/tutorials/basic/overPotentialFoam/cylinder/Allclean index 145f899e99..600a7b5907 100755 --- a/tutorials/basic/overPotentialFoam/cylinder/Allclean +++ b/tutorials/basic/overPotentialFoam/cylinder/Allclean @@ -7,6 +7,6 @@ cd "${0%/*}" || exit # Run from this directory (cd cylinderAndBackground && ./Allclean) # The background mesh -(cd cylinderMesh && foamCleanTutorials && rm -rf constant) +(cd cylinderMesh && rm -Rf constant && foamCleanTutorials) #------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/Allrun b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/Allrun index 2d86ce6a43..c0cd2840b8 100755 --- a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/Allrun +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/Allrun @@ -9,6 +9,7 @@ cd "${0%/*}" || exit # Run from this directory setups=" EBRSM kOmegaSST + EBRSM.setTurbulenceFields " # flag to enable computations diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/R b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/R new file mode 100644 index 0000000000..cbb1c87589 --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/R @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volSymmTensorField; + object R; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -2 0 0 0 0 ]; + +internalField uniform (1.718 0 0 1.718 0 1.718); // 2*k/3 + +boundaryField +{ + "(bottom|top)" + { + type fixedValue; + value uniform (1e-16 1e-16 1e-16 1e-16 1e-16 1e-16); + } + + "(inlet|outlet)" + { + type cyclic; + } + + leftAndRight + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/epsilon b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/epsilon new file mode 100644 index 0000000000..09a64d3633 --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/epsilon @@ -0,0 +1,42 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object epsilon; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 2 -3 0 0 0 0 ]; + +internalField uniform 33.6; // Lardeau14-Coel Eq. 21 + +boundaryField +{ + "(bottom|top)" + { + type epsilonWallFunction; + lowReCorrection true; + value uniform 0; + } + + "(inlet|outlet)" + { + type cyclic; + } + + leftAndRight + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/f b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/f new file mode 100644 index 0000000000..184b4bfc24 --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/f @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object f; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [ 0 0 0 0 0 0 0 ]; + +internalField uniform 1; + +boundaryField +{ + "(bottom|top)" + { + type fixedValue; + value uniform 0; + } + + "(inlet|outlet)" + { + type cyclic; + } + + leftAndRight + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/k b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/k new file mode 100644 index 0000000000..62e72281cf --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/0.orig/k @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 2.577; // Lardeau14-Coel Eq. 21 + +boundaryField +{ + "(bottom|top)" + { + type fixedValue; + value uniform 1e-10; + } + + "(inlet|outlet)" + { + type cyclic; + } + + leftAndRight + { + type empty; + } +} + + +// ************************************************************************* // diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun new file mode 100755 index 0000000000..2bfa39e9c3 --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun @@ -0,0 +1,29 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +if [ ! -d constant/polyMesh ] +then + runApplication blockMesh + + runApplication renumberMesh -overwrite -constant + + runApplication checkMesh -allTopology -allGeometry -constant +fi + +restore0Dir + +runApplication setTurbulenceFields + +runApplication $(getApplication) + + +runApplication -s "U" postProcess -func sampleU -latestTime +runApplication -s "k" postProcess -func sampleK -latestTime +runApplication -s "epsilon" postProcess -func sampleEpsilon -latestTime +runApplication -s "R" postProcess -func sampleR -latestTime +runApplication -s "G" postProcess -func sampleG -latestTime +runApplication foamLog log."$(getApplication)" + +#------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun-parallel b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun-parallel new file mode 100755 index 0000000000..2bd264d9a1 --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/Allrun-parallel @@ -0,0 +1,33 @@ +#!/bin/sh +cd "${0%/*}" || exit # Run from this directory +. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions +#------------------------------------------------------------------------------ + +if [ ! -d constant/polyMesh ] +then + runApplication blockMesh + + runApplication renumberMesh -overwrite -constant + + runApplication checkMesh -allTopology -allGeometry -constant +fi + +restore0Dir + +runApplication decomposePar + +runParallel setTurbulenceFields + +runParallel $(getApplication) + +runApplication reconstructPar + + +runApplication -s "U" postProcess -func sampleU -latestTime +runApplication -s "k" postProcess -func sampleK -latestTime +runApplication -s "epsilon" postProcess -func sampleEpsilon -latestTime +runApplication -s "R" postProcess -func sampleR -latestTime +runApplication -s "G" postProcess -func sampleG -latestTime +runApplication foamLog log."$(getApplication)" + +#------------------------------------------------------------------------------ diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/constant/turbulenceProperties b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/constant/turbulenceProperties new file mode 100644 index 0000000000..279efb151f --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/constant/turbulenceProperties @@ -0,0 +1,27 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RAS; + +RAS +{ + RASModel EBRSM; + turbulence on; + printCoeffs on; +} + + +// ************************************************************************* // diff --git a/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/system/setTurbulenceFieldsDict b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/system/setTurbulenceFieldsDict new file mode 100644 index 0000000000..838553f03f --- /dev/null +++ b/tutorials/verificationAndValidation/turbulenceModels/planeChannel/setups.orig/EBRSM.setTurbulenceFields/system/setTurbulenceFieldsDict @@ -0,0 +1,41 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2012 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object setTurbulenceFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// Mandatory entries +uRef 17.55; + + +// Optional entries +initialiseU true; +initialiseEpsilon true; +initialiseK true; +initialiseOmega true; +initialiseR true; +writeF true; + +kappa 0.41; +Cmu 0.09; +dPlusRef 15.0; + +f f; +U U; +epsilon epsilon; +k k; +omega omega; +R R; + + +// ************************************************************************* //