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:50:02 +01:00
parent 3b65f924ec
commit 24a340ef75
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>