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

Non-cat changes to master from cat branch, 1 #1538

Merged
merged 21 commits into from
Jan 31, 2019
Merged

Non-cat changes to master from cat branch, 1 #1538

merged 21 commits into from
Jan 31, 2019

Commits on Jan 31, 2019

  1. Add a (failing) unit test for subgraph isomorphism checks of disjoint…

    … graphs
    
    This is what's currently causing us a problem in RMG-Cat for van-der-Waals bonds,
    but this is a minimal test case to reproduce the problem in the vf2 algorithm.
    Unsure at this stage if it's reasonable to fix the vf2 algorithm or if we'll
    have to work around it at a higher level.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    3103b56 View commit details
    Browse the repository at this point in the history
  2. Fix vf2 subgraph isomorphism for disconnected graphs.

    If you have two graphs [1-2-3  4] and [1-2-3  4] then you can
    show they're isomorphic OK, but if you search for all the subgraph
    isomorphisms, it crashed.
    
    Now if there are no terminal atoms to choose from in, it chooses pairs
    only from non-matched vertices, instead of all vertices.
    
    I also added some commentary from the original paper.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f3641bb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b5e828 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ea502be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    43d94c7 View commit details
    Browse the repository at this point in the history
  6. Improved error logging in Kinetics database when loading reaction fam…

    …ilies.
    
    Replace print() statements with logging.error()
    when loading bad reaction families.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    686f300 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    37b8370 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    59cee5c View commit details
    Browse the repository at this point in the history
  9. Move where a comment line is, I think to clarify.

    Unless I misunderstood, I think this is clearer.
    (And if I did misunderstand, then it needs to be clearer!)
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    8b499d1 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8e839e2 View commit details
    Browse the repository at this point in the history
  11. Create a getConversionFactorFromSItoCM method on Units.

    The idea is that if the object has units of 'm^3/mol/s' then
    but you want to get it in chemkin format you need the value in
    'cm^3/mol/s'. This gives the factor required.
    
    Add a warning in docstring about potential bug.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    b9145c6 View commit details
    Browse the repository at this point in the history
  12. Chemkin writing uses Units.getConversionFactorFromSItoCM()

    This will allow us to do surface reactions with correct units.
    (Which will be implemented in a later commit)
    
    For gas-phase reactions, I put in a bunch of assert statements
    to check that the new implementation has the same effect as 
    the old.
    
    If this is speed-critical code, they could be deprecated/removed.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ba9abca View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5c7c183 View commit details
    Browse the repository at this point in the history
  14. Fix rate constant unit conversion to cm/mol/s

    Replaced the method getConversionFactorFromSItoCM
    which used to leave things like Molecules in their 
    original form, with a new method
    getConversionFactorFromSItoCmMolS
    which converts everything into S (apart from length
    becomes cm). This means that all chemkin files are
    now written in CM/MOL/S combinations even if the original 
    rate was in m3/molecules/minute.
    
    A few reaction libraries and training rules are stored
    in molecules instead of moles, but the chemkin file
    must be consistent.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    4e58d65 View commit details
    Browse the repository at this point in the history
  15. Fix molecule drawing rotation bug. (master)

    When rotating by matrix algebra, we need to keep self.coondinates
    and coordinates pointing to the same numpy array, otherwise other things
    that reference or update one will not see or change the other.
    
    This commit just does the non-cat instance, so can be applied to master
    branch.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    9e359a4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1c1eb8c View commit details
    Browse the repository at this point in the history
  17. Add cdef type declarations for base solver class

    numSurfaceSpecies and numSurfaceReactions
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f86e5d6 View commit details
    Browse the repository at this point in the history
  18. Changes to molecule/draw.py

    These don't seem to be catalyst-specific.
    (Though will be helpful for ones that are)
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    ad155a6 View commit details
    Browse the repository at this point in the history
  19. Force simpleReactor initialization to use keyword arguments.

    Reduces the chances of passing the wrong thing by using
    positional arguments.
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    bdec0ff View commit details
    Browse the repository at this point in the history
  20. Test the A-factor units on reaction library kinetics.

    So far this does:
    
    - Arrhenius
    - Third Body
    - Falloff (Lindemann, Troe)
    - PDepArrhenius (PLOG)
    - MultiArrhenius
    - MultiPDepArrhenius
    
    in reaction libraries.
    
    This could also be done for other instances of kinetics (training depositories, etc.)
    rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    b0696fc View commit details
    Browse the repository at this point in the history
  21. Add units check for kinetics depositories to database test

    Make checkLibraryRateUnits more generic
    Add test definition for kinetics depositories
    mliu49 authored and rwest committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    e1f4e4b View commit details
    Browse the repository at this point in the history