From c2018f4a9ed7933dd6a05b931170428cd596ef43 Mon Sep 17 00:00:00 2001 From: Francesco Casella Date: Tue, 5 Jul 2022 16:30:05 +0200 Subject: [PATCH] Fixed Drum so it works with all media --- ThermoPower/Water.mo | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ThermoPower/Water.mo b/ThermoPower/Water.mo index f12ca73..3a21841 100644 --- a/ThermoPower/Water.mo +++ b/ThermoPower/Water.mo @@ -3880,8 +3880,7 @@ The gas is supposed to flow in at constant temperature (parameter Tgin) vapourState = Medium.setState_phX(p, hv); Tv = Medium.temperature(vapourState); rhov = Medium.density(vapourState); - sat.psat = p; - sat.Tsat = Medium.saturationTemperature(p); + sat = Medium.setSat_p(p); hls = Medium.bubbleEnthalpy(sat); hvs = Medium.dewEnthalpy(sat); Ts = sat.Tsat;