From 6e14d1b5ebdac4b2efb5a453886a1e9f70dd8c7c Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 27 Mar 2018 11:32:58 +0100 Subject: [PATCH] tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle: Updated porosity coefficients The implementation of the porousBafflePressure BC was incorrect in OpenFOAM-2.4 and earlier and corrected during the turbulence modeling rewrite for OpenFOAM-3.0. This update introduced the density scaling required for the definition of pressure in interFoam which requires the porosity coefficients to be reduced. Resolves bug-report https://bugs.openfoam.org/view.php?id=2890 --- .../interFoam/RAS/damBreakPorousBaffle/0/p_rgh | 17 +++++++++++------ .../system/createBafflesDict | 5 +++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/0/p_rgh b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/0/p_rgh index cc1d6ccae..30c34bbae 100644 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/0/p_rgh +++ b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/0/p_rgh @@ -42,7 +42,11 @@ boundaryField atmosphere { type totalPressure; + rho rho; + psi none; + gamma 1; p0 uniform 0; + value uniform 0; } defaultFaces { @@ -52,20 +56,21 @@ boundaryField { type porousBafflePressure; patchType cyclic; + D 10; + I 5; + length 0.15; jump uniform 0; value uniform 0; - D 1000; - I 500; - length 0.15; } porous_half1 { type porousBafflePressure; patchType cyclic; - value uniform 0; - D 1000; - I 500; + D 10; + I 5; length 0.15; + jump uniform 0; + value uniform 0; } } diff --git a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/createBafflesDict b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/createBafflesDict index ff948704d..0a03eb69e 100644 --- a/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/createBafflesDict +++ b/tutorials/multiphase/interFoam/RAS/damBreakPorousBaffle/system/createBafflesDict @@ -19,6 +19,7 @@ FoamFile // faces. internalFacesOnly true; +fields true; // Baffles to create. baffles @@ -49,8 +50,8 @@ baffles { type porousBafflePressure; patchType cyclic; - D 1000; - I 500; + D 10; + I 5; length 0.15; jump uniform 0; value uniform 0;