From 452efdfbc7f97bf53746174572ed47adeb1f5347 Mon Sep 17 00:00:00 2001 From: HOS Date: Wed, 26 Feb 2025 11:16:38 +0100 Subject: [PATCH] Swap units to correct place. Closes #4550 --- ModelicaTest/Media.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ModelicaTest/Media.mo b/ModelicaTest/Media.mo index 668f8977ba..6e62cddb56 100644 --- a/ModelicaTest/Media.mo +++ b/ModelicaTest/Media.mo @@ -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);