This function calculates the voltage as a function of the current.
function brush extends Modelica.Icons.Function; input Modelica.Units.SI.Current i "Brush current"; input Modelica.Units.SI.Current ILinear "Current limit of linear range"; input Modelica.Units.SI.Voltage V = 2 "Brush voltage limit"; output Modelica.Units.SI.Voltage v "Brush voltage"; end brush;