Skip to content
Snippets Groups Projects
Commit 24a340ef authored by Henry's avatar Henry
Browse files

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

Resolves bug-report http://openfoam.org/mantisbt/view.php?id=1665
parent 3b65f924
Branches
Tags
No related merge requests found
......@@ -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
(
......
......@@ -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
(
......
......@@ -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>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment