lcapy.mnacpts.Cpt
- class lcapy.mnacpts.Cpt(cct, namespace, name, cpt_type, cpt_id, string, opts_string, node_names, keyword, *args)
Bases:
ImmittanceMixinMethods
__init__(cct, namespace, name, cpt_type, ...)annotate(*args, **kwargs)Annotate cpt by adding kwargs to opts.
check()Return list of components connected to this component.
defs()Return directory of argname-value pair.
Return set of components in parallel with cpt.
Return set of components in series with cpt.
is_connected(cpt)Return True if cpt is connected to this component.
norton()Create Norton oneport object.
oneport()Create oneport object.
Apply open-circuit in series with component.
pdb()Apply short-circuit across component.
sympify()Return component with numerical values removed.
thevenin()Create Thevenin oneport object.
transfer(cpt)Create transfer function for the s-domain voltage across the specified cpt divided by the s-domain voltage across self.
Attributes
Current through component.
Initial current (for inductors only).
Short-circuit current for component in isolation, i.e, current in wire connected across component.
Voltage drop across component.
Initial voltage (for capacitors only).
Open-circuit voltage for component in isolation.
add_paralleladd_seriesSelf admittance of component.
Return list of arg names.
cptDriving-point short-circuit current, i.e, current in wire connected across component connected in-circuit.
Driving-point open-circuit voltage across component in-circuit.
Driving-point admittance measured across component in-circuit.
Driving-point impedance measured across component in-circuit.
Driving-point short-circuit time-domain current i.e, current in wire connected across component in-circuit.
Driving-point open-circuit time-domain voltage across component in circuit.
equipotential_nodesextra_argnamesflip_branch_currentReturn True if source has ac component.
Return True if source has dc component.
has_expandReturn True if initial conditions are specified.
has_implicit_groundReturn True if source has noisy component.
Return True if source has transient component defined in s-domain.
Return True if source has transient component defined in time domain.
Return True if source has a transient component.
Time-domain current through component.
ignoreSelf impedance of component.
Return True if source is ac.
Return True if component is a capacitor.
Return True if causal component or if source produces a causal signal.
Return True if component is a conductor.
is_current_controlledReturn True if component is a current source (dependent or independent)
Return True if component is dangling (i.e., has a node with a single connection).
Return True if source is dc.
Return True if component is a dependent current source.
is_dependent_sourceReturn True if component is a dependent voltage source.
is_directiveReturn True if component is disconnected (i.e., all nodes have a single connection).
Return True if component is a independent current source.
is_independent_sourceReturn True if component is a independent voltage source.
Return True if component is an inductor.
is_mutual_couplingReturn True if component is noiseless.
Return True if source is noisy.
Return True if component is any oneport (R, C, L, V, I, etc.).
is_opampis_open_circuitis_portReturn True if component is a capacitor or inductor.
is_reactiveReturn True if component is a resistor.
Return True if component is a source (dependent or independent)
is_switchis_transformerReturn True if component is any twoport (TP, TF, GY, etc.).
is_voltage_controlledReturn True if component is a voltage source (dependent or independent)
is_wireShort-circuit time-domain current for component in isolation, i.e, current in wire connected across component.
need_branch_currentneed_control_currentneed_extra_branch_currentneed_two_extra_branch_currentsTime-domain voltage drop across component.
Open-circuit time-domain voltage for component in isolation.
Return True if initial conditions are zero (or unspecified).
- property I
Current through component. The current is defined to be into the positive node.
- property I0
Initial current (for inductors only).
- property Isc
Short-circuit current for component in isolation, i.e, current in wire connected across component.
- property V
Voltage drop across component.
- property V0
Initial voltage (for capacitors only).
- property Voc
Open-circuit voltage for component in isolation.
- property admittance
Self admittance of component.
The admittance is expressed in jomega form for AC circuits and in s-domain for for transient circuits.
For the driving-point admittance measured across the component use .dpY or .oneport().Y
- annotate(*args, **kwargs)
Annotate cpt by adding kwargs to opts. For example, color=’blue’ or ‘color=blue’.
- property argnames
Return list of arg names.
- connected()
Return list of components connected to this component.
- defs()
Return directory of argname-value pair.
- property dpIsc
Driving-point short-circuit current, i.e, current in wire connected across component connected in-circuit.
- property dpVoc
Driving-point open-circuit voltage across component in-circuit.
- property dpY
Driving-point admittance measured across component in-circuit. For the admittance of the component in isolation use .Y
- property dpZ
Driving-point impedance measured across component in-circuit. For the impedance of the component in isolation use .Z
- property dpisc
Driving-point short-circuit time-domain current i.e, current in wire connected across component in-circuit.
- property dpvoc
Driving-point open-circuit time-domain voltage across component in circuit.
- property has_ac
Return True if source has ac component.
- property has_dc
Return True if source has dc component.
- property has_ic
Return True if initial conditions are specified.
- property has_noisy
Return True if source has noisy component.
- property has_s_transient
Return True if source has transient component defined in s-domain.
- property has_t_transient
Return True if source has transient component defined in time domain.
- property has_transient
Return True if source has a transient component.
- property i
Time-domain current through component. The current is defined to be into the positive node.
- property impedance
Self impedance of component.
The impedance is expressed in jomega form for AC circuits and in s-domain for for transient circuits.
For the driving-point impedance measured across the component use .dpZ or .oneport().Z
- in_parallel()
Return set of components in parallel with cpt.
- in_series()
Return set of components in series with cpt. Note, this does not find components that do not share a node, for example, R1 and R3 are not considered as being in series for R1 + (R2 | R3) + R3
- property is_ac
Return True if source is ac.
- property is_capacitor
Return True if component is a capacitor.
- property is_causal
Return True if causal component or if source produces a causal signal.
- property is_conductor
Return True if component is a conductor.
- is_connected(cpt)
Return True if cpt is connected to this component.
- property is_current_source
Return True if component is a current source (dependent or independent)
- property is_dangling
Return True if component is dangling (i.e., has a node with a single connection).
- property is_dc
Return True if source is dc.
- property is_dependent_current_source
Return True if component is a dependent current source.
- property is_dependent_voltage_source
Return True if component is a dependent voltage source.
- property is_disconnected
Return True if component is disconnected (i.e., all nodes have a single connection).
- property is_independent_current_source
Return True if component is a independent current source.
- property is_independent_voltage_source
Return True if component is a independent voltage source.
- property is_inductor
Return True if component is an inductor.
- property is_noiseless
Return True if component is noiseless.
- property is_noisy
Return True if source is noisy.
- property is_oneport
Return True if component is any oneport (R, C, L, V, I, etc.).
- property is_reactance
Return True if component is a capacitor or inductor.
- property is_resistor
Return True if component is a resistor.
- property is_source
Return True if component is a source (dependent or independent)
- property is_twoport
Return True if component is any twoport (TP, TF, GY, etc.).
- property is_voltage_source
Return True if component is a voltage source (dependent or independent)
- property isc
Short-circuit time-domain current for component in isolation, i.e, current in wire connected across component.
- norton()
Create Norton oneport object.
- oneport()
Create oneport object.
- open_circuit()
Apply open-circuit in series with component. Returns name of open-circuit component.
- short_circuit()
Apply short-circuit across component. Returns name of voltage source component used as the short.
- sympify()
Return component with numerical values removed.
- thevenin()
Create Thevenin oneport object.
- transfer(cpt)
Create transfer function for the s-domain voltage across the specified cpt divided by the s-domain voltage across self.
- property v
Time-domain voltage drop across component.
- property voc
Open-circuit time-domain voltage for component in isolation.
- property zeroic
Return True if initial conditions are zero (or unspecified).