lcapy.oneport.OnePort

class lcapy.oneport.OnePort

Bases: Network, ImmittanceMixin

One-port network

There are four major types of OnePort:

  • VoltageSource

  • CurrentSource

  • Impedance

  • Admittance

  • ParSer for combinations of OnePort

Methods

chain(TP)

Chain to a two-port.

expand()

ladder(*args)

Create (unbalanced) ladder network

load(OP2)

lsection(OP2)

Create L section (voltage divider)

noise_model()

Convert to noise model.

norton()

Simplify to a Norton network

parallel(OP)

Parallel combination

s_model()

Convert to s-domain.

series(OP)

Series combination

thevenin()

Simplify to a Thevenin network

tsection(OP2, OP3)

Create T section

Attributes

I

Open-circuit current.

Isc

Short-circuit current in appropriate transform domain.

V

Open-circuit voltage.

Voc

Open-circuit voltage in appropriate transform domain.

admittance

Admittance of the one-port.

has_parallel_V

Determines if the one-port has a parallel voltage source.

has_series_I

Determines if the one-port has a series current source.

height

Height of the component in a Horizontal orientation

hsep

Height separation between components in a Horizontal orientation

i

Open-circuit time-domain current.

impedance

Impedance of the one-port.

isc

Short-circuit time-domain current.

v

Open-circuit time-domain voltage.

voc

Open-circuit time-domain voltage.

width

Width of the component in a Horizontal orientation

wsep

Width separation between components in a Horizontal orientation

y

Admittance impulse-response.

z

Impedance impulse-response.

property I

Open-circuit current. Except for a current source this is zero.

property Isc

Short-circuit current in appropriate transform domain.

This is the current flowing out of the positive node of the network, through a wire, and back to the negative node of the network.

property V

Open-circuit voltage.

property Voc

Open-circuit voltage in appropriate transform domain.

Raises:

ValueError – If the open-circuit voltage is undefined for the one-port. This occurs when Isc, Voc, Y, or Z is None.

property admittance

Admittance of the one-port.

Return type:

Admittance of the one-port. \(Y = \frac{1}{Z}\).

chain(TP)

Chain to a two-port. This is experimental.

property has_parallel_V

Determines if the one-port has a parallel voltage source.

Returns:

True if the one-port has a parallel voltage source.

Return type:

bool

property has_series_I

Determines if the one-port has a series current source. :returns: True if the one-port has a series current source. :rtype: bool

height = 0.3

Height of the component in a Horizontal orientation

Type:

float

hsep = 0.5

Height separation between components in a Horizontal orientation

Type:

float

property i

Open-circuit time-domain current. Except for a current source this is zero.

property impedance

Impedance of the one-port.

Return type:

impedance Z

Raises:

ValueError – If the impedance is undefined for the one-port. This occurs when Isc, Voc, Y, or Z is None, as there is no way to calculate impedance for the source.

property isc

Short-circuit time-domain current.

This is the current flowing out of the positive node of the network, through a wire, and back to the negative node of the network.

ladder(*args)

Create (unbalanced) ladder network

lsection(OP2)

Create L section (voltage divider)

noise_model()

Convert to noise model.

norton()

Simplify to a Norton network

parallel(OP)

Parallel combination

s_model()

Convert to s-domain.

series(OP)

Series combination

thevenin()

Simplify to a Thevenin network

tsection(OP2, OP3)

Create T section

property v

Open-circuit time-domain voltage.

property voc

Open-circuit time-domain voltage.

width = 1

Width of the component in a Horizontal orientation

Type:

float

wsep = 0.25

Width separation between components in a Horizontal orientation

Type:

float

property y

Admittance impulse-response.

property z

Impedance impulse-response.