Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chemistryModel: Mass conservative specie sources
Chemistry integration is assumed to occur for a fixed mass of fluid at a constant pressure. Therefore, both the density and volume change during integration. When computing specie source terms, it is important that these relate exactly to the mass of fluid considered during integration in order for mass to be conserved. That means the change in mass fractions that results from integration needs to be multiplied by the old-time density, as that relates to the mass in the cell's volume. The new time (end of integration) density could be used instead to calculate the species source terms, but then a new volume would also have to be calculated and accounted for such that the correct total mass for the cell is maintained. It is equivalent just to use the old-time density, for which no additional calculation is needed. This change additionally means that chemistry integration over a timestep has no dependence on new-time properties. So, there is never any reason to integrate chemistry multiple times in a time-step, as the result will always be the same. As such, the laminar combustion model now no longer provides the option to outer correct when integrating the chemistry. The option is still available when not integrating (i.e., when chemical source terms are calculated instantaneously).
- Loading branch information
Will Bainbridge
committed
Dec 14, 2022
1 parent
87886ee
commit 3d59ed7
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters