This function outputs the ambient air pressure dependent on the height.
function pAir input Modelica.Units.SI.Pressure pAirRef "Static air pressure on reference height"; input Modelica.Units.SI.Temperature TAirRef "Air temperature on reference height"; input Modelica.Units.SI.Height z "Height over ground"; input Modelica.Units.SI.Height zRefTAir "Reference height air temperature measurement"; input Real gamma(unit = "K/m") "Temperature gradient of the planetary boundary layer in K/m"; output Modelica.Units.SI.Pressure value "Height dependent static air pressure"; end pAir;