applications/solvers/multiphase: for MRF make phiHbyA relative BEFORE adjustPhi

Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1665
This commit is contained in:
Henry 2015-04-20 16:44:44 +01:00
parent 8e6264ed2d
commit 7d3568787e
3 changed files with 3 additions and 4 deletions

View file

@ -11,8 +11,8 @@
(fvc::interpolate(HbyA) & mesh.Sf())
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
);
adjustPhi(phiHbyA, U, p_rgh);
fvOptions.makeRelative(phiHbyA);
adjustPhi(phiHbyA, U, p_rgh);
surfaceScalarField phig
(

View file

@ -11,8 +11,8 @@
(fvc::interpolate(HbyA) & mesh.Sf())
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
);
adjustPhi(phiHbyA, U, p_rgh);
fvOptions.makeRelative(phiHbyA);
adjustPhi(phiHbyA, U, p_rgh);
surfaceScalarField phig
(

View file

@ -16,9 +16,8 @@ surfaceScalarField phiHbyA
+ rAUf*fvc::ddtCorr(U, phi)
);
adjustPhi(phiHbyA, U, p_gh);
fvOptions.makeRelative(phiHbyA);
adjustPhi(phiHbyA, U, p_gh);
// Update the fixedFluxPressure BCs to ensure flux consistency
setSnGrad<fixedFluxPressureFvPatchScalarField>