multiphaseEulerFoam/pEqn.H: Improved handling of negative alpha for the creation of Dp

This commit is contained in:
Henry
2012-03-21 17:38:23 +00:00
parent 22fd47192f
commit 97e659a5c6

View File

@ -159,11 +159,10 @@
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
{
phaseModel& phase = iter();
Dp += alphafs[phasei]*rAlphaAUfs[phasei]/phase.rho();
Dp += mag(alphafs[phasei]*rAlphaAUfs[phasei])/phase.rho();
phasei++;
}
Dp = mag(Dp);
while (pimple.correctNonOrthogonal())
{
@ -173,6 +172,8 @@
- fvm::laplacian(Dp, p)
);
pEqnIncomp.setReference(pRefCell, pRefValue);
solve
(
// (
@ -196,7 +197,10 @@
phase.phi() =
phiHbyAs[phasei]
+ rAlphaAUfs[phasei]*mSfGradp/phase.rho();
phi += alphafs[phasei]*phase.phi();
phi +=
alphafs[phasei]*phiHbyAs[phasei]
+ mag(alphafs[phasei]*rAlphaAUfs[phasei])
*mSfGradp/phase.rho();
phasei++;
}