Added makeRelative for MRF
Resolves bug report http://www.openfoam.org/mantisbt/view.php?id=1221
This commit is contained in:
parent
46d53c222d
commit
ae8469ef7e
1 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ if (simple.transonic())
|
||||||
*(fvc::interpolate(HbyA) & mesh.Sf())
|
*(fvc::interpolate(HbyA) & mesh.Sf())
|
||||||
);
|
);
|
||||||
|
|
||||||
|
fvOptions.makeRelative(fvc::interpolate(psi), phid);
|
||||||
|
|
||||||
surfaceScalarField phic
|
surfaceScalarField phic
|
||||||
(
|
(
|
||||||
"phic",
|
"phic",
|
||||||
|
|
@ -61,6 +63,8 @@ else
|
||||||
fvc::interpolate(rho*HbyA) & mesh.Sf()
|
fvc::interpolate(rho*HbyA) & mesh.Sf()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
fvOptions.makeRelative(fvc::interpolate(rho), phiHbyA);
|
||||||
|
|
||||||
closedVolume = adjustPhi(phiHbyA, U, p);
|
closedVolume = adjustPhi(phiHbyA, U, p);
|
||||||
|
|
||||||
phiHbyA += fvc::interpolate(rho*(rAtU - rAU))*fvc::snGrad(p)*mesh.magSf();
|
phiHbyA += fvc::interpolate(rho*(rAtU - rAU))*fvc::snGrad(p)*mesh.magSf();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue