reactingMultiphaseEulerFoam: Make phase fluxes relative in MRF regions
This commit is contained in:
@ -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
|
||||
(
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user