Modelica.Electrical.Analog.Ideal.IdealDiode constant Modelica.SIunits.Voltage unitVoltage= 1 annotation(HideResult=true); constant Modelica.SIunits.Current unitCurrent= 1 annotation(HideResult=true); equation off = s < 0; v = (s*unitCurrent)*(if off then 1 else Ron) + Vknee; i = (s*unitVoltage)*(if off then Goff else 1) + Goff*Vknee;
{}