This function returns the real part of the Complex input.
function real extends Modelica.Icons.Function; input Complex c "Complex number"; output Real r "= c.re"; end real;