-
Notifications
You must be signed in to change notification settings - Fork 23
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
DILUTE Error with Latest Stoichiometry Update #515
Conversation
…w them to complete successfully
…h contains more than one point
…isted in mechanism.reac file
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #515 +/- ##
=======================================
Coverage 52.05% 52.05%
=======================================
Files 17 17
Lines 2096 2096
Branches 166 166
=======================================
Hits 1091 1091
Misses 933 933
Partials 72 72 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
One question, does the stoichiometric coeff need to be a real number or does this work even if the user set it to an integer? PS: you should be able to merge this, after you accept the invite to be member (I think!) |
The accepted formats in the mechanism file should be either a integer or decimal number, with or without a space. i.e. all of the following should be accepted:
This is then read by python and converted to a float in the One thing that has come to mind that I will test is I'm not sure how the I can't seem to merge the request, so feel free to do that. |
Ok, looking at the kpp conversion script it seems like it treats the reaction lines as a 'rate section' and a 'reaction section' and just swaps them, without digging into what the individual species are. This means it should carry any stoichiometry through. I think the kpp test would have failed too if there was an issue, but I will double check when I have some time. |
I have noticed that all AtChem2 models now fail if
DILUTE
is not set toNOTUSED
, following the changes in #514 . This is because the added dilution reactions in themechanism.reac
file don't have defined stoichiometric coefficients. I have fixed this by adding a coefficient of 1.