diff --git a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C index 4285a40c0c..b5dd4ab37a 100644 --- a/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C +++ b/applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/AnisothermalPhaseModel/AnisothermalPhaseModel.C @@ -144,15 +144,12 @@ Foam::AnisothermalPhaseModel::heEqn() tEEqn.ref() += filterPressureWork ( fvc::div(fvc::absolute(alphaPhi, alpha, U), this->thermo().p()) + + this->thermo().p()*fvc::ddt(alpha) ); } else if (this->thermo_->dpdt()) { - tEEqn.ref() -= filterPressureWork - ( - fvc::ddt(alpha, this->thermo().p()) - + alpha*(this->fluid().dpdt() - fvc::ddt(this->thermo().p())) - ); + tEEqn.ref() -= filterPressureWork(alpha*this->fluid().dpdt()); } return tEEqn; diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/EEqns.H b/applications/solvers/multiphase/twoPhaseEulerFoam/EEqns.H index 25b97c17a1..308e7589f9 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/EEqns.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/EEqns.H @@ -16,7 +16,8 @@ - contErr1*K1 + ( he1.name() == thermo1.phasePropertyName("e") - ? fvc::ddt(alpha1)*p + fvc::div(alphaPhi1, p) + ? fvc::div(fvc::absolute(alphaPhi1, alpha1, U1), p) + + p*fvc::ddt(alpha1) : -alpha1*dpdt ) @@ -48,7 +49,8 @@ - contErr2*K2 + ( he2.name() == thermo2.phasePropertyName("e") - ? fvc::ddt(alpha2)*p + fvc::div(alphaPhi2, p) + ? fvc::div(fvc::absolute(alphaPhi2, alpha2, U2), p) + + p*fvc::ddt(alpha1) : -alpha2*dpdt )