This internal function calculates both the junction current and the junction conductance dependent from the given voltage.
function junction2SPICE3MOSFETRevised extends Modelica.Icons.Function; input SI.Voltage voltage "Input voltage"; input SI.Temperature 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 junction2SPICE3MOSFETRevised;