lcapy.mnacpts.Cpt

class lcapy.mnacpts.Cpt(cct, namespace, name, cpt_type, cpt_id, string, opts_string, node_names, keyword, *args)

Bases: ImmittanceMixin

Methods

__init__(cct, namespace, name, cpt_type, ...)

annotate(*args, **kwargs)

Annotate cpt by adding kwargs to opts.

check()

connected()

Return list of components connected to this component.

defs()

Return directory of argname-value pair.

in_parallel()

Return set of components in parallel with cpt.

in_series()

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.

open_circuit()

Apply open-circuit in series with component.

pdb()

short_circuit()

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

I

Current through component.

I0

Initial current (for inductors only).

Isc

Short-circuit current for component in isolation, i.e, current in wire connected across component.

V

Voltage drop across component.

V0

Initial voltage (for capacitors only).

Voc

Open-circuit voltage for component in isolation.

add_parallel

add_series

admittance

Self admittance of component.

argnames

Return list of arg names.

cpt

dpIsc

Driving-point short-circuit current, i.e, current in wire connected across component connected in-circuit.

dpVoc

Driving-point open-circuit voltage across component in-circuit.

dpY

Driving-point admittance measured across component in-circuit.

dpZ

Driving-point impedance measured across component in-circuit.

dpisc

Driving-point short-circuit time-domain current i.e, current in wire connected across component in-circuit.

dpvoc

Driving-point open-circuit time-domain voltage across component in circuit.

equipotential_nodes

extra_argnames

flip_branch_current

has_ac

Return True if source has ac component.

has_dc

Return True if source has dc component.

has_ic

Return True if initial conditions are specified.

has_noisy

Return True if source has noisy component.

has_s_transient

Return True if source has transient component defined in s-domain.

has_t_transient

Return True if source has transient component defined in time domain.

has_transient

Return True if source has a transient component.

i

Time-domain current through component.

ignore

impedance

Self impedance of component.

is_ac

Return True if source is ac.

is_capacitor

Return True if component is a capacitor.

is_causal

Return True if causal component or if source produces a causal signal.

is_conductor

Return True if component is a conductor.

is_current_controlled

is_current_source

Return True if component is a current source (dependent or independent)

is_dangling

Return True if component is dangling (i.e., has a node with a single connection).

is_dc

Return True if source is dc.

is_dependent_current_source

Return True if component is a dependent current source.

is_dependent_source

is_dependent_voltage_source

Return True if component is a dependent voltage source.

is_directive

is_disconnected

Return True if component is disconnected (i.e., all nodes have a single connection).

is_independent_current_source

Return True if component is a independent current source.

is_independent_source

is_independent_voltage_source

Return True if component is a independent voltage source.

is_inductor

Return True if component is an inductor.

is_mutual_coupling

is_noiseless

Return True if component is noiseless.

is_noisy

Return True if source is noisy.

is_oneport

Return True if component is any oneport (R, C, L, V, I, etc.).

is_opamp

is_open_circuit

is_port

is_reactance

Return True if component is a capacitor or inductor.

is_reactive

is_resistor

Return True if component is a resistor.

is_source

Return True if component is a source (dependent or independent)

is_switch

is_transformer

is_twoport

Return True if component is any twoport (TP, TF, GY, etc.).

is_voltage_controlled

is_voltage_source

Return True if component is a voltage source (dependent or independent)

is_wire

isc

Short-circuit time-domain current for component in isolation, i.e, current in wire connected across component.

need_branch_current

need_control_current

need_extra_branch_current

v

Time-domain voltage drop across component.

voc

Open-circuit time-domain voltage for component in isolation.

zeroic

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).