reactingEulerFoam: Bug fix to reactionsource terms
Fixed reaction source terms in the energy and species fraction equations by multiplying by the phase fraction. Resolves bug report https://bugs.openfoam.org/view.php?id=2591
This commit is contained in:
@ -142,7 +142,7 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::heEqn()
|
|||||||
he
|
he
|
||||||
)
|
)
|
||||||
==
|
==
|
||||||
this->Qdot()
|
alpha*this->Qdot()
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add the appropriate pressure-work term
|
// Add the appropriate pressure-work term
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2015-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -172,7 +172,7 @@ Foam::MultiComponentPhaseModel<BasePhaseModel>::YiEqn
|
|||||||
Yi
|
Yi
|
||||||
)
|
)
|
||||||
==
|
==
|
||||||
this->R(Yi)
|
alpha*this->R(Yi)
|
||||||
|
|
||||||
+ fvc::ddt(residualAlpha_*rho, Yi)
|
+ fvc::ddt(residualAlpha_*rho, Yi)
|
||||||
- fvm::ddt(residualAlpha_*rho, Yi)
|
- fvm::ddt(residualAlpha_*rho, Yi)
|
||||||
|
|||||||
Reference in New Issue
Block a user