Conversation
8d3f18b to
eb909ab
Compare
…henius objects Let MultiArrhenius objects replace Arrhenius ones in the list stored in PdepArrhenius.arrhenius. This allows the correct PLOG behavior for duplicate kinetics at a single pressure. This will then evaluate the duplicate kinetics defined by MultiArrhenius at that pressure and use that rate for klow or khigh. All that is required is to change the class setting for Arrhenius to a more relaxed parent definition: KineticsModel. Nothing else needs to be changed.
…essure correctly. Check for duplicate pressures and combine the kinetics if needed into MultiArrhenius objects in place of Arrhenius ones stored as part of the PDepArrhenius.arrhenius list of kinetics. When writing the kinetics to a chemkin file, reseparate the MultiKinetics into individual PLOG lines for the same pressure.
connie
added a commit
that referenced
this pull request
Feb 13, 2015
Allow a single PLOG to have duplicate kinetics at a single pressure.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
These commits hope to address issue #147, where PLOGs in this format are interpreted incorrectly:
I've made the PDepArrhenius and MultiPDepArrhenius classes allow MultiArrhenius objects in their arrhenius list of objects. That way khigh and klow can be determined from a duplicate reaction MultiArrhenius object at a single pressure.
I've altered the chemkin reading and writing by storing the PLOG kinetics with MultiArrhenius objects when there are duplicate kinetics at a single pressure, but rewriting to chemkin as two lines of PLOGS at a single pressure.
I've tested it by creating a kinetics library from a chemkin file- it works and creates the correct PDepArrhenius object. I think the chemkin read and write also works.
One problem that might occur is if the pressures in the PLOG are slightly off, as in if one is 0.01 and another pressure is 0.01001. Should we combine those kinetics? For now I ignore that and only do an identical P1 == P2 check.