reactingMultiphaseEulerFoam: Bug fix to divergence handling

This commit is contained in:
Will Bainbridge
2018-03-14 17:06:35 +00:00
parent ea00c1a4c5
commit 26f2ce9c9e

View File

@ -189,8 +189,6 @@ void Foam::multiphaseSystem::solveAlphas()
);
volScalarField divU(fvc::div(fvc::absolute(phi_, phases().first().U())));
forAll(phases(), phasei)
{
phaseModel& phase = phases()[phasei];
@ -209,20 +207,13 @@ void Foam::multiphaseSystem::solveAlphas()
mesh_
),
mesh_,
dimensionedScalar("Sp", divU.dimensions(), 0.0)
dimensionedScalar("Sp", dimless/dimTime, 0)
);
volScalarField::Internal Su
(
IOobject
(
"Su",
mesh_.time().timeName(),
mesh_
),
// Divergence term is handled explicitly to be
// consistent with the explicit transport solution
divU*min(alpha, scalar(1))
"Su",
min(alpha, scalar(1))*fvc::div(fvc::absolute(phi_, phase.U()))
);
if (phase.divU().valid())