Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create YAML file outputs in RMG for use in Cantera #2321

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Commits on Aug 2, 2024

  1. Tweaking Chemkin species list parser for readability.

    This took me a while to figure out  what was happening.
    So I changed variable name, removed a redundant if block,
    and added a couple of comments.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    d549ec7 View commit details
    Browse the repository at this point in the history
  2. Cleaning up chemkinTest methods for multidentate adsorbate writing.

    It was fragile, depending on the precise ordering of lines
    in the test file.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6bcfe51 View commit details
    Browse the repository at this point in the history
  3. Cleaning up and extending a chemkin test mechanism.

    To enable proper conversion in Cantera (for a future test)
    we need some gas phase parts to the chemkin mechanism.
    I added two extra types of surface reaction, an adsorption
    sticking coefficient, and an associative desorption.
    I also tidied up the species names and formatting.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    213d7bd View commit details
    Browse the repository at this point in the history
  4. Updating methods that create in-memory Cantera objects of things.

    to_cantera for Reaction and Species and some surface kinetics types
    
    squashed commit from Richard:
    Should be able to use the to_cantera_kinetics methods.
    Not sure about all these nested elifs. I think some are confused.
    
    Co-authored-by:  Nora Khalil <khalil.nor@northeastern.edu>
    Co-authored-by:  Richard West <r.west@northeastern.edu>
    Nora-Khalil and rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    5e62acd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e4c5d6 View commit details
    Browse the repository at this point in the history
  6. Added to_cantera_kinetics for SurfaceArrhenius and StickingCoefficient

    Nick add cm^5/(mol^2*s) dimensionality
    
    Co-authored-by:  Sevy Harris <harris.se@northeastern.edu>
    Co-authored-by:  Nicholas Tietje <tietje.n@northeastern.edu>
    2 people authored and rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    07080a9 View commit details
    Browse the repository at this point in the history
  7. Adding to_cantera_kinetics for ArrheniusBM class.

    Cantera now has a BlowersMasel kinetics class.
    
    This requires Cantera > 2.6
    As described in
    https://cantera.org/dev/python/kinetics.html#cantera.BlowersMaselRate
    the API may change suddenly on some versions.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    a1ae617 View commit details
    Browse the repository at this point in the history
  8. Testing conversion to Cantera for adsorbed species and reactions.

    This is in the canteramodelTest. We load a gas/surface mechanism 
    saved in chemkin format (updated in prior commit) into both RMG
    and into Cantera. We then convert the RMG objects into Cantera objects
    and then compare them all - species and reactions.
    This mirrors the way the gas phase parts were tested.
    Hopefully increases test coverage of the new to_cantera_kinetics methods.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    57a35ef View commit details
    Browse the repository at this point in the history
  9. Save cantera files that were made from chemkin files to a separate fo…

    …lder.
    
    So they don't over-write the ones that are being written directly.
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    7e3dc83 View commit details
    Browse the repository at this point in the history
  10. Rename yml to yaml_rms, because it was specific to RMS

    This allows the Cantera yaml writer to live alongside it
    Nora-Khalil authored and rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0249f39 View commit details
    Browse the repository at this point in the history
  11. Enable Cantera-YAML writing.

    Nora did most of the work.
    Richard did some cleanup.
    Nick fixed species_to_dict function to use correct parameter as rxn species.
    
    Co-authored-by:  Nora Khalil <khalil.nor@northeastern.edu>
    Co-authored-by: Richard West <r.west@northeastern.edu>
    Co-authored-by:  Nicholas Tietje <tietje.n@northeastern.edu>
    3 people committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    5cca9bb View commit details
    Browse the repository at this point in the history
  12. Minor: Fix a Cython declaration in a Reaction method.

    Although Atom is a subclass of Vertex, it adds an element
    attribute. This leads to more efficient Cython code
    (and quietens a warning in vscode).
    rwest committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    fe9bcff View commit details
    Browse the repository at this point in the history