This internal function calculates the charge and the capacitance of the junction capacity dependent from the given voltage.
function junctionCapRevised extends Modelica.Icons.Function; input Types.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 Types.Capacitance capout "Output capacitance"; output SI.Charge charge "Output charge"; end junctionCapRevised;