reactingMultiphaseEulerFoam: Make phase fluxes relative in MRF regions

This commit is contained in:
Henry Weller
2020-06-25 19:28:19 +01:00
parent 20c66b0c2b
commit 658b0c5195
2 changed files with 15 additions and 13 deletions

View File

@ -141,9 +141,12 @@ while (pimple.correct())
new surfaceScalarField
(
IOobject::groupName("phiHbyA", phase.name()),
fvc::flux(HbyAs[phase.index()])
- phigFs[phase.index()]
- ddtCorrByAs[phase.index()]
MRF.relative
(
fvc::flux(HbyAs[phase.index()])
- phigFs[phase.index()]
- ddtCorrByAs[phase.index()]
)
)
);
}
@ -204,8 +207,6 @@ while (pimple.correct())
}
}
MRF.makeRelative(phiHbyA);
// Construct pressure "diffusivity"
surfaceScalarField rAUf
(

View File

@ -128,13 +128,16 @@ while (pimple.correct())
new surfaceScalarField
(
IOobject::groupName("phiHbyA", phase.name()),
rAUfs[phase.index()]
*(
fvc::flux(UEqns[phase.index()].H())
+ alphaRho0fs[phase.index()]
*byDt(MRF.absolute(phase.phi()().oldTime()))
MRF.relative
(
rAUfs[phase.index()]
*(
fvc::flux(UEqns[phase.index()].H())
+ alphaRho0fs[phase.index()]
*byDt(MRF.absolute(phase.phi()().oldTime()))
)
- phigFs[phase.index()]
)
- phigFs[phase.index()]
)
);
}
@ -188,8 +191,6 @@ while (pimple.correct())
}
}
MRF.makeRelative(phiHbyA);
// Construct pressure "diffusivity"
surfaceScalarField rAUf
(