Gate capacitance calculation
function calculateGateCap extends Modelica.Icons.Function; input Modelica.Electrical.Spice3.Internal.Fet.Fet in_f; input SI.Voltage vgs "Input voltage gate source"; input SI.Voltage vgd "Input voltage gate drain"; output Types.Capacitance capgs "Output capacitance gate source"; output SI.Charge chargegs "Output charge gate source"; output Types.Capacitance capgd "Output capacitance gate drain"; output SI.Charge chargegd "Output charge gate drain"; end calculateGateCap;