From 7970715232725916a755a669ca310d9c9ffe65c8 Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Thu, 14 Jul 2022 09:08:24 +0100 Subject: [PATCH] multiphaseEulerFoam: Prevented incorrect warnings When two phases interact, neither of which can become continuous, only a general model is appropriate. A warning should not be issued regarding a general model's use for this configuration. --- .../BlendedInterfacialModel/BlendedInterfacialModel.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C b/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C index bf71e4918b..112bdcb3d5 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/phaseSystems/BlendedInterfacialModel/BlendedInterfacialModel.C @@ -145,6 +145,7 @@ void Foam::BlendedInterfacialModel::check() const if ( modelGeneral_.valid() + && (can1In2 || can2In1 || canS) && (!can1In2 || model1DispersedIn2_.valid()) && (!can2In1 || model2DispersedIn1_.valid()) && (!canS || model1SegregatedWith2_.valid()) @@ -165,6 +166,7 @@ void Foam::BlendedInterfacialModel::check() const if ( modelsGeneralDisplaced_.set(phasei) + && (can1In2 || can2In1 || canS) && (!can1In2 || models1DispersedIn2Displaced_.set(phasei)) && (!can2In1 || models2DispersedIn1Displaced_.set(phasei)) && (!canS || models1SegregatedWith2Displaced_.set(phasei))