WaterSteam : `mode` not taken into account in SourceP
With the SourceP component of the WaterSteam library, the parameter mode
is not taken into account for the computation of h if option_temperature == 1
.
What is written:
if (option_temperature == 1) then
T = ITemperature.signal;
h = ThermoSysPro.Properties.WaterSteam.IF97.SpecificEnthalpy_PT(P, T, 0);
What it should be:
if (option_temperature == 1) then
T = ITemperature.signal;
h = ThermoSysPro.Properties.WaterSteam.IF97.SpecificEnthalpy_PT(P, T, mode);
It can cause issues depending on the mode
wanted for a defined (Pressure, Temperature) couple.
It is not the case on the Fluid library.