This function outputs the sky temperature dependent on clearness index of the sky, the air moisture and the air pressure.
function TSky input Modelica.Units.SI.Temperature TAirRef "Air temperature on reference height"; input Real timeS "Time in seconds"; input Real bSky "Clearness index of the sky: 0 (clear) to 1 (100 percent covered)"; input Modelica.Units.SI.MassFraction xAir "Absolute air moisture"; input Modelica.Units.SI.Pressure pRef "Air pressure on reference height"; input Modelica.Units.SI.Pressure pGround "Air pressure on ground level"; output Modelica.Units.SI.Temperature value "Sky temperature"; end TSky;