mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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.
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
|
||||||
{
|
{
|
||||||
fluid.correctEnergyTransport();
|
fluid.correctEnergyTransport();
|
||||||
|
|
||||||
|
|||||||
@ -76,6 +76,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
//#include "pUf/createDDtU.H"
|
//#include "pUf/createDDtU.H"
|
||||||
|
|
||||||
|
int nEnergyCorrectors
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<int>("nEnergyCorrectors", 1)
|
||||||
|
);
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
for (int Ecorr=0; Ecorr<nEnergyCorrectors; Ecorr++)
|
||||||
{
|
{
|
||||||
fluid.correctEnergyTransport();
|
fluid.correctEnergyTransport();
|
||||||
|
|
||||||
|
|||||||
@ -77,6 +77,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "pUf/createDDtU.H"
|
#include "pUf/createDDtU.H"
|
||||||
|
|
||||||
|
int nEnergyCorrectors
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<int>("nEnergyCorrectors", 1)
|
||||||
|
);
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user