Skip to content

ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy uses partial package #4428

@perost

Description

@perost

ModelicaTest.Media.TestOnly.WaterIF97_dewEnthalpy is defined as:

model WaterIF97_dewEnthalpy "Test dewEnthalpy of WaterIF97"
extends Modelica.Icons.Example;
replaceable package Medium = Modelica.Media.Water.WaterIF97_fixedregion "Medium model";
SI.Temperature T = 273.15 + 25;
parameter SI.AbsolutePressure p0 = 10e5 "p at time 0";
parameter SI.PressureSlope pRate = 20e5 "p's rate of change";
SI.AbsolutePressure p = p0 + pRate*time;
Medium.ThermodynamicState state = Medium.setState_pTX(p, T);
SI.SpecificEnthalpy h_dew = Medium.dewEnthalpy(Medium.SaturationProperties(Tsat=Medium.saturationTemperature(state.p), psat=Medium.pressure(state)));
annotation (experiment(StopTime=1));
end WaterIF97_dewEnthalpy;

However, Modelica.Media.Water.WaterIF97_fixedregion is a partial package, so using it in a simultion model like this is not allowed. Presumably it should just be using one of the non-partial Water mediums instead.

Metadata

Metadata

Assignees

Labels

L: MediaIssue addresses Modelica.MediaL: ModelicaTestIssue addresses ModelicaTest, ModelicaTestConversion4 or ModelicaTestOverdeterminedP: highHigh priority issuebugCritical/severe issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions