From acc0e56c78aa7638b5c4986735529b02a5d9d2c5 Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 14 Jun 2016 15:01:56 -0700 Subject: [PATCH] ENh: Updating windshieldDefrost case set up --- .../externalSolarLoad/system/controlDict | 2 +- .../windshieldDefrost/0.org/cabin/U | 4 +- .../windshieldDefrost/0.org/cabin/p_rgh | 6 +- .../windshieldDefrost/0.org/exterior/alphat | 3 +- .../windshieldDefrost/system/cabin/fvSchemes | 6 +- .../windshieldDefrost/system/cabin/fvSolution | 5 +- .../windshieldDefrost/system/controlDict | 2 +- .../system/exterior/fvSchemes | 10 +-- .../system/exterior/fvSolution | 3 +- .../windshieldDefrost/system/fvSchemes | 24 ------- .../windshieldDefrost/system/fvSolution | 62 +------------------ .../windshieldDefrost/system/ice/fvSchemes | 8 +-- .../windshieldDefrost/system/ice/fvSolution | 5 +- 13 files changed, 29 insertions(+), 111 deletions(-) diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/system/controlDict index 7aea00e7ca..cedfba6ff5 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/system/controlDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/externalSolarLoad/system/controlDict @@ -29,7 +29,7 @@ deltaT 10; writeControl adjustableRunTime; -writeInterval 800; +writeInterval 1000; purgeWrite 0; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U index ac97d3af19..39f76c7d60 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/U @@ -28,8 +28,8 @@ boundaryField } outlet { -// type pressureInletOutletVelocity; - type inletOutlet; + type pressureInletOutletVelocity; + //type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh index dbb286bce0..bb3617673a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/cabin/p_rgh @@ -29,7 +29,11 @@ boundaryField } outlet { - type fixedValue; + type totalPressure; + rho rho; + psi none; + gamma 1; + p0 uniform 100000; value uniform 100000; } symmetry diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat index b136d99193..90db16eef7 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/0.org/exterior/alphat @@ -32,7 +32,8 @@ boundaryField } exterior_to_ice { - type calculated; + type compressible::alphatWallFunction; + Prt 0.85; value uniform 0; } } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes index 677c4419f5..878217cca3 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSchemes @@ -23,15 +23,15 @@ ddtSchemes gradSchemes { default Gauss linear; - grad(p_rgh) Gauss linear; + grad(U) cellLimited Gauss linear 1; } divSchemes { default none; - div(phi,U) Gauss linearUpwind grad(U); + div(phi,U) Gauss upwind; div(phi,K) Gauss linear; - div(phi,h) Gauss limitedLinear 1; + div(phi,h) Gauss upwind; div(phi,k) Gauss limitedLinear 1; div(phi,omega) Gauss limitedLinear 1; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution index 5aafaecc06..0eabd4031a 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution @@ -63,9 +63,8 @@ solvers PIMPLE { - momentumPredictor yes; - nOuterCorrectors 1; - nCorrectors 2; + momentumPredictor no; + nCorrectors 1; nNonOrthogonalCorrectors 0; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict index 9440e7bc28..12e3383b68 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/controlDict @@ -47,7 +47,7 @@ runTimeModifiable true; adjustTimeStep yes; -maxCo 1; +maxCo 5; maxDeltaT 1; diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes index 677c4419f5..1eddf7a1d6 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSchemes @@ -23,17 +23,17 @@ ddtSchemes gradSchemes { default Gauss linear; - grad(p_rgh) Gauss linear; + grad(U) cellLimited Gauss linear 1; } divSchemes { default none; - div(phi,U) Gauss linearUpwind grad(U); + div(phi,U) Gauss upwind;//linearUpwind grad(U); div(phi,K) Gauss linear; - div(phi,h) Gauss limitedLinear 1; - div(phi,k) Gauss limitedLinear 1; - div(phi,omega) Gauss limitedLinear 1; + div(phi,h) Gauss upwind; + div(phi,k) Gauss upwind; + div(phi,omega) Gauss upwind; div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution index fd73547e5c..1cd25d9280 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/exterior/fvSolution @@ -63,8 +63,7 @@ solvers PIMPLE { - momentumPredictor yes; - nOuterCorrectors 1; + momentumPredictor no; nCorrectors 2; nNonOrthogonalCorrectors 0; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes index 1a61c2154b..ed9c4fbcc4 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSchemes @@ -17,50 +17,26 @@ FoamFile ddtSchemes { - default Euler; } gradSchemes { - default Gauss linear; - grad(p_rgh) Gauss linear; } divSchemes { - default none; - div(phi,U) Gauss linearUpwind grad(U); - div(phi,K) Gauss linear; - div(phi,h) Gauss limitedLinear 1; - div(phi,k) Gauss limitedLinear 1; - div(phi,omega) Gauss limitedLinear 1; - div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { - default none; - laplacian((rho*nuEff),U) Gauss linear corrected; - laplacian(DkEff,k) Gauss linear corrected; - laplacian(DomegaEff,omega) Gauss linear corrected; - laplacian(rAUf,p_rgh) Gauss linear corrected; - laplacian(alphaEff,h) Gauss linear corrected; } interpolationSchemes { - default linear; } snGradSchemes { - default corrected; -} - -fluxRequired -{ - default no; - p_rgh ; } diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution index 5aafaecc06..b0c20836b0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/fvSolution @@ -15,69 +15,9 @@ FoamFile } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -solvers -{ - p_rgh - { - solver GAMG; - tolerance 1e-06; - relTol 0.1; - smoother GaussSeidel; - nPreSweeps 0; - nPostSweeps 2; - nFinestSweeps 2; - cacheAgglomeration true; - nCellsInCoarsestLevel 10; - agglomerator faceAreaPair; - mergeLevels 1; - } - - p_rghFinal - { - $p_rgh; - smoother DICGaussSeidel; - relTol 0; - } - - "rho.*" - { - $p_rgh; - tolerance 1e-05; - relTol 0; - } - - "(U|h|R|k|epsilon|omega)" - { - solver smoothSolver; - smoother symGaussSeidel; - tolerance 1e-05; - relTol 0.1; - } - - "(U|h|R|k|epsilon|omega)Final" - { - $U; - relTol 0; - } -} - PIMPLE { - momentumPredictor yes; - nOuterCorrectors 1; - nCorrectors 2; - nNonOrthogonalCorrectors 0; -} - -relaxationFactors -{ - fields - { - } - equations - { - ".*" 1; - } + nOuterCorrectors 2; } // ************************************************************************* // diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes index 0ac94f6bf7..9bf0aa7cd0 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSchemes @@ -38,9 +38,9 @@ divSchemes laplacianSchemes { default none; - laplacian((rho*nuEff),U) Gauss linear corrected; - laplacian(rhorAUf,p_rgh) Gauss linear corrected; - laplacian(thermo:alpha,h) Gauss linear corrected; + laplacian((rho*nuEff),U) Gauss linear limited corrected 0.333; + laplacian(rhorAUf,p_rgh) Gauss linear limited corrected 0.333; + laplacian(thermo:alpha,h) Gauss linear limited corrected 0.333; } interpolationSchemes @@ -50,7 +50,7 @@ interpolationSchemes snGradSchemes { - default corrected; + default limited corrected 0.333; } fluxRequired diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution index fddf09d035..d0c9e06316 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution @@ -46,7 +46,7 @@ solvers solver PCG; preconditioner DIC; tolerance 1e-07; - relTol 0.05; + relTol 0.01; } p_rghFinal @@ -80,8 +80,7 @@ solvers PIMPLE { momentumPredictor no; - nOuterCorrectors 1; - nCorrectors 2; + nCorrectors 1; nNonOrthogonalCorrectors 0; }