Skip to content
Snippets Groups Projects
Commit 97e659a5 authored by Henry's avatar Henry
Browse files

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

parent 22fd4719
Branches
Tags
No related merge requests found
......@@ -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++;
}
......
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