From 8474c50fe87e520ae8d7875452e49751c4173259 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 18 Oct 2010 14:08:03 +0100 Subject: [PATCH] Merging cavitatingFoam tutorial --- .../multiphase/cavitatingFoam/les/Allclean | 23 ++++ .../multiphase/cavitatingFoam/les/Allrun | 42 ++++++ .../cavitatingFoam/les/throttle/0/U | 47 +++++++ .../cavitatingFoam/les/throttle/0/gamma | 47 +++++++ .../cavitatingFoam/{ => les}/throttle/0/k | 7 +- .../0/omega => les/throttle/0/nuSgs} | 21 ++- .../cavitatingFoam/les/throttle/0/p | 51 ++++++++ .../cavitatingFoam/les/throttle/0/rho | 46 +++++++ .../les/throttle/constant/LESProperties | 84 ++++++++++++ .../throttle/constant/polyMesh/blockMeshDict | 121 ++++++++++++++++++ .../les/throttle/constant/polyMesh/boundary | 46 +++++++ .../throttle/constant/thermodynamicProperties | 31 +++++ .../les/throttle/constant/transportProperties | 74 +++++++++++ .../throttle/constant/turbulenceProperties | 21 +++ .../les/throttle/system/cellSetDict.1 | 31 +++++ .../les/throttle/system/cellSetDict.2 | 31 +++++ .../les/throttle/system/cellSetDict.3 | 31 +++++ .../les/throttle/system/controlDict | 87 +++++++++++++ .../les/throttle/system/fvSchemes | 66 ++++++++++ .../les/throttle/system/fvSolution | 92 +++++++++++++ .../les/throttle/system/refineMeshDict | 37 ++++++ .../cavitatingFoam/les/throttle3D/0.org/U | 48 +++++++ .../cavitatingFoam/les/throttle3D/0.org/gamma | 48 +++++++ .../cavitatingFoam/les/throttle3D/0.org/k | 45 +++++++ .../cavitatingFoam/les/throttle3D/0.org/nuSgs | 43 +++++++ .../cavitatingFoam/les/throttle3D/0.org/p | 51 ++++++++ .../cavitatingFoam/les/throttle3D/0.org/rho | 46 +++++++ .../cavitatingFoam/les/throttle3D/0/U | 48 +++++++ .../cavitatingFoam/les/throttle3D/0/gamma | 48 +++++++ .../cavitatingFoam/les/throttle3D/0/k | 45 +++++++ .../cavitatingFoam/les/throttle3D/0/nuSgs | 43 +++++++ .../cavitatingFoam/les/throttle3D/0/p | 51 ++++++++ .../cavitatingFoam/les/throttle3D/0/rho | 46 +++++++ .../les/throttle3D/constant/LESProperties | 84 ++++++++++++ .../constant/polyMesh/blockMeshDict | 121 ++++++++++++++++++ .../les/throttle3D/constant/polyMesh/boundary | 46 +++++++ .../constant/thermodynamicProperties | 31 +++++ .../throttle3D/constant/transportProperties | 74 +++++++++++ .../throttle3D/constant/turbulenceProperties | 21 +++ .../les/throttle3D/system/cellSetDict.1 | 31 +++++ .../les/throttle3D/system/cellSetDict.2 | 31 +++++ .../les/throttle3D/system/cellSetDict.3 | 31 +++++ .../les/throttle3D/system/controlDict | 87 +++++++++++++ .../les/throttle3D/system/decomposeParDict | 50 ++++++++ .../les/throttle3D/system/fvSchemes | 66 ++++++++++ .../les/throttle3D/system/fvSolution | 92 +++++++++++++ .../les/throttle3D/system/mapFieldsDict | 23 ++++ .../les/throttle3D/system/refineMeshDict | 38 ++++++ .../cavitatingFoam/{ => ras}/throttle/0/U | 0 .../cavitatingFoam/{ => ras}/throttle/0/gamma | 0 .../cavitatingFoam/ras/throttle/0/k | 48 +++++++ .../cavitatingFoam/ras/throttle/0/nut | 51 ++++++++ .../cavitatingFoam/ras/throttle/0/omega | 53 ++++++++ .../cavitatingFoam/{ => ras}/throttle/0/p | 0 .../cavitatingFoam/{ => ras}/throttle/0/rho | 0 .../{ => ras}/throttle/Allclean | 0 .../cavitatingFoam/{ => ras}/throttle/Allrun | 2 +- .../{ => ras}/throttle/constant/RASProperties | 0 .../throttle/constant/polyMesh/blockMeshDict | 0 .../throttle/constant/polyMesh/boundary | 0 .../throttle/constant/thermodynamicProperties | 0 .../throttle/constant/transportProperties | 0 .../throttle/constant/turbulenceProperties | 19 +++ .../{ => ras}/throttle/system/cellSetDict.1 | 0 .../{ => ras}/throttle/system/cellSetDict.2 | 0 .../{ => ras}/throttle/system/cellSetDict.3 | 0 .../{ => ras}/throttle/system/controlDict | 0 .../{ => ras}/throttle/system/fvSchemes | 0 .../{ => ras}/throttle/system/fvSolution | 32 ++++- .../{ => ras}/throttle/system/refineMeshDict | 0 70 files changed, 2606 insertions(+), 23 deletions(-) create mode 100755 tutorials/multiphase/cavitatingFoam/les/Allclean create mode 100755 tutorials/multiphase/cavitatingFoam/les/Allrun create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/0/U create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma rename tutorials/multiphase/cavitatingFoam/{ => les}/throttle/0/k (84%) rename tutorials/multiphase/cavitatingFoam/{throttle/0/omega => les/throttle/0/nuSgs} (73%) create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/0/p create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/0/rho create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/LESProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/blockMeshDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/boundary create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/thermodynamicProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/constant/turbulenceProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.1 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.2 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.3 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSchemes create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSolution create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle/system/refineMeshDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/U create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/k create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/nuSgs create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/p create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/rho create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/LESProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/blockMeshDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/boundary create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/thermodynamicProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/turbulenceProperties create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.1 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.2 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.3 create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/decomposeParDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSchemes create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSolution create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/mapFieldsDict create mode 100644 tutorials/multiphase/cavitatingFoam/les/throttle3D/system/refineMeshDict rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/0/U (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/0/gamma (100%) create mode 100644 tutorials/multiphase/cavitatingFoam/ras/throttle/0/k create mode 100644 tutorials/multiphase/cavitatingFoam/ras/throttle/0/nut create mode 100644 tutorials/multiphase/cavitatingFoam/ras/throttle/0/omega rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/0/p (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/0/rho (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/Allclean (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/Allrun (93%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/constant/RASProperties (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/constant/polyMesh/blockMeshDict (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/constant/polyMesh/boundary (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/constant/thermodynamicProperties (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/constant/transportProperties (100%) create mode 100644 tutorials/multiphase/cavitatingFoam/ras/throttle/constant/turbulenceProperties rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/cellSetDict.1 (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/cellSetDict.2 (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/cellSetDict.3 (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/controlDict (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/fvSchemes (100%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/fvSolution (75%) rename tutorials/multiphase/cavitatingFoam/{ => ras}/throttle/system/refineMeshDict (100%) diff --git a/tutorials/multiphase/cavitatingFoam/les/Allclean b/tutorials/multiphase/cavitatingFoam/les/Allclean new file mode 100755 index 000000000..35d86a212 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/Allclean @@ -0,0 +1,23 @@ +#!/bin/sh + +# Source tutorial clean functions +. $WM_PROJECT_DIR/bin/tools/CleanFunctions + +cd throttle + rm -rf constant/polyMesh/sets > /dev/null 2>&1 + rm -rf 0/polyMesh > /dev/null 2>&1 + rm system/cellSetDict > /dev/null 2>&1 + + cleanCase +cd .. + +cd throttle3D + rm -rf constant/polyMesh/sets > /dev/null 2>&1 + rm -rf 0 > /dev/null 2>&1 + cp -r 0.org 0 + rm system/cellSetDict > /dev/null 2>&1 + rm -rf processor[0-9] > /dev/null 2>&1 + + cleanCase +cd .. + diff --git a/tutorials/multiphase/cavitatingFoam/les/Allrun b/tutorials/multiphase/cavitatingFoam/les/Allrun new file mode 100755 index 000000000..c6b98bda7 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/Allrun @@ -0,0 +1,42 @@ +#!/bin/sh + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Set application name +application="cavitatingFoam" + +refineMeshByCellSet() +{ + while [ $# -ge 1 ] + do + echo "creating cell set for primary zone - $1" + cp system/cellSetDict.$1 system/cellSetDict + cellSet > log.cellSet.$1 2>&1 + + echo "refining primary zone - $1" + refineMesh -dict -overwrite > log.refineMesh.$1 2>&1 + shift + done +} + +cd throttle + runApplication blockMesh + refineMeshByCellSet 1 2 3 + runApplication $application +cd .. + +cd throttle3D + cp -r 0.org 0 + + runApplication blockMesh + refineMeshByCellSet 1 2 3 + + echo "mapping fields from 2D throttle case" + mapFields ../throttle -sourceTime latestTime >& log.mapFields + + runApplication decomposePar + runParallel $application 4 + runApplication reconstructPar +cd .. + diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/0/U b/tutorials/multiphase/cavitatingFoam/les/throttle/0/U new file mode 100644 index 000000000..d8b7d8aff --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/U @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma new file mode 100644 index 000000000..78e7fc8ec --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/gamma @@ -0,0 +1,47 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object gamma; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/k b/tutorials/multiphase/cavitatingFoam/les/throttle/0/k similarity index 84% rename from tutorials/multiphase/cavitatingFoam/throttle/0/k rename to tutorials/multiphase/cavitatingFoam/les/throttle/0/k index 835c3a999..bd99b1800 100644 --- a/tutorials/multiphase/cavitatingFoam/throttle/0/k +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/k @@ -1,7 +1,7 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | +| \\ / O peration | Version: 1.6 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ @@ -22,9 +22,8 @@ boundaryField { inlet { - type turbulentIntensityKineticEnergyInlet; - intensity 0.05; - value uniform 0.05; + type fixedValue; + value uniform 0.5; } outlet diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/omega b/tutorials/multiphase/cavitatingFoam/les/throttle/0/nuSgs similarity index 73% rename from tutorials/multiphase/cavitatingFoam/throttle/0/omega rename to tutorials/multiphase/cavitatingFoam/les/throttle/0/nuSgs index 330a29d8c..61362a118 100644 --- a/tutorials/multiphase/cavitatingFoam/throttle/0/omega +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/nuSgs @@ -1,43 +1,38 @@ /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: 1.5 | +| \\ / O peration | Version: 1.6 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; - format ascii; + format binary; class volScalarField; - object omega; + object nuSgs; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -dimensions [0 0 -1 0 0]; +dimensions [0 2 -1 0 0 0 0]; -internalField uniform 77200; +internalField uniform 1e-11; boundaryField { inlet { - type turbulentMixingLengthFrequencyInlet; - mixingLength 0.5e-03; - k k; - value uniform 77200; + type zeroGradient; } - outlet { type zeroGradient; } - walls { - type zeroGradient; + type fixedValue; + value uniform 0; } - frontBack { type empty; diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/0/p b/tutorials/multiphase/cavitatingFoam/les/throttle/0/p new file mode 100644 index 000000000..43b40be48 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/p @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/0/rho b/tutorials/multiphase/cavitatingFoam/les/throttle/0/rho new file mode 100644 index 000000000..e49876900 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/0/rho @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object rho; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/LESProperties b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/LESProperties new file mode 100644 index 000000000..83a10715c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/LESProperties @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object LESProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +LESModel oneEqEddy; + +delta smooth; + +cubeRootVolCoeffs +{ + deltaCoeff 1; +} + +PrandtlCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; + } + + Cdelta 0.158; +} + +vanDriestCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; + } + + Aplus 26; + Cdelta 0.158; +} + +smoothCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/blockMeshDict b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/blockMeshDict new file mode 100644 index 000000000..72cc5089c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/blockMeshDict @@ -0,0 +1,121 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1.0e-3; + +vertices +( + ( 0.00 -2.50 -0.15) + ( 5.00 -2.50 -0.15) + ( 5.00 -0.15 -0.15) + ( 7.00 -0.15 -0.15) + ( 7.00 -2.50 -0.15) + (17.00 -2.50 -0.15) + (17.00 -0.15 -0.15) + (17.00 0.15 -0.15) + (17.00 2.50 -0.15) + ( 7.00 2.50 -0.15) + ( 7.00 0.15 -0.15) + ( 5.00 0.15 -0.15) + ( 5.00 2.50 -0.15) + ( 0.00 2.50 -0.15) + ( 0.00 0.15 -0.15) + ( 0.00 -0.15 -0.15) + + ( 0.00 -2.50 0.15) + ( 5.00 -2.50 0.15) + ( 5.00 -0.15 0.15) + ( 7.00 -0.15 0.15) + ( 7.00 -2.50 0.15) + (17.00 -2.50 0.15) + (17.00 -0.15 0.15) + (17.00 0.15 0.15) + (17.00 2.50 0.15) + ( 7.00 2.50 0.15) + ( 7.00 0.15 0.15) + ( 5.00 0.15 0.15) + ( 5.00 2.50 0.15) + ( 0.00 2.50 0.15) + ( 0.00 0.15 0.15) + ( 0.00 -0.15 0.15) +); + +blocks +( + hex ( 0 1 2 15 16 17 18 31) ( 50 24 1) simpleGrading (1 1 1) + hex (15 2 11 14 31 18 27 30) ( 50 3 1) simpleGrading (1 1 1) + hex (14 11 12 13 30 27 28 29) ( 50 24 1) simpleGrading (1 1 1) + hex ( 2 3 10 11 18 19 26 27) ( 20 3 1) simpleGrading (1 1 1) + hex ( 4 5 6 3 20 21 22 19) (100 24 1) simpleGrading (1 1 1) + hex ( 3 6 7 10 19 22 23 26) (100 3 1) simpleGrading (1 1 1) + hex (10 7 8 9 26 23 24 25) (100 24 1) simpleGrading (1 1 1) +); + +edges +( +); + +patches +( + patch inlet + ( + (15 0 16 31) + (14 15 31 30) + (13 14 30 29) + ) + + patch outlet + ( + ( 5 6 22 21) + ( 6 7 23 22) + ( 7 8 24 23) + ) + + wall walls + ( + ( 1 0 16 17) + ( 2 1 17 18) + ( 3 2 18 19) + ( 4 3 19 20) + ( 5 4 20 21) + ( 9 8 24 25) + (10 9 25 26) + (11 10 26 27) + (12 11 27 28) + (13 12 28 29) + ) + + empty frontBack + ( + ( 0 15 2 1) + (15 14 11 2) + (14 13 12 11) + ( 2 11 10 3) + ( 4 3 6 5) + ( 3 10 7 6) + (10 9 8 7) + + (16 17 18 31) + (31 18 27 30) + (30 27 28 29) + (18 19 26 27) + (20 21 22 19) + (19 22 23 26) + (26 23 24 25) + ) +); + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/boundary b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/boundary new file mode 100644 index 000000000..6c0e5b6bd --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + inlet + { + type patch; + nFaces 51; + startFace 15151; + } + outlet + { + type patch; + nFaces 51; + startFace 15202; + } + walls + { + type wall; + nFaces 436; + startFace 15253; + } + frontBack + { + type empty; + nFaces 15420; + startFace 15689; + } +) + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/thermodynamicProperties b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/thermodynamicProperties new file mode 100644 index 000000000..2213c7541 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/thermodynamicProperties @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object thermodynamicProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +barotropicCompressibilityModel linear; + +psiv psiv [ 0 -2 2 0 0 ] 2.5e-06; + +rholSat rholSat [ 1 -3 0 0 0 ] 830; + +psil psil [ 0 -2 2 0 0 ] 5e-07; + +pSat pSat [ 1 -1 -2 0 0 ] 4500; + +rhoMin rhoMin [ 1 -3 0 0 0 ] 0.001; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties new file mode 100644 index 000000000..e657a500f --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/transportProperties @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +mul mul [ 1 -1 -1 0 0 ] 0.0065; + +muv muv [ 1 -1 -1 0 0 ] 5.953e-06; + +twoPhase +{ + transportModel twoPhase; + phase1 phase1; + phase2 phase2; +} + +phase1 +{ + transportModel Newtonian; + nu nu [ 0 2 -1 0 0 0 0 ] 7.831e-06; + rho rho [ 1 -3 0 0 0 0 0 ] 830; + CrossPowerLawCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + m m [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } + + BirdCarreauCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + k k [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } +} + +phase2 +{ + transportModel Newtonian; + nu nu [ 0 2 -1 0 0 0 0 ] 4.252e-05; + rho rho [ 1 -3 0 0 0 0 0 ] 0.14; + CrossPowerLawCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + m m [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } + + BirdCarreauCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + k k [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/constant/turbulenceProperties b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/turbulenceProperties new file mode 100644 index 000000000..d58d1182b --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/constant/turbulenceProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType LESModel; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.1 b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.1 new file mode 100644 index 000000000..8b6a6950d --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.1 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.1; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (0.004 -0.001 -1) (0.012 0.001 1); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.2 b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.2 new file mode 100644 index 000000000..9c9997120 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.2 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (0.0045 -0.00075 -1) (0.0095 0.00075 1); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.3 b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.3 new file mode 100644 index 000000000..967c4deac --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/cellSetDict.3 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.3; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box (0.00475 -0.000375 -1) (0.009 0.000375 1); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict b/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict new file mode 100644 index 000000000..72db9f8a3 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/controlDict @@ -0,0 +1,87 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application cavitatingFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 0.0002; + +deltaT 1e-08; + +writeControl adjustableRunTime; + +writeInterval 2e-05; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 6; + +writeCompression compressed; + +timeFormat general; + +runTimeModifiable yes; + +adjustTimeStep on; + +maxCo 0.5; + +maxAcousticCo 50; + +functions +{ + fieldAverage1 + { + type fieldAverage; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + enabled false; + outputControl outputTime; + fields + ( + U + { + mean on; + prime2Mean off; + base time; + } + + p + { + mean on; + prime2Mean off; + base time; + } + + gamma + { + mean on; + prime2Mean off; + base time; + } + ); + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSchemes b/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSchemes new file mode 100644 index 000000000..35c606be8 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSchemes @@ -0,0 +1,66 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +interpolationSchemes +{ + default linear; +} + +divSchemes +{ + default none; + div(phiv,rho) Gauss limitedLinear 0.2; + div(phi,U) Gauss filteredLinear2V 0.2 0; + div(phiv,k) Gauss filteredLinear2 0.2 0; +} + +gradSchemes +{ + default Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian(nuf,rhoU) Gauss linear corrected; + laplacian(muEff,U) Gauss linear corrected; + laplacian(rrhoUAf,p) Gauss linear corrected; + laplacian(rUAf,p) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + laplacian(1,p) Gauss linear corrected; +} + +snGradSchemes +{ + default none; + snGrad(p) corrected; +} + +fluxRequired +{ + default none; + p ; + rho ; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSolution b/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSolution new file mode 100644 index 000000000..ae2896125 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/fvSolution @@ -0,0 +1,92 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + omega + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + k + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + rho + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + U + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + p + { + solver GAMG; + tolerance 0; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + pFinal + { + solver GAMG; + tolerance 1e-08; + relTol 0; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } +} + +PISO +{ + nCorrectors 3; + nNonOrthogonalCorrectors 0; +} + +SIMPLE +{ +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle/system/refineMeshDict b/tutorials/multiphase/cavitatingFoam/les/throttle/system/refineMeshDict new file mode 100644 index 000000000..aa569f6aa --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle/system/refineMeshDict @@ -0,0 +1,37 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object refineMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +set c0; + +coordinateSystem global; + +globalCoeffs +{ + tan1 ( 1 0 0 ); + tan2 ( 0 1 0 ); +} + +directions ( tan1 tan2 ); + +useHexTopology yes; + +geometricCut no; + +writeMesh no; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/U b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/U new file mode 100644 index 000000000..24516751f --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/U @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type fixedValue; + value uniform (0 0 0); + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma new file mode 100644 index 000000000..b518bc63e --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/gamma @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object gamma; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type calculated; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/k b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/k new file mode 100644 index 000000000..06970f3e4 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/k @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 0.5; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/nuSgs b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/nuSgs new file mode 100644 index 000000000..d8e57ead9 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/nuSgs @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + object nuSgs; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 1e-11; + +boundaryField +{ + inlet + { + type zeroGradient; + } + outlet + { + type zeroGradient; + } + walls + { + type fixedValue; + value uniform 0; + } + frontBack + { + type fixedValue; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/p b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/p new file mode 100644 index 000000000..1a1b0bb9c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/p @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/rho b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/rho new file mode 100644 index 000000000..4b434b5f7 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0.org/rho @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object rho; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U new file mode 100644 index 000000000..24516751f --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/U @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volVectorField; + object U; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 1 -1 0 0]; + +internalField uniform (0 0 0); + +boundaryField +{ + inlet + { + type zeroGradient; + value uniform (0 0 0); + } + + outlet + { + type zeroGradient; + value uniform (0 0 0); + } + + walls + { + type fixedValue; + value uniform (0 0 0); + } + + frontBack + { + type fixedValue; + value uniform (0 0 0); + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma new file mode 100644 index 000000000..b518bc63e --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/gamma @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object gamma; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type calculated; + value uniform 0; + } + + frontBack + { + type calculated; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k new file mode 100644 index 000000000..06970f3e4 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/k @@ -0,0 +1,45 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 0.5; + } + + outlet + { + type zeroGradient; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs new file mode 100644 index 000000000..d8e57ead9 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/nuSgs @@ -0,0 +1,43 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class volScalarField; + object nuSgs; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 1e-11; + +boundaryField +{ + inlet + { + type zeroGradient; + } + outlet + { + type zeroGradient; + } + walls + { + type fixedValue; + value uniform 0; + } + frontBack + { + type fixedValue; + value uniform 0; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p new file mode 100644 index 000000000..1a1b0bb9c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/p @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object p; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -1 -2 0 0]; + +internalField uniform 300e5; + +boundaryField +{ + inlet + { + type totalPressure; + U U; + phi phiv; + rho rho; + psi none; + gamma 1; + p0 uniform 300e5; + } + + outlet + { + type fixedValue; + value uniform 100e5; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho new file mode 100644 index 000000000..4b434b5f7 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/0/rho @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + object rho; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [1 -3 0 0 0]; + +internalField uniform 845; + +boundaryField +{ + inlet + { + type fixedValue; + value uniform 845; + } + + outlet + { + type fixedValue; + value uniform 835; + } + + walls + { + type zeroGradient; + } + + frontBack + { + type zeroGradient; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/LESProperties b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/LESProperties new file mode 100644 index 000000000..83a10715c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/LESProperties @@ -0,0 +1,84 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object LESProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +LESModel oneEqEddy; + +delta smooth; + +cubeRootVolCoeffs +{ + deltaCoeff 1; +} + +PrandtlCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; + } + + Cdelta 0.158; +} + +vanDriestCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; + } + + Aplus 26; + Cdelta 0.158; +} + +smoothCoeffs +{ + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + maxDeltaRatio 1.1; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/blockMeshDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/blockMeshDict new file mode 100644 index 000000000..e6d091009 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/blockMeshDict @@ -0,0 +1,121 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object blockMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +convertToMeters 1.0e-3; + +vertices +( + ( 0.00 -2.50 -0.15) + ( 5.00 -2.50 -0.15) + ( 5.00 -0.15 -0.15) + ( 7.00 -0.15 -0.15) + ( 7.00 -2.50 -0.15) + (17.00 -2.50 -0.15) + (17.00 -0.15 -0.15) + (17.00 0.15 -0.15) + (17.00 2.50 -0.15) + ( 7.00 2.50 -0.15) + ( 7.00 0.15 -0.15) + ( 5.00 0.15 -0.15) + ( 5.00 2.50 -0.15) + ( 0.00 2.50 -0.15) + ( 0.00 0.15 -0.15) + ( 0.00 -0.15 -0.15) + + ( 0.00 -2.50 0.15) + ( 5.00 -2.50 0.15) + ( 5.00 -0.15 0.15) + ( 7.00 -0.15 0.15) + ( 7.00 -2.50 0.15) + (17.00 -2.50 0.15) + (17.00 -0.15 0.15) + (17.00 0.15 0.15) + (17.00 2.50 0.15) + ( 7.00 2.50 0.15) + ( 7.00 0.15 0.15) + ( 5.00 0.15 0.15) + ( 5.00 2.50 0.15) + ( 0.00 2.50 0.15) + ( 0.00 0.15 0.15) + ( 0.00 -0.15 0.15) +); + +blocks +( + hex ( 0 1 2 15 16 17 18 31) ( 50 24 10) simpleGrading (1 1 1) + hex (15 2 11 14 31 18 27 30) ( 50 3 10) simpleGrading (1 1 1) + hex (14 11 12 13 30 27 28 29) ( 50 24 10) simpleGrading (1 1 1) + hex ( 2 3 10 11 18 19 26 27) ( 20 3 10) simpleGrading (1 1 1) + hex ( 4 5 6 3 20 21 22 19) (100 24 10) simpleGrading (1 1 1) + hex ( 3 6 7 10 19 22 23 26) (100 3 10) simpleGrading (1 1 1) + hex (10 7 8 9 26 23 24 25) (100 24 10) simpleGrading (1 1 1) +); + +edges +( +); + +patches +( + patch inlet + ( + (15 0 16 31) + (14 15 31 30) + (13 14 30 29) + ) + + patch outlet + ( + ( 5 6 22 21) + ( 6 7 23 22) + ( 7 8 24 23) + ) + + wall walls + ( + ( 1 0 16 17) + ( 2 1 17 18) + ( 3 2 18 19) + ( 4 3 19 20) + ( 5 4 20 21) + ( 9 8 24 25) + (10 9 25 26) + (11 10 26 27) + (12 11 27 28) + (13 12 28 29) + ) + + wall frontBack + ( + ( 0 15 2 1) + (15 14 11 2) + (14 13 12 11) + ( 2 11 10 3) + ( 4 3 6 5) + ( 3 10 7 6) + (10 9 8 7) + + (16 17 18 31) + (31 18 27 30) + (30 27 28 29) + (18 19 26 27) + (20 21 22 19) + (19 22 23 26) + (26 23 24 25) + ) +); + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/boundary b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/boundary new file mode 100644 index 000000000..8173c914b --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/polyMesh/boundary @@ -0,0 +1,46 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class polyBoundaryMesh; + location "constant/polyMesh"; + object boundary; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +4 +( + inlet + { + type patch; + nFaces 510; + startFace 220900; + } + outlet + { + type patch; + nFaces 510; + startFace 221410; + } + walls + { + type wall; + nFaces 4360; + startFace 221920; + } + frontBack + { + type wall; + nFaces 15420; + startFace 226280; + } +) + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/thermodynamicProperties b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/thermodynamicProperties new file mode 100644 index 000000000..2213c7541 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/thermodynamicProperties @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object thermodynamicProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +barotropicCompressibilityModel linear; + +psiv psiv [ 0 -2 2 0 0 ] 2.5e-06; + +rholSat rholSat [ 1 -3 0 0 0 ] 830; + +psil psil [ 0 -2 2 0 0 ] 5e-07; + +pSat pSat [ 1 -1 -2 0 0 ] 4500; + +rhoMin rhoMin [ 1 -3 0 0 0 ] 0.001; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties new file mode 100644 index 000000000..e657a500f --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/transportProperties @@ -0,0 +1,74 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object transportProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +mul mul [ 1 -1 -1 0 0 ] 0.0065; + +muv muv [ 1 -1 -1 0 0 ] 5.953e-06; + +twoPhase +{ + transportModel twoPhase; + phase1 phase1; + phase2 phase2; +} + +phase1 +{ + transportModel Newtonian; + nu nu [ 0 2 -1 0 0 0 0 ] 7.831e-06; + rho rho [ 1 -3 0 0 0 0 0 ] 830; + CrossPowerLawCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + m m [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } + + BirdCarreauCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + k k [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } +} + +phase2 +{ + transportModel Newtonian; + nu nu [ 0 2 -1 0 0 0 0 ] 4.252e-05; + rho rho [ 1 -3 0 0 0 0 0 ] 0.14; + CrossPowerLawCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + m m [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } + + BirdCarreauCoeffs + { + nu0 nu0 [ 0 2 -1 0 0 0 0 ] -999; + nuInf nuInf [ 0 2 -1 0 0 0 0 ] -999; + k k [ 0 0 1 0 0 0 0 ] -999; + n n [ 0 0 0 0 0 0 0 ] -999; + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/turbulenceProperties b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/turbulenceProperties new file mode 100644 index 000000000..d58d1182b --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/constant/turbulenceProperties @@ -0,0 +1,21 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "constant"; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType LESModel; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.1 b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.1 new file mode 100644 index 000000000..2eb73c024 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.1 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.1; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box ( 0.004 -0.001 -1 ) ( 0.012 0.001 1 ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.2 b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.2 new file mode 100644 index 000000000..8a78bbba8 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.2 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.2; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box ( 0.0045 -0.00075 -1 ) ( 0.0095 0.00075 1 ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.3 b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.3 new file mode 100644 index 000000000..3eb51acdc --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/cellSetDict.3 @@ -0,0 +1,31 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + location "system"; + object cellSetDict.3; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +name c0; + +action new; + +topoSetSources +( + boxToCell + { + box ( 0.00475 -0.000375 -1 ) ( 0.009 0.000375 1 ); + } +); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict new file mode 100644 index 000000000..37b2b36fb --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/controlDict @@ -0,0 +1,87 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object controlDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +application cavitatingFoam; + +startFrom latestTime; + +startTime 0; + +stopAt endTime; + +endTime 0.0001; + +deltaT 1e-08; + +writeControl adjustableRunTime; + +writeInterval 5e-06; + +purgeWrite 0; + +writeFormat binary; + +writePrecision 6; + +writeCompression compressed; + +timeFormat general; + +runTimeModifiable yes; + +adjustTimeStep on; + +maxCo 0.5; + +maxAcousticCo 50; + +functions +{ + fieldAverage1 + { + type fieldAverage; + functionObjectLibs ( "libfieldFunctionObjects.so" ); + enabled false; + outputControl outputTime; + fields + ( + U + { + mean on; + prime2Mean off; + base time; + } + + p + { + mean on; + prime2Mean off; + base time; + } + + gamma + { + mean on; + prime2Mean off; + base time; + } + ); + } +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/decomposeParDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/decomposeParDict new file mode 100644 index 000000000..499f6a882 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/decomposeParDict @@ -0,0 +1,50 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object decomposeParDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +numberOfSubdomains 4; + +method simple; + +simpleCoeffs +{ + n ( 2 2 1 ); + delta 0.001; +} + +hierarchicalCoeffs +{ + n ( 1 1 1 ); + delta 0.001; + order xyz; +} + +metisCoeffs +{ + processorWeights ( 1 1 1 1 ); +} + +manualCoeffs +{ + dataFile ""; +} + +distributed no; + +roots ( ); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSchemes b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSchemes new file mode 100644 index 000000000..35c606be8 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSchemes @@ -0,0 +1,66 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSchemes; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +ddtSchemes +{ + default Euler; +} + +interpolationSchemes +{ + default linear; +} + +divSchemes +{ + default none; + div(phiv,rho) Gauss limitedLinear 0.2; + div(phi,U) Gauss filteredLinear2V 0.2 0; + div(phiv,k) Gauss filteredLinear2 0.2 0; +} + +gradSchemes +{ + default Gauss linear; +} + +laplacianSchemes +{ + default none; + laplacian(nuf,rhoU) Gauss linear corrected; + laplacian(muEff,U) Gauss linear corrected; + laplacian(rrhoUAf,p) Gauss linear corrected; + laplacian(rUAf,p) Gauss linear corrected; + laplacian(DkEff,k) Gauss linear corrected; + laplacian(1,p) Gauss linear corrected; +} + +snGradSchemes +{ + default none; + snGrad(p) corrected; +} + +fluxRequired +{ + default none; + p ; + rho ; +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSolution b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSolution new file mode 100644 index 000000000..ae2896125 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/fvSolution @@ -0,0 +1,92 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object fvSolution; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +solvers +{ + omega + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + k + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + rho + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + U + { + solver PBiCG; + preconditioner DILU; + tolerance 1e-08; + relTol 0; + } + + p + { + solver GAMG; + tolerance 0; + relTol 0.1; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } + + pFinal + { + solver GAMG; + tolerance 1e-08; + relTol 0; + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + cacheAgglomeration true; + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + } +} + +PISO +{ + nCorrectors 3; + nNonOrthogonalCorrectors 0; +} + +SIMPLE +{ +} + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/mapFieldsDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/mapFieldsDict new file mode 100644 index 000000000..45ffa63c0 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/mapFieldsDict @@ -0,0 +1,23 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object mapFieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +patchMap ( ); + +cuttingPatches ( ); + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/refineMeshDict b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/refineMeshDict new file mode 100644 index 000000000..e4f67702c --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/les/throttle3D/system/refineMeshDict @@ -0,0 +1,38 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.6 | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format binary; + class dictionary; + location "system"; + object refineMeshDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +set c0; + +coordinateSystem global; + +globalCoeffs +{ + tan1 ( 1 0 0 ); + tan2 ( 0 1 0 ); + tan3 ( 0 0 1 ); +} + +directions ( tan1 tan2 tan3 ); + +useHexTopology yes; + +geometricCut no; + +writeMesh no; + + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/U b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/U similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/0/U rename to tutorials/multiphase/cavitatingFoam/ras/throttle/0/U diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/gamma b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/gamma similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/0/gamma rename to tutorials/multiphase/cavitatingFoam/ras/throttle/0/gamma diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/0/k b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/k new file mode 100644 index 000000000..dfc98ecbf --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/k @@ -0,0 +1,48 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object k; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -2 0 0 0 0]; + +internalField uniform 10.0; + +boundaryField +{ + inlet + { + type turbulentIntensityKineticEnergyInlet; + intensity 0.05; + value uniform 0.05; + } + + outlet + { + type zeroGradient; + } + + walls + { + type kqRWallFunction; + value uniform 10.0; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/0/nut b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/nut new file mode 100644 index 000000000..05530161f --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/nut @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object nut; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 2 -1 0 0 0 0]; + +internalField uniform 0; + +boundaryField +{ + inlet + { + type calculated; + value uniform 0; + } + + outlet + { + type calculated; + value uniform 0; + } + + walls + { + type nutWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + value uniform 0; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/0/omega b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/omega new file mode 100644 index 000000000..1890f4070 --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/omega @@ -0,0 +1,53 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM Extend Project: Open source CFD | +| \\ / O peration | Version: 1.6-ext | +| \\ / A nd | Web: www.extend-project.de | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class volScalarField; + location "0"; + object omega; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +dimensions [0 0 -1 0 0 0 0]; + +internalField uniform 77200; + +boundaryField +{ + inlet + { + type turbulentMixingLengthFrequencyInlet; + mixingLength 0.0005; + k k; + value uniform 77200; + } + + outlet + { + type zeroGradient; + } + + walls + { + type omegaWallFunction; + Cmu 0.09; + kappa 0.41; + E 9.8; + beta1 0.075; + value uniform 77200; + } + + frontBack + { + type empty; + } +} + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/p b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/p similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/0/p rename to tutorials/multiphase/cavitatingFoam/ras/throttle/0/p diff --git a/tutorials/multiphase/cavitatingFoam/throttle/0/rho b/tutorials/multiphase/cavitatingFoam/ras/throttle/0/rho similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/0/rho rename to tutorials/multiphase/cavitatingFoam/ras/throttle/0/rho diff --git a/tutorials/multiphase/cavitatingFoam/throttle/Allclean b/tutorials/multiphase/cavitatingFoam/ras/throttle/Allclean similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/Allclean rename to tutorials/multiphase/cavitatingFoam/ras/throttle/Allclean diff --git a/tutorials/multiphase/cavitatingFoam/throttle/Allrun b/tutorials/multiphase/cavitatingFoam/ras/throttle/Allrun similarity index 93% rename from tutorials/multiphase/cavitatingFoam/throttle/Allrun rename to tutorials/multiphase/cavitatingFoam/ras/throttle/Allrun index 972d1f37c..288660de7 100755 --- a/tutorials/multiphase/cavitatingFoam/throttle/Allrun +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/Allrun @@ -3,7 +3,7 @@ # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -application="rasCavitatingFoam" +application="cavitatingFoam" refineMeshByCellSet() { diff --git a/tutorials/multiphase/cavitatingFoam/throttle/constant/RASProperties b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/RASProperties similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/constant/RASProperties rename to tutorials/multiphase/cavitatingFoam/ras/throttle/constant/RASProperties diff --git a/tutorials/multiphase/cavitatingFoam/throttle/constant/polyMesh/blockMeshDict b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/blockMeshDict similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/constant/polyMesh/blockMeshDict rename to tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/blockMeshDict diff --git a/tutorials/multiphase/cavitatingFoam/throttle/constant/polyMesh/boundary b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/constant/polyMesh/boundary rename to tutorials/multiphase/cavitatingFoam/ras/throttle/constant/polyMesh/boundary diff --git a/tutorials/multiphase/cavitatingFoam/throttle/constant/thermodynamicProperties b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/thermodynamicProperties similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/constant/thermodynamicProperties rename to tutorials/multiphase/cavitatingFoam/ras/throttle/constant/thermodynamicProperties diff --git a/tutorials/multiphase/cavitatingFoam/throttle/constant/transportProperties b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/constant/transportProperties rename to tutorials/multiphase/cavitatingFoam/ras/throttle/constant/transportProperties diff --git a/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/turbulenceProperties b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/turbulenceProperties new file mode 100644 index 000000000..0474fdb0e --- /dev/null +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/constant/turbulenceProperties @@ -0,0 +1,19 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: 1.5 | +| \\ / A nd | Web: http://www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object turbulenceProperties; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +simulationType RASModel; + +// ************************************************************************* // diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.1 b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.1 similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.1 rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.1 diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.2 b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.2 similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.2 rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.2 diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.3 b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.3 similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/cellSetDict.3 rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/cellSetDict.3 diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/controlDict b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/controlDict similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/controlDict rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/controlDict diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/fvSchemes b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/fvSchemes rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSchemes diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/fvSolution b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSolution similarity index 75% rename from tutorials/multiphase/cavitatingFoam/throttle/system/fvSolution rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSolution index f6bad1ada..c1239ed97 100644 --- a/tutorials/multiphase/cavitatingFoam/throttle/system/fvSolution +++ b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/fvSolution @@ -16,36 +16,58 @@ FoamFile solvers { - omega PBiCG + omega { + solver PBiCG; preconditioner DILU; tolerance 1e-08; relTol 0; }; - k PBiCG + k { + solver PBiCG; preconditioner DILU; tolerance 1e-08; relTol 0; }; - rho PBiCG + rho { + solver PBiCG; preconditioner DILU; tolerance 1e-08; relTol 0; }; - U PBiCG + U { + solver PBiCG; preconditioner DILU; tolerance 1e-08; relTol 0; }; - p GAMG + p { + solver GAMG; + tolerance 1e-8; + relTol 0; + + smoother GaussSeidel; + nPreSweeps 0; + nPostSweeps 2; + + cacheAgglomeration true; + + nCellsInCoarsestLevel 10; + agglomerator faceAreaPair; + mergeLevels 1; + }; + + pFinal + { + solver GAMG; tolerance 1e-8; relTol 0; diff --git a/tutorials/multiphase/cavitatingFoam/throttle/system/refineMeshDict b/tutorials/multiphase/cavitatingFoam/ras/throttle/system/refineMeshDict similarity index 100% rename from tutorials/multiphase/cavitatingFoam/throttle/system/refineMeshDict rename to tutorials/multiphase/cavitatingFoam/ras/throttle/system/refineMeshDict