From 2a9a2d0e7aecec929d099db2669f148d4356e8d0 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 19 Dec 2023 15:56:25 +0000 Subject: [PATCH] Template cases: apply entrainmentPressure BC for p at outlet patches The boundary condition applied to pressure at open boundaries and outlets is switched from totalPressure to entrainmentPressure. The latter boundary condition is more robust since it calculates the pressure for inflow using (velocity) fluxes rather than velocity on the patch. --- etc/templates/axisymmetricJet/0/p | 2 +- etc/templates/compressibleInflowOutflow/0/p | 2 +- etc/templates/inflowOutflow/0/p | 2 +- etc/templates/inflowOutflowRotating/0/p | 2 +- etc/templates/singleFluidCHT/templates/0/fluid/p_rgh | 3 ++- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/templates/axisymmetricJet/0/p b/etc/templates/axisymmetricJet/0/p index 6106518755..d25d2c2e75 100644 --- a/etc/templates/axisymmetricJet/0/p +++ b/etc/templates/axisymmetricJet/0/p @@ -26,7 +26,7 @@ boundaryField atmosphere { - type totalPressure; + type entrainmentPressure; p0 uniform 0; value uniform 0; } diff --git a/etc/templates/compressibleInflowOutflow/0/p b/etc/templates/compressibleInflowOutflow/0/p index 911d9e5031..56a3e55bbb 100644 --- a/etc/templates/compressibleInflowOutflow/0/p +++ b/etc/templates/compressibleInflowOutflow/0/p @@ -28,7 +28,7 @@ boundaryField outlet { - type totalPressure; + type entrainmentPressure; p0 uniform $pOut; value uniform $pOut; } diff --git a/etc/templates/inflowOutflow/0/p b/etc/templates/inflowOutflow/0/p index 3bcb46c5a2..bab720ca43 100644 --- a/etc/templates/inflowOutflow/0/p +++ b/etc/templates/inflowOutflow/0/p @@ -26,7 +26,7 @@ boundaryField outlet { - type totalPressure; + type entrainmentPressure; p0 uniform 0; value uniform 0; } diff --git a/etc/templates/inflowOutflowRotating/0/p b/etc/templates/inflowOutflowRotating/0/p index 3bcb46c5a2..bab720ca43 100644 --- a/etc/templates/inflowOutflowRotating/0/p +++ b/etc/templates/inflowOutflowRotating/0/p @@ -26,7 +26,7 @@ boundaryField outlet { - type totalPressure; + type entrainmentPressure; p0 uniform 0; value uniform 0; } diff --git a/etc/templates/singleFluidCHT/templates/0/fluid/p_rgh b/etc/templates/singleFluidCHT/templates/0/fluid/p_rgh index ac9bb586a0..71c359297a 100644 --- a/etc/templates/singleFluidCHT/templates/0/fluid/p_rgh +++ b/etc/templates/singleFluidCHT/templates/0/fluid/p_rgh @@ -23,7 +23,8 @@ boundaryField { outlet { - type fixedValue; + type entrainmentPressure; + p0 $internalField; value $internalField; }