From b120c4041ce8289a36f0f93a3f1432085efdc8b1 Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Sun, 5 Jun 2016 21:36:30 +0200 Subject: [PATCH] FEAT: fluxRequired support in multiphaseInterFoam --- .../multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C | 1 + .../laminar/damBreak4phase/system/fvSchemes | 4 ---- .../laminar/damBreak4phaseFine/system/fvSchemes | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C index 952853472..11b454f06 100644 --- a/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C +++ b/applications/solvers/multiphase/multiphaseInterFoam/multiphaseMixture/multiphaseMixture.C @@ -125,6 +125,7 @@ Foam::multiphaseMixture::multiphaseMixture forAllIter(PtrDictionary, phases_, iter) { alphaTable_.add(iter()); + mesh_.schemesDict().setFluxRequired(iter().volScalarField::name()); } } diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/system/fvSchemes b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/system/fvSchemes index f20f40589..019dfdb4f 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/system/fvSchemes +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phase/system/fvSchemes @@ -49,9 +49,5 @@ snGradSchemes default corrected; } -fluxRequired -{ - default yes; -} // ************************************************************************* // diff --git a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/fvSchemes b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/fvSchemes index f20f40589..019dfdb4f 100644 --- a/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/fvSchemes +++ b/tutorials/multiphase/multiphaseInterFoam/laminar/damBreak4phaseFine/system/fvSchemes @@ -49,9 +49,5 @@ snGradSchemes default corrected; } -fluxRequired -{ - default yes; -} // ************************************************************************* //