Add Domain1D info to Python API#2008
Merged
ischoegl merged 3 commits intoCantera:mainfrom Oct 19, 2025
Merged
Conversation
83056dc to
6695071
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2008 +/- ##
==========================================
- Coverage 75.24% 75.22% -0.02%
==========================================
Files 454 454
Lines 56756 56776 +20
Branches 9373 9373
==========================================
+ Hits 42704 42710 +6
- Misses 10873 10887 +14
Partials 3179 3179 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
speth
reviewed
Oct 13, 2025
speth
requested changes
Oct 18, 2025
Member
speth
left a comment
There was a problem hiding this comment.
This is OK with me, with a couple of minor changes.
Member
Author
Thanks, @speth! Change requests are addressed. |
speth
approved these changes
Oct 19, 2025
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.
Changes proposed in this pull request
Add a missing
updateThermocall prior to export asSolutionArray. This ensures consistent thermodynamic states.Flow1D::toArrayDomain1D.infoto Python API (same asSolutionArray.info)If applicable, fill in the issue number this pull request is fixing
Closes #2007
If applicable, provide an example illustrating new features this pull request is introducing
Other thoughts
Inconsistent states are only present prior to the first call to
Sim1D.solve; any subsequent output will be consistent as long as states are not overwritten. WhileSolutionArraywith inconsistent states may have been saved in prior versions of Cantera, a re-import toSim1D/Domain1Dwill still work correctly, as an inconsistent densityDis ignored. The same is not true if an inconsistentSolutionArrayis imported directly; in that case, states will be set usingSolution.TDYwith an incorrect pressure trace.Checklist
scons build&scons test) and unit tests address code coverage