lcapy.oneport.VoltageSourceBase
- class lcapy.oneport.VoltageSourceBase
Bases:
OnePortMethods
voltage_equation(i[, kind])Return expression for voltage across component given applied current.
Attributes
The type of component, in this case 'V' for voltage source
Indicates the component has an independent source
Indicates the voltage source is not noisy.
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
iappears to be ignored when creating the voltage equation.