lcapy.oneport.VoltageSourceBase

class lcapy.oneport.VoltageSourceBase

Bases: OnePort

Methods

voltage_equation(i[, kind])

Return expression for voltage across component given applied current.

Attributes

cpt_type

The type of component, in this case 'V' for voltage source

has_independent_source

Indicates the component has an independent source

is_noisy

Indicates the voltage source is not noisy.

is_voltage_source

Indicates the component is a voltage source

cpt_type = 'V'

The type of component, in this case ‘V’ for voltage source

Type:

str

has_independent_source = True

Indicates the component has an independent source

Type:

bool

is_noisy = False

Indicates the voltage source is not noisy.

Type:

bool

is_voltage_source = True

Indicates the component is a voltage source

Type:

bool

voltage_equation(i, kind='t')

Return expression for voltage across component given applied current.

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

  • 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 voltage source

Warning

Input current i appears to be ignored when creating the voltage equation.