This internal function calculates the charge and the capacitance of the junction capacity dependent from the given voltage.
function junctionCap extends Modelica.Icons.Function; extends Modelica.Icons.ObsoleteModel; input SI.Capacitance capin "Input capacitance"; input SI.Voltage voltage "Input voltage"; input SI.Voltage depcap; input Real mj; input Real phij; input SI.Voltage f1; input Real f2; input Real f3; output SI.Capacitance capout "Output capacitance"; output SI.Charge charge "Output charge"; end junctionCap;