-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Peng-Robinson EoS: added setState_DP #1847
base: main
Are you sure you want to change the base?
Peng-Robinson EoS: added setState_DP #1847
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1847 +/- ##
==========================================
+ Coverage 74.41% 74.42% +0.01%
==========================================
Files 386 386
Lines 53628 53681 +53
Branches 9063 9075 +12
==========================================
+ Hits 39905 39950 +45
- Misses 10652 10656 +4
- Partials 3071 3075 +4 ☔ View full report in Codecov by Sentry. |
…hitespaces. These should be solve now.
Hi @TJP-Karpowski ... thank you for the PR! While I believe that your PR targets a feature we'd like to see, there are some aspects that you should consider. Most people will use the void setState_HP(double h, double p, double tol=1e-9); Can you think of a way to provide an automatic initial guess instead? As an aside, it would be interesting to compare to CoolProp directly in the Python test suite - it's relatively straightforward to include optional dependencies for testing purposes. |
Changes proposed in this pull request
The Peng-Robinson EoS does not implement a DP update, which is added by this merge request.
The setState_DP function was extended with a Tguess value to enable the efficient search for the correct temperature.
The downstream application requires the SolutionBranch of the cubic EoS to be settable; thus, the API is exposed on the ThermoPhase level.
TODO
Checklist
scons build
&scons test
) and unit tests address code coverage