return the current region (valid values: 1,2,3,5) in IF97, given pressure and temperature
function region_pT extends Modelica.Icons.Function; input SI.Pressure p "pressure"; input SI.Temperature T "temperature (K)"; input Integer mode = 0 "mode: 0 means check, otherwise assume region=mode"; output Integer region "region (valid values: 1,2,3,5) in IF97, region 4 is impossible!"; end region_pT;