compressibleMultiphaseInterFoam: Added contErr to avoid unboundedness in U and T

This commit is contained in:
Henry Weller
2022-02-08 16:25:44 +00:00
parent 13b78294ff
commit e22870f508

View File

@ -0,0 +1,15 @@
volScalarField::Internal contErr
(
(fvc::ddt(rho) + fvc::div(mixture.rhoPhi()))()
);
forAllConstIter
(
PtrDictionary<phaseModel>,
mixture.phases(),
phase
)
{
const volScalarField& rho = phase().thermo().rho()();
contErr -= (fvModels.source(phase(), rho)&rho);
}