From 257d2f04a43ea9ed70ea0469c56049d0cf7b9c09 Mon Sep 17 00:00:00 2001 From: sergio <sergio> Date: Thu, 8 Jun 2017 10:41:57 +0100 Subject: [PATCH] Update rho = thermo.rho(), in the pEq for reactingFoam. Updating fvSolution's for closed domains for chtMultiRegionFoam cases --- applications/solvers/combustion/reactingFoam/pEqn.H | 3 ++- .../snappyMultiRegionHeater/system/bottomAir/fvSolution | 2 ++ .../snappyMultiRegionHeater/system/topAir/fvSolution | 2 ++ .../windshieldDefrost/system/cabin/fvSolution | 2 ++ .../chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution | 2 ++ 5 files changed, 10 insertions(+), 1 deletion(-) diff --git a/applications/solvers/combustion/reactingFoam/pEqn.H b/applications/solvers/combustion/reactingFoam/pEqn.H index 81ab6424b4c..36f3e777530 100644 --- a/applications/solvers/combustion/reactingFoam/pEqn.H +++ b/applications/solvers/combustion/reactingFoam/pEqn.H @@ -92,9 +92,10 @@ K = 0.5*magSqr(U); if (pressureControl.limit(p)) { p.correctBoundaryConditions(); - rho = thermo.rho(); } +rho = thermo.rho(); + if (thermo.dpdt()) { dpdt = fvc::ddt(p); diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/bottomAir/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/bottomAir/fvSolution index 1185c9d7c42..51011f702cb 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/bottomAir/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/bottomAir/fvSolution @@ -62,6 +62,8 @@ PIMPLE momentumPredictor yes; nCorrectors 2; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/topAir/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/topAir/fvSolution index 1185c9d7c42..51011f702cb 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/topAir/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/topAir/fvSolution @@ -62,6 +62,8 @@ PIMPLE momentumPredictor yes; nCorrectors 2; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution index 0eabd4031a5..6dc2762c5a5 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/cabin/fvSolution @@ -66,6 +66,8 @@ PIMPLE momentumPredictor no; nCorrectors 1; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution index 0c2e7c9b8b9..afd8468ca65 100644 --- a/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution +++ b/tutorials/heatTransfer/chtMultiRegionFoam/windshieldDefrost/system/ice/fvSolution @@ -82,6 +82,8 @@ PIMPLE momentumPredictor no; nCorrectors 1; nNonOrthogonalCorrectors 0; + pRefCell 0; + pRefValue 1e5; } relaxationFactors -- GitLab