Open wandadars opened 1 month ago
We should integrate RadLib into Cantera. The library is written in C++ and has Python and Fortran interfaces. It is well-documented, and published. I can provide details, and would like to be involved.
Repository:
https://github.com/BYUignite/radlib
Publication:
V.B. Stephens, S. Jensen, I. Wheeler, D.O. Lignell, “RadLib: a radiative heat transfer model library for CFD,” Computer Physics Communications, 272:108227https://doi.org/10.1016/j.cpc.2021.108227, (2022).
Documentation:
https://ignite.byu.edu/radlib_documentation RadLib: RadLibhttps://ignite.byu.edu/radlib_documentation ignite.byu.eduhttps://ignite.byu.edu/radlib_documentation [X]https://ignite.byu.edu/radlib_documentation
David O. Lignell Professor, Chemical Engineering Brigham Young University 801-422-1772 | http://ignite.byu.edu
On Oct 21, 2024, at 9:10 PM, Chris Neal @.***> wrote:
I was looking through the open pull requests and saw #965https://github.com/Cantera/cantera/pull/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#72https://github.com/Cantera/enhancements/issues/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 examplehttps://cantera.org/examples/python/onedim/diffusion_flame.py.html
gri30.txthttps://github.com/user-attachments/files/17469322/gri30.txt
From the discussions in the #965https://github.com/Cantera/cantera/pull/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 be table or polynomial. The polynomial type is what was originally used and the table is the log linear interpolation data that was apparently better. PMAC is Plank 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:
radiation: model: PMAC fit-type: polynomial data: [-0.23093, -1.12390, 9.41530, -2.99880, 0.51382, -1.86840e-5]
Tagging the original creator of the pull request and the user who opened the enhancement. @lavrenyukivhttps://github.com/lavrenyukiv @BYUignitehttps://github.com/BYUignite
You can view, comment on, or merge this pull request online at:
https://github.com/Cantera/cantera/pull/1799
Commit Summary
File Changes
(3 fileshttps://github.com/Cantera/cantera/pull/1799/files)
Patch Links:
— Reply to this email directly, view it on GitHubhttps://github.com/Cantera/cantera/pull/1799, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD5XI7IHQ3XVMWIHZXOSZV3Z4W64HAVCNFSM6AAAAABQLOYRYKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDIMBZG42DANY. You are receiving this because you were mentioned.Message ID: @.***>
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 https://github.com/Cantera/enhancements/issues/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