mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
multiphaseEulerFoam/pEqn.H: Improved handling of negative alpha for the creation of Dp
This commit is contained in:
@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user