-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Update ic_engine example using new cantera capabilities #682
Conversation
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.
Thanks @ischoegl! This looks good to me overall.
Similar to your other PR, we need some way to mark that this will work for the development version only. I think the best solution for the examples is for the website repo to check out the 2.4
branch of the Cantera repository during the CI build process, to make sure we get the examples that will be compatible with 2.4. Do you feel comfortable with that change, or do you want me to do it? I should be just one line.
One other comment, again forgot to add it in the review 🙄 I'm sure you know that gri30 is not intended to be used for propane chemistry. I think it's used in this example because it's distributed with Cantera and is relatively small (=fast), but I don't want to encourage people to use gri30 for problems with propane. Can you try this out with the Reitz dodecane mechanism or another mechanism in |
Not sure how CI differentiates (I had always assumed that 2.4 didn't pull from master). I'd be interested, so could you provide some pointers?
Yes, I am keenly aware of that, but didn't want to change without prior discussion. Likely, the compression ratio will have to change; at least the simulations are more efficient now. It won't take long to test, and will push a revision once I see some decent results (hopefully we'll get a more reasonable efficiency also). |
In the Travis config for the website, it clones this repo. All you have to do is add a |
Not familiar with it, but it's probably obvious. Just haven't poked around there yet. |
As an aside, there appear a bunch of |
@bryanwweber ... in
I assume website updates involve PR's from forked repos? |
@ischoegl No, the website will only be updated when new changes are merged to the I'm not sure about the |
99afc1a
to
f1ade6c
Compare
@bryanwweber ... ok, I did look into Reitz, but realized that the mechanism is not compatible with As there aren't any good alternatives in terms of gas mechanisms, I opted for a more detailed disclaimer in the docstring:
|
Thanks. FYI: it was me who added the |
Yes, that should do the trick. You might also consider adding the |
PR is already issued (I'll let CI run through before |
A couple of comments from just reading the discussion:
|
f1ade6c
to
7e7ff0b
Compare
@speth ... thank you for the suggestions!
This works nicely! Also, no more core dumps ...
Thanks for this hint ... however, the script does grab from
|
Sorry, my mistake. The state setting done implicitly by I'm not sure why it's inconsistent for the entropy to end up as However, I did notice that we have a workaround for this problem implemented in other methods, such as |
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.
Generally looks good to me. Here are a couple of minor suggestions.
7e7ff0b
to
a58a2b5
Compare
Please fill in the issue number this pull request is fixing:
Fixes #665
Changes proposed in this pull request:
Excluding plots, simulation time decreases from 16.5s to 5.4s. Results are unaffected.