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:
parent
658b8b6d04
commit
ff067f1f2d
3 changed files with 3 additions and 4 deletions
|
|
@ -11,8 +11,8 @@
|
||||||
(fvc::interpolate(HbyA) & mesh.Sf())
|
(fvc::interpolate(HbyA) & mesh.Sf())
|
||||||
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
|
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
|
||||||
);
|
);
|
||||||
adjustPhi(phiHbyA, U, p_rgh);
|
|
||||||
fvOptions.makeRelative(phiHbyA);
|
fvOptions.makeRelative(phiHbyA);
|
||||||
|
adjustPhi(phiHbyA, U, p_rgh);
|
||||||
|
|
||||||
surfaceScalarField phig
|
surfaceScalarField phig
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
(fvc::interpolate(HbyA) & mesh.Sf())
|
(fvc::interpolate(HbyA) & mesh.Sf())
|
||||||
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
|
+ fvc::interpolate(rho*rAU)*fvc::ddtCorr(U, phi)
|
||||||
);
|
);
|
||||||
adjustPhi(phiHbyA, U, p_rgh);
|
|
||||||
fvOptions.makeRelative(phiHbyA);
|
fvOptions.makeRelative(phiHbyA);
|
||||||
|
adjustPhi(phiHbyA, U, p_rgh);
|
||||||
|
|
||||||
surfaceScalarField phig
|
surfaceScalarField phig
|
||||||
(
|
(
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,8 @@ surfaceScalarField phiHbyA
|
||||||
+ rAUf*fvc::ddtCorr(U, phi)
|
+ rAUf*fvc::ddtCorr(U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
adjustPhi(phiHbyA, U, p_gh);
|
|
||||||
|
|
||||||
fvOptions.makeRelative(phiHbyA);
|
fvOptions.makeRelative(phiHbyA);
|
||||||
|
adjustPhi(phiHbyA, U, p_gh);
|
||||||
|
|
||||||
// Update the fixedFluxPressure BCs to ensure flux consistency
|
// Update the fixedFluxPressure BCs to ensure flux consistency
|
||||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue