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 SI.Capacitance capgs "Output capacitance gate source"; output SI.Charge chargegs "Output charge gate source"; output SI.Capacitance capgd "Output capacitance gate drain"; output SI.Charge chargegd "Output charge gate drain"; end calculateGateCap;