This function mos2CalcNoBypassCodeRevised calculates the currents (and the capacitances) that are necessary for the currents sum in the toplevelmodel (level 2).
function mos2CalcNoBypassCodeRevised extends Modelica.Icons.Function; input Spice3.Internal.Mosfet.Mosfet in_m "Input record MOSFET parameters"; input Integer in_m_type "Type of MOS transistor"; input Spice3.Internal.Mos2.Mos2Calc in_c "Input record Mos2Calc"; input Spice3.Internal.Mos2.Mos2ModelLineParams in_p "Input record model line parameters"; input Boolean in_m_bInit; input SI.Voltage[4] in_m_pVoltageValues; output Modelica.Electrical.Spice3.Internal.Mos.CurrrentsCapacitances out_cc "Calculated currents and capacitances"; end mos2CalcNoBypassCodeRevised;