@@ -923,7 +923,7 @@ is given to compare the approximation.
923923 package Medium = Modelica.Media.Air.MoistAir "Medium model" ;
924924 SI.Temperature T = 273.15 + 100 ;
925925 parameter SI.AbsolutePressure p0 = 2e5 "p at time 0" ;
926- parameter Real pRate(unit = "Pa/s" ) = - 1.5e5 "p's rate of change" ;
926+ parameter SI.PressureSlope pRate = - 1.5e5 "p's rate of change" ;
927927 SI.AbsolutePressure p = p0 + pRate* time;
928928 Medium.MassFraction X[Medium.nX] = {0.05 ,0.95 };
929929 Medium.ThermodynamicState state = Medium.setState_pTX(p,T,X);
@@ -939,7 +939,7 @@ is given to compare the approximation.
939939 replaceable package Medium = Modelica.Media.R134a.R134a_ph "Medium model" ;
940940 SI.Temperature T = 273.15 + 25 ;
941941 parameter SI.AbsolutePressure p0 = 10e5 "p at time 0" ;
942- parameter Real pRate(unit = "Pa/s" ) = 20e5 "p's rate of change" ;
942+ parameter SI.PressureSlope pRate = 20e5 "p's rate of change" ;
943943 SI.AbsolutePressure p = p0 + pRate* time;
944944 Medium.ThermodynamicState state = Medium.setState_pTX(p, T);
945945 SI.SpecificEnthalpy h = Medium.specificEnthalpy(state);
@@ -955,7 +955,7 @@ is given to compare the approximation.
955955 replaceable package Medium = Modelica.Media.Water.WaterIF97_fixedregion "Medium model" ;
956956 SI.Temperature T = 273.15 + 25 ;
957957 parameter SI.AbsolutePressure p0 = 10e5 "p at time 0" ;
958- parameter Real pRate(unit = "Pa/s" ) = 20e5 "p's rate of change" ;
958+ parameter SI.PressureSlope pRate = 20e5 "p's rate of change" ;
959959 SI.AbsolutePressure p = p0 + pRate* time;
960960 Medium.ThermodynamicState state = Medium.setState_pTX(p, T);
961961 SI.SpecificEnthalpy h_dew = Medium.dewEnthalpy(Medium.SaturationProperties(Tsat= Medium.saturationTemperature(state.p), psat= Medium.pressure(state)));
0 commit comments