Skip to content
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

Saturation properties record must be redeclared in WaterIF97_base package #3493

Closed
wischhusen opened this issue Mar 9, 2020 · 0 comments · Fixed by #3494
Closed

Saturation properties record must be redeclared in WaterIF97_base package #3493

wischhusen opened this issue Mar 9, 2020 · 0 comments · Fixed by #3494
Assignees
Labels
bug Critical/severe issue L: Media Issue addresses Modelica.Media
Milestone

Comments

@wischhusen
Copy link
Contributor

In order to allow a record constructor for SaturationProperties like in the example below it needs to be redeclared in the medium package Water.WaterIF97_base first.
Modelica.Units.SI.SpecificEnthalpy h_dew=Medium.dewEnthalpy(Medium.SaturationProperties(Tsat=Medium.saturationTemperature(state.p), psat=Medium.pressure(state)));

See R134a.R134a_ph for example.

redeclare record extends SaturationProperties
end SaturationProperties;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Media Issue addresses Modelica.Media
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants