diff --git a/etc/templates/axisymmetricJet/constant/turbulenceProperties b/etc/templates/axisymmetricJet/constant/turbulenceProperties index dc0e00cc54f0947fd43e2fd400933c31c1e1f524..f0add28ce4ef4263490c0d47f66c0b063a07a9a8 100644 --- a/etc/templates/axisymmetricJet/constant/turbulenceProperties +++ b/etc/templates/axisymmetricJet/constant/turbulenceProperties @@ -14,6 +14,38 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -simulationType RASModel; +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + printCoeffs on; +} + +LES +{ + LESModel SpalartAllmarasDDES; + delta cubeRootVol; + + turbulence on; + printCoeffs on; + + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } +} // ************************************************************************* // diff --git a/etc/templates/axisymmetricJet/system/fvSchemes b/etc/templates/axisymmetricJet/system/fvSchemes index ddcdf027dc5b80eb7d3a707941d209578c4d9db2..81fab71cd5208a0020900541760d835c0e9aada2 100644 --- a/etc/templates/axisymmetricJet/system/fvSchemes +++ b/etc/templates/axisymmetricJet/system/fvSchemes @@ -39,8 +39,7 @@ divSchemes div(phi,k) $turbulence; div(phi,omega) $turbulence; div(phi,epsilon) $turbulence; - - div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -62,6 +61,12 @@ fluxRequired { default no; p ; + p_rgh ; +} + +wallDist +{ + method meshWave; } // ************************************************************************* // diff --git a/etc/templates/closedVolume/constant/turbulenceProperties b/etc/templates/closedVolume/constant/turbulenceProperties index dc0e00cc54f0947fd43e2fd400933c31c1e1f524..dbb800fa40a3a92dc61adb7a890a56f3a638083c 100644 --- a/etc/templates/closedVolume/constant/turbulenceProperties +++ b/etc/templates/closedVolume/constant/turbulenceProperties @@ -14,6 +14,38 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -simulationType RASModel; +simulationType RAS; + +RAS +{ + RASModel kEpsilon; + + turbulence on; + printCoeffs on; +} + +LES +{ + LESModel SpalartAllmarasDDES; + delta cubeRootVol; + + turbulence on; + printCoeffs on; + + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } +} // ************************************************************************* // diff --git a/etc/templates/closedVolume/system/fvSchemes b/etc/templates/closedVolume/system/fvSchemes index bd2779fb8ba9eef90b0e8716fbc78003bdbf8ecd..99b68a83fe724fb413680f70ea365ed98ac30724 100644 --- a/etc/templates/closedVolume/system/fvSchemes +++ b/etc/templates/closedVolume/system/fvSchemes @@ -42,7 +42,7 @@ divSchemes div(phi,T) $turbulence; - div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -63,7 +63,12 @@ snGradSchemes fluxRequired { default no; - p_rgh ; + p_rgh ; +} + +wallDist +{ + method meshWave; } // ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/README b/etc/templates/closedVolumeRotating/README index d238875658b5c1069596f5d4ad094304fb3e2861..693cee7bd9df53940cd23b01a35ca46c4a1d922f 100644 --- a/etc/templates/closedVolumeRotating/README +++ b/etc/templates/closedVolumeRotating/README @@ -4,4 +4,4 @@ Overview + Can be used for MRF or AMI simulations + Setup to run the simpleFoam solver + Set up is like inflowOutflowRotating but without inlet and outlet -+ See $FOAM_ETC/templates/closedVolumeRotating/README for details of use ++ See $FOAM_ETC/templates/closedVolume/README for details of use \ No newline at end of file diff --git a/etc/templates/axisymmetricJet/constant/RASProperties b/etc/templates/closedVolumeRotating/constant/MRFProperties similarity index 83% rename from etc/templates/axisymmetricJet/constant/RASProperties rename to etc/templates/closedVolumeRotating/constant/MRFProperties index fefd567bebe9b8f2ec2103a6088c4f1fe85e6442..34fef0cc7173f23ae52b307166a159fbe038c3e1 100644 --- a/etc/templates/axisymmetricJet/constant/RASProperties +++ b/etc/templates/closedVolumeRotating/constant/MRFProperties @@ -10,14 +10,17 @@ FoamFile version 2.0; format ascii; class dictionary; - object RASProperties; + location "constant"; + object MRFProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -RASModel kOmegaSST; - -turbulence on; +MRF1 +{ + cellZone rotatingZone; + active yes; -printCoeffs on; + #include "rotatingZoneProperties" +} // ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/constant/RASProperties b/etc/templates/closedVolumeRotating/constant/RASProperties deleted file mode 100644 index fefd567bebe9b8f2ec2103a6088c4f1fe85e6442..0000000000000000000000000000000000000000 --- a/etc/templates/closedVolumeRotating/constant/RASProperties +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object RASProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -RASModel kOmegaSST; - -turbulence on; - -printCoeffs on; - -// ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/constant/turbulenceProperties b/etc/templates/closedVolumeRotating/constant/turbulenceProperties index dc0e00cc54f0947fd43e2fd400933c31c1e1f524..f0add28ce4ef4263490c0d47f66c0b063a07a9a8 100644 --- a/etc/templates/closedVolumeRotating/constant/turbulenceProperties +++ b/etc/templates/closedVolumeRotating/constant/turbulenceProperties @@ -14,6 +14,38 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -simulationType RASModel; +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + printCoeffs on; +} + +LES +{ + LESModel SpalartAllmarasDDES; + delta cubeRootVol; + + turbulence on; + printCoeffs on; + + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } +} // ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/system/fvOptions b/etc/templates/closedVolumeRotating/system/fvOptions deleted file mode 100644 index 2d6dfa8e564ec767b0ca4aea00989247f89cf966..0000000000000000000000000000000000000000 --- a/etc/templates/closedVolumeRotating/system/fvOptions +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvOptions; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -MRF1 -{ - type MRFSource; - selectionMode cellZone; - cellZone rotatingZone; - active yes; - - MRFSourceCoeffs - { - #include "${FOAM_CASE}/constant/rotatingZoneProperties" - } -} - -// ************************************************************************* // diff --git a/etc/templates/closedVolumeRotating/system/fvSchemes b/etc/templates/closedVolumeRotating/system/fvSchemes index ddcdf027dc5b80eb7d3a707941d209578c4d9db2..89a953f42fb80e05b84d856e366de3b3135d059a 100644 --- a/etc/templates/closedVolumeRotating/system/fvSchemes +++ b/etc/templates/closedVolumeRotating/system/fvSchemes @@ -40,7 +40,7 @@ divSchemes div(phi,omega) $turbulence; div(phi,epsilon) $turbulence; - div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -64,4 +64,9 @@ fluxRequired p ; } +wallDist +{ + method meshWave; +} + // ************************************************************************* // diff --git a/etc/templates/inflowOutflow/constant/RASProperties b/etc/templates/inflowOutflow/constant/RASProperties deleted file mode 100644 index fefd567bebe9b8f2ec2103a6088c4f1fe85e6442..0000000000000000000000000000000000000000 --- a/etc/templates/inflowOutflow/constant/RASProperties +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object RASProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -RASModel kOmegaSST; - -turbulence on; - -printCoeffs on; - -// ************************************************************************* // diff --git a/etc/templates/inflowOutflow/constant/turbulenceProperties b/etc/templates/inflowOutflow/constant/turbulenceProperties index dc0e00cc54f0947fd43e2fd400933c31c1e1f524..f0add28ce4ef4263490c0d47f66c0b063a07a9a8 100644 --- a/etc/templates/inflowOutflow/constant/turbulenceProperties +++ b/etc/templates/inflowOutflow/constant/turbulenceProperties @@ -14,6 +14,38 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -simulationType RASModel; +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + printCoeffs on; +} + +LES +{ + LESModel SpalartAllmarasDDES; + delta cubeRootVol; + + turbulence on; + printCoeffs on; + + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } +} // ************************************************************************* // diff --git a/etc/templates/inflowOutflow/system/fvSchemes b/etc/templates/inflowOutflow/system/fvSchemes index ddcdf027dc5b80eb7d3a707941d209578c4d9db2..89a953f42fb80e05b84d856e366de3b3135d059a 100644 --- a/etc/templates/inflowOutflow/system/fvSchemes +++ b/etc/templates/inflowOutflow/system/fvSchemes @@ -40,7 +40,7 @@ divSchemes div(phi,omega) $turbulence; div(phi,epsilon) $turbulence; - div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -64,4 +64,9 @@ fluxRequired p ; } +wallDist +{ + method meshWave; +} + // ************************************************************************* // diff --git a/etc/templates/closedVolume/constant/RASProperties b/etc/templates/inflowOutflowRotating/constant/MRFProperties similarity index 83% rename from etc/templates/closedVolume/constant/RASProperties rename to etc/templates/inflowOutflowRotating/constant/MRFProperties index 496ee3b41cc0d5840868dbfab758d4cc85d8fcfd..34fef0cc7173f23ae52b307166a159fbe038c3e1 100644 --- a/etc/templates/closedVolume/constant/RASProperties +++ b/etc/templates/inflowOutflowRotating/constant/MRFProperties @@ -10,14 +10,17 @@ FoamFile version 2.0; format ascii; class dictionary; - object RASProperties; + location "constant"; + object MRFProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -RASModel kEpsilon; - -turbulence on; +MRF1 +{ + cellZone rotatingZone; + active yes; -printCoeffs on; + #include "rotatingZoneProperties" +} // ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/constant/RASProperties b/etc/templates/inflowOutflowRotating/constant/RASProperties deleted file mode 100644 index fefd567bebe9b8f2ec2103a6088c4f1fe85e6442..0000000000000000000000000000000000000000 --- a/etc/templates/inflowOutflowRotating/constant/RASProperties +++ /dev/null @@ -1,23 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object RASProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -RASModel kOmegaSST; - -turbulence on; - -printCoeffs on; - -// ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/constant/turbulenceProperties b/etc/templates/inflowOutflowRotating/constant/turbulenceProperties index dc0e00cc54f0947fd43e2fd400933c31c1e1f524..f0add28ce4ef4263490c0d47f66c0b063a07a9a8 100644 --- a/etc/templates/inflowOutflowRotating/constant/turbulenceProperties +++ b/etc/templates/inflowOutflowRotating/constant/turbulenceProperties @@ -14,6 +14,38 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -simulationType RASModel; +simulationType RAS; + +RAS +{ + RASModel kOmegaSST; + + turbulence on; + printCoeffs on; +} + +LES +{ + LESModel SpalartAllmarasDDES; + delta cubeRootVol; + + turbulence on; + printCoeffs on; + + cubeRootVolCoeffs + { + deltaCoeff 1; + } + + smoothCoeffs + { + delta cubeRootVol; + cubeRootVolCoeffs + { + deltaCoeff 1; + } + maxDeltaRatio 1.1; + } +} // ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/system/fvOptions b/etc/templates/inflowOutflowRotating/system/fvOptions deleted file mode 100644 index 2d6dfa8e564ec767b0ca4aea00989247f89cf966..0000000000000000000000000000000000000000 --- a/etc/templates/inflowOutflowRotating/system/fvOptions +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ -| ========= | | -| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | -| \\ / O peration | Version: dev | -| \\ / A nd | Web: www.OpenFOAM.org | -| \\/ M anipulation | | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object fvOptions; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -MRF1 -{ - type MRFSource; - selectionMode cellZone; - cellZone rotatingZone; - active yes; - - MRFSourceCoeffs - { - #include "${FOAM_CASE}/constant/rotatingZoneProperties" - } -} - -// ************************************************************************* // diff --git a/etc/templates/inflowOutflowRotating/system/fvSchemes b/etc/templates/inflowOutflowRotating/system/fvSchemes index ddcdf027dc5b80eb7d3a707941d209578c4d9db2..89a953f42fb80e05b84d856e366de3b3135d059a 100644 --- a/etc/templates/inflowOutflowRotating/system/fvSchemes +++ b/etc/templates/inflowOutflowRotating/system/fvSchemes @@ -40,7 +40,7 @@ divSchemes div(phi,omega) $turbulence; div(phi,epsilon) $turbulence; - div((nuEff*dev(T(grad(U))))) Gauss linear; + div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes @@ -64,4 +64,9 @@ fluxRequired p ; } +wallDist +{ + method meshWave; +} + // ************************************************************************* //