Fix nonisothermal pressure-temperature rate coupling - #3
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)✅ Unit Test PR creation complete.
Comment |
|
Note Unit test generation is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Generating unit tests... This may take up to 20 minutes. |
|
✅ Created PR with unit tests: #7 |
Summary
Why
The energy balance contains
dT/dtau = A - c*dP/dtau, while the pressure balance containsdP/dtau = B + (P/T)*dT/dtau. PreviouslydTdt5was evaluated beforedPdtwas assembled, so the pressure-work term always used the zero-initialized derivative. The new helper solves the two local algebraic equations together:dT/dtau = (A - c*B) / (1 + c*P/T)dP/dtau = B + (P/T)*dT/dtauValidation
git diff --checkpython ci/check_repository.pyScope
This PR intentionally isolates the solver-correctness fix. Removing the remaining global IAST warm-start cache, formalizing input units, and adding full-run golden breakthrough baselines should be separate follow-ups so their numerical/performance effects can be reviewed independently.
Summary by CodeRabbit
New Features
Bug Fixes
Tests