lcapy.oneport.OnePort
- class lcapy.oneport.OnePort
Bases:
Network,ImmittanceMixinOne-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)
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
Open-circuit current.
Short-circuit current in appropriate transform domain.
Open-circuit voltage.
Open-circuit voltage in appropriate transform domain.
Admittance of the one-port.
Determines if the one-port has a parallel voltage source.
Determines if the one-port has a series current source.
Height of the component in a Horizontal orientation
Height separation between components in a Horizontal orientation
Open-circuit time-domain current.
Impedance of the one-port.
Short-circuit time-domain current.
Open-circuit time-domain voltage.
Open-circuit time-domain voltage.
Width of the component in a Horizontal orientation
Width separation between components in a Horizontal orientation
Admittance impulse-response.
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, orZisNone.
- 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, orZisNone, 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.