Capacitor

class qultra.C(node_minus, node_plus, C_value)[source]

Bases: object

Represent a capacitor component

Parameters:
  • node_minus (int) – The node to which the negative terminal is connected

  • node_plus (int) – The node to which the positive terminal is connected

  • C_value (float) – Capacitance value [F]

admittance(z)[source]

Calculate the admittance of a capacitor C

Y = z * C

Parameters:

z (complex) – Complex variable (complex frequency)

Returns:

Y – Complex admittance

Return type:

complex