This internal function calculates both the junction current and the junction conductance dependent from the given voltage.
function junction2SPICE3MOSFET extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; input SI.Current current "Input current"; input SI.Conductance cond "Input conductance"; input SI.Voltage voltage "Input voltage"; input SI.Temp_K temp "Device Temperature"; input Real ncoeff; input SI.Current satcur "Saturation current"; output SI.Current out_current "Calculated current"; output SI.Conductance out_cond "Calculated conductance"; end junction2SPICE3MOSFET;