lcapy.oneport.L

class lcapy.oneport.L(Lval='L', i0=None, **kwargs)

Bases: OnePort

Inductor

Parameters:
  • Lval (int or float or complex or str) – Inductance value \(L\)

  • i0 (int or float, optional) – Initial current \(i_0\)

args

a tuple containing the inductance value \(L\) and the initial current \(i_0\)

Type:

tuple[ int or float or complex or str, int or float or complex]

L

constant expression representation of the inductance value \(L\)

Type:

ConstantDomainExpression

i0

constant expression representation of the initial current \(i_0\)

Type:

ConstantDomainExpression

has_ic

Indicates if the inductor has an initial current \(i_0\)

Type:

bool

zeroic

Indicates if the initial current \(i_0\) is zero

Type:

bool

Methods

__init__([Lval, i0])

current_equation(v[, kind])

Return expression for current through component given applied voltage.

voltage_equation(i[, kind])

Return expression for voltage across component given applied current.

Attributes

is_inductor

Indicates the component is an inductor

current_equation(v, kind='t')

Return expression for current through component given applied voltage.

Parameters:
  • v (int or float) – Applied voltage

  • kind (str) – The chosen representation of the equation. See lcapy.super.Superposition.select() for a description of the different representations supported.

Return type:

Expression for current through the inductor

is_inductor = True

Indicates the component is an inductor

Type:

bool

voltage_equation(i, kind='t')

Return expression for voltage across component given applied current.

Parameters:
  • i (int or float) – Applied current

  • kind (str) – The chosen representation of the equation. See lcapy.super.Superposition.select() for a description of the different representations supported.

Return type:

Expression for voltage across the inductor