Skip to content

Commit

Permalink
Swap units to correct place.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Feb 26, 2025
1 parent b4a4b03 commit 452efdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModelicaTest/Media.mo
Original file line number Diff line number Diff line change
Expand Up @@ -953,12 +953,12 @@ is given to compare the approximation.
model R134a_setState_phX "Test setState_phX() of R134a"
extends Modelica.Icons.Example;
replaceable package Medium = Modelica.Media.R134a.R134a_ph "Medium model";
SI.Temperature h = Medium.h_default;
SI.SpecificEnthalpy h = Medium.h_default;
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_phX(p, h);
SI.SpecificEnthalpy T= Medium.temperature(state);
SI.Temperature T= Medium.temperature(state);
SI.Density rho = Medium.density(state);
SI.DynamicViscosity mu = Medium.dynamicViscosity(state);
SI.SpecificHeatCapacity cp = Medium.specificHeatCapacityCp(state);
Expand Down

0 comments on commit 452efdf

Please sign in to comment.