Revive 1D radiation improvements of PR965 #1799
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was looking through the open pull requests and saw #965 . It seemed like it was something that could be pushed across the finish line given the recent updates to Cantera that allow for easier handling of data in the YAML file.
Potentially allows for the discussions in Cantera/enhancements#72 to be realized.
I added some of the data from the original pull request into the gri30.yaml file (attached), and ran the 1D diffusion flame example
gri30.txt
From the discussions in the #965 it seemed like there was more than one possibility for handling that absorption coefficient calculation, so I added a keyword of
fit-type
which can betable
orpolynomial
. Thepolynomial
type is what was originally used and thetable
is the log linear interpolation data that was apparently better. PMAC isPlank Mean Absorption Coefficient
. I'm pretty clueless on radiation modeling, so if anyone else knows more about this, please chime in.As an example this would be the YAML entry for a species C2H6 that used the log-linear interpolation tabulated data.
And for the case where the older polynomial fits (I'm not sure how prevalent/standardized this form is) are used, we specify using:
Tagging the original creator of the pull request and the user who opened the enhancement. @lavrenyukiv @BYUignite