Function to compute the mass density
function density input Buildings.HeatTransfer.Data.Gases.Generic gas "Record of gas data"; input Modelica.Units.SI.Temperature T "Gas temperature"; output Modelica.Units.SI.Density rho "Mass density"; end density;