Compute density
function d_pTX input Modelica.SIunits.AbsolutePressure p "Pressure"; input Modelica.SIunits.Temperature T "Temperature"; input Modelica.SIunits.MassFraction[nS] X "Mass fraction"; output Modelica.SIunits.Density d "Density"; end d_pTX;