BUG: Taken out mesh flux from the hEqn for Solid to Gas reactions

This commit is contained in:
sergio
2016-07-19 10:51:50 -07:00
parent 5d594d3f24
commit 4dcfd245d6

View File

@ -335,6 +335,10 @@ void reactingOneDim::solveEnergy()
hEqn += fvc::div(phiQr); hEqn += fvc::div(phiQr);
} }
/* NOTE: The moving mesh option is only correct for reaction such as
Solid -> Gas, thus the ddt term is compesated exaclty by chemistrySh and
the mesh flux is not necessary.
if (regionMesh().moving()) if (regionMesh().moving())
{ {
surfaceScalarField phihMesh surfaceScalarField phihMesh
@ -344,7 +348,7 @@ void reactingOneDim::solveEnergy()
hEqn -= fvc::div(phihMesh); hEqn -= fvc::div(phihMesh);
} }
*/
hEqn.relax(); hEqn.relax();
hEqn.solve(); hEqn.solve();
} }