Function to invert temperatures
function invertTemp extends Modelica.Icons.Function; input Real[:] table "Table temperature data"; input Boolean Tink "Flag for Celsius or Kelvin"; output Real invTable[size(table, 1)] "Inverted temperatures"; end invertTemp;