Repository navigation
Conversation
Signed-off-by: Chuan He <hechuan@climamind.ai>
|
A gentle follow-up on this fix for #1910. The current CI and CLA checks are passing. Would someone familiar with the IF97 functions be able to review the approach of computing the missing properties? Happy to adjust it based on your feedback. Thanks! |
|
@MatthiasBSchaefer The CI test run is throwing this error, can you have a look?
|
Thanks for the hint, |
|
Failure: Some checks of the regression testing failed. |
Signed-off-by: Chuan He <hechuan@climamind.ai>
|
PR from non-member detected. Please check the changes and then add 'ready_for_ci' label to the pr and rerun the workflow |
|
PR from non-member detected. Please check the changes and then add 'ready_for_ci' label to the pr and rerun the workflow |
|
Failure: Some checks of the regression testing failed. |
The IF97 boiling/dew boundary functions return records with missing fields: the Gibbs branch does not assign
cv, while the region 3 Helmholtz branch does not assigncp,vt, orvp. A compiler enforcing assigned outputs rejects these calls even when a caller only needs another field.This fills the missing properties using the existing Gibbs heat-capacity expression and the thermodynamic identities
cp-cv = T*pt^2/(d^2*pd),vt = pt/(d^2*pd), andvp = -1/(d^2*pd). Previously assigned properties and the region selection are unchanged.Adds
ModelicaTest.Media.TestOnly.WaterIF97_boundaryProperties, covering both curves at 0.1, 10, 20 and 22 MPa. Heat capacities are compared to the existing Gibbs/Helmholtz boundary-property functions; volume derivatives are checked against the pressure derivatives.Fixes #1910.
Validation on Linux at startTime=stopTime=0:
bpro__cv is used without a value; passes after the change.git diff --checkpasses.Change size: 10 production lines and 42 test lines added in two files; no new public functions.