lcapy.oneport.Par

class lcapy.oneport.Par(*args)

Bases: ParSer

Defines a pair or more of one-port networks in parallel.

Parameters:

args (tuple[OnePort, ...]) – Tuple of components declared in parallel.

args

Tuple of components declared in parallel.

Type:

tuple[OnePort, …]

Raises:
  • ValueError – If less than two arguments are provided.

  • ValueError – If two voltage sources are connected in parallel.

Warns:

Redundant Component – A component may be considered redundant if it is in parallel with a voltage source.

Warning

A minimum of two arguments are required to define a parallel circuit.

Methods

__init__(*args)

Attributes

Isc

Short circuit current \(I_{sc}\) of the parallel circuit.

admittance

Admittance \(Y\) of the parallel circuit.

has_parallel_V

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

height

Provides the height of the parallel circuit, which is the sum of the heights of the components in parallel.

impedance

Impedance \(Z\) of the parallel circuit.

is_parallel

Indicates the component is a parallel combination of components.

width

Provides the width of the parallel circuit, which is the largest width of the components in parallel.

property Isc

Short circuit current \(I_{sc}\) of the parallel circuit.

This is the sum of the short circuit currents of the components in parallel.

Returns:

The short circuit current \(I_{sc}\) of the parallel circuit.

Return type:

float

property admittance

Admittance \(Y\) of the parallel circuit.

This is the sum of the admittances of the components in parallel.

Returns:

The admittance \(Y\) of the parallel circuit.

Return type:

float

property has_parallel_V

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

Returns:

True if any parallel components have a parallel voltage source, or are themselves a voltage source.

Return type:

bool

property height

Provides the height of the parallel circuit, which is the sum of the heights of the components in parallel.

Returns:

The height of the parallel circuit.

Return type:

float

property impedance

Impedance \(Z\) of the parallel circuit.

This is \(\frac{1}{Y}\), or the inverse of the sum of the admittance of the parallel circuit.

Returns:

The impedance \(Z\) of the parallel circuit.

Return type:

float

is_parallel = True

Indicates the component is a parallel combination of components.

Type:

bool

property width

Provides the width of the parallel circuit, which is the largest width of the components in parallel.

Returns:

The width of the parallel circuit.

Return type:

float