sycan.components.basic.inductor¶
Inductor (SPICE L).
Behaviour depends on the analysis mode:
DC: ideal short. Stamped as a 0 V voltage source so
V(n+) = V(n-). Contributes one auxiliary branch-current unknownI(name).AC: auxiliary-row formulation
V(n+) - V(n-) - s·L·I = 0. Keeps the branch current as an MNA variable so that mutual coupling (Kelements) can add-s·Moff-diagonal terms.Transient: same as AC plus the initial-condition term from
V(s) = L·(s·I(s) − i0), i.e.−L·i0on the KVL row RHS.
Classes
|
Linear inductor; |
- class sycan.components.basic.inductor.Inductor(name, n_plus, n_minus, value, *, include_noise=None, ic=None)[source]¶
Bases:
ComponentLinear inductor;
valueis the inductance.icis the optional initial current for transient analysis, positive flowing fromn_pluston_minusthrough the inductor (same direction as the branch unknownI(name)). Solver-timeinitial_conditionsoverrides win over this field.Ideal inductors are noiseless; the
include_noiseparameter is accepted for interface uniformity but contributes no source.- Parameters:
name (str)
n_plus (str)
n_minus (str)
value (Expr)
include_noise (None | str | list[str] | tuple[str, ...] | frozenset[str])
ic (Expr | None)
- name: str¶
- n_plus: str¶
- n_minus: str¶
- value: Expr¶
- include_noise: None | str | list[str] | tuple[str, ...] | frozenset[str] = None¶
- ic: Expr | None = None¶
- ports: ClassVar[tuple[str, ...]] = ('n_plus', 'n_minus')¶
- has_aux: ClassVar[bool] = True¶
- SUPPORTED_NOISE: ClassVar[frozenset[str]] = frozenset({})¶
- stamp(ctx)[source]¶
- Parameters:
ctx (StampContext)
- Return type:
None