From 6fe856136d1334b51db53f2c7016adf727e97afd Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 13 Nov 2015 22:06:52 +0000 Subject: [PATCH] reactingTwoPhaseEulerFoam, reactingMultiphaseEulerFoam: Added nEnergyCorrectors to allow iteration over the energy equations to improve stability for phase-change. Additionally if nEnergyCorrectors is set to 0 the energy equations are not solved which may be beneficial during the startup of some cases. --- .../reactingEulerFoam/reactingMultiphaseEulerFoam/EEqns.H | 1 + .../reactingMultiphaseEulerFoam.C | 5 +++++ .../reactingEulerFoam/reactingTwoPhaseEulerFoam/EEqns.H | 1 + .../reactingTwoPhaseEulerFoam/reactingTwoPhaseEulerFoam.C | 5 +++++ 4 files changed, 12 insertions(+) diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/EEqns.H b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/EEqns.H index 386331e0ee..422f6324b1 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/EEqns.H +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingMultiphaseEulerFoam/EEqns.H @@ -1,3 +1,4 @@ +for (int Ecorr=0; Ecorr("nEnergyCorrectors", 1) + ); + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; diff --git a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/EEqns.H b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/EEqns.H index 684e5ede43..3060c444de 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/EEqns.H +++ b/applications/solvers/multiphase/reactingEulerFoam/reactingTwoPhaseEulerFoam/EEqns.H @@ -1,3 +1,4 @@ +for (int Ecorr=0; Ecorr("nEnergyCorrectors", 1) + ); + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl;