This internal function calculates both the junction current and the junction conductance dependent from the given voltage.
function junction2 extends Modelica.Icons.Function; 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 current "Output current"; output SI.Conductance cond "Output conductance"; end junction2;