From 4b65112182e439d2ef51f79992b63f57f4d155b9 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 27 Apr 2021 10:35:14 +0100 Subject: [PATCH] tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere: Updated water Prandtl number and removed unused files. Resolves patch request https://bugs.openfoam.org/view.php?id=3666 --- .../materials/water/thermophysicalProperties | 11 ++-- .../squareBend/system/fvSolution | 4 +- .../coolingSphere/constant/momentumTransport | 51 ------------------- .../constant/thermophysicalTransport | 26 ---------- .../constant/transportProperties | 21 -------- .../materials/water/thermophysicalProperties | 4 +- 6 files changed, 10 insertions(+), 107 deletions(-) delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/momentumTransport delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/thermophysicalTransport delete mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/transportProperties diff --git a/etc/templates/singleFluidCHT/templates/materials/water/thermophysicalProperties b/etc/templates/singleFluidCHT/templates/materials/water/thermophysicalProperties index 9b231266c6..e41f702fa9 100644 --- a/etc/templates/singleFluidCHT/templates/materials/water/thermophysicalProperties +++ b/etc/templates/singleFluidCHT/templates/materials/water/thermophysicalProperties @@ -19,10 +19,10 @@ thermoType type heRhoThermo; mixture pureMixture; transport const; - thermo hConst; - equationOfState perfectFluid; + thermo eConst; + equationOfState rPolynomial; specie specie; - energy sensibleEnthalpy; + energy sensibleInternalEnergy; } mixture @@ -34,12 +34,11 @@ mixture } equationOfState { - R 3000; // [J/kg/K] - rho0 1027; // [kg/m^3] + C (0.001278 -2.1055e-06 3.9689e-09 4.3772e-13 -2.0225e-16); // [J/kg/K] } thermodynamics { - Cp 4181; // [J/kg/K] at T = 293 K + Cv 4181; // [J/kg/K] at T = 293 K Hf 0; } transport diff --git a/tutorials/compressible/rhoSimpleFoam/squareBend/system/fvSolution b/tutorials/compressible/rhoSimpleFoam/squareBend/system/fvSolution index 632d783c6d..a24719da1e 100644 --- a/tutorials/compressible/rhoSimpleFoam/squareBend/system/fvSolution +++ b/tutorials/compressible/rhoSimpleFoam/squareBend/system/fvSolution @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev + \\ / A nd | Version: 8 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile @@ -39,6 +39,8 @@ solvers SIMPLE { nNonOrthogonalCorrectors 0; + pMinFactor 0.1; + pMaxFactor 2; transonic yes; consistent yes; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/momentumTransport b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/momentumTransport deleted file mode 100644 index a17e104a89..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/momentumTransport +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object momentumTransport; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -simulationType RAS; - -RAS -{ - model kOmegaSST; - - turbulence on; - printCoeffs on; -} - -LES -{ - model SpalartAllmarasDDES; - delta cubeRootVol; - - turbulence on; - printCoeffs on; - - cubeRootVolCoeffs - { - deltaCoeff 1; - } - - smoothCoeffs - { - delta cubeRootVol; - cubeRootVolCoeffs - { - deltaCoeff 1; - } - maxDeltaRatio 1.1; - } -} - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/thermophysicalTransport b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/thermophysicalTransport deleted file mode 100644 index b8802a163b..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/thermophysicalTransport +++ /dev/null @@ -1,26 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - location "constant"; - object thermophysicalTransport; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -RAS -{ - model eddyDiffusivity; - - Prt 0.85; -} - - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/transportProperties b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/transportProperties deleted file mode 100644 index acf98e41fc..0000000000 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/constant/transportProperties +++ /dev/null @@ -1,21 +0,0 @@ -/*--------------------------------*- C++ -*----------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | Website: https://openfoam.org - \\ / A nd | Version: dev - \\/ M anipulation | -\*---------------------------------------------------------------------------*/ -FoamFile -{ - version 2.0; - format ascii; - class dictionary; - object transportProperties; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -transportModel Newtonian; - -nu 1.5e-05; - -// ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/materials/water/thermophysicalProperties b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/materials/water/thermophysicalProperties index cd2cb1df02..e41f702fa9 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/materials/water/thermophysicalProperties +++ b/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/templates/materials/water/thermophysicalProperties @@ -34,7 +34,7 @@ mixture } equationOfState { - C (0.001278 -2.1055e-06 3.9689e-09 4.3772e-13 -2.0225e-16); // [J/kg/K] + C (0.001278 -2.1055e-06 3.9689e-09 4.3772e-13 -2.0225e-16); // [J/kg/K] } thermodynamics { @@ -44,7 +44,7 @@ mixture transport { mu 1.0e-03; // [kg/m/s] - Pr 0.7; + Pr 7; } }