This internal function calculates both the junction current and the junction conductance dependent from the given voltage.
function junction3 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"; input SI.Voltage v23; output SI.Current current "Output current"; output SI.Conductance cond "Output conductance"; end junction3;