reactingEulerFoam::AnisothermalPhaseModel: Added a continuity error compensation term to the internal energy pressure work

Reduced the accumulation of error for incompressible and low compressibility
cases.

Partly resolves report https://bugs.openfoam.org/view.php?id=3442
This commit is contained in:
Henry Weller
2020-02-17 14:04:45 +00:00
parent fe13ba9fac
commit 17afa7d79b

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2015-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -134,7 +134,7 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::heEqn()
tEEqn.ref() += filterPressureWork
(
fvc::div(fvc::absolute(alphaPhi, alpha, U), this->thermo().p())
+ this->thermo().p()*fvc::ddt(alpha)
+ (fvc::ddt(alpha) - contErr/this->rho())*this->thermo().p()
);
}
else if (this->thermo_->dpdt())