Skip to content
Inductor.md

Inductor ​

Ideal inductor characterized by its inductance L.

This component models a linear inductor, a fundamental passive two-terminal electrical component. It defines the relationship between voltage v and current i based on its inductance L. The behavior is described by the equation:

v=Ldidt

math where v is the voltage across the inductor (difference between pin p and pin n), i is the current flowing through the inductor (from pin p to pin n), and L is its inductance.

This component extends from OnePort

Usage ​

ElectricalComponents.Inductor(L)

Parameters: ​

NameDescriptionUnitsDefault value
LInductance value of the component in Henries (H)H

Connectors ​

  • p - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

  • n - This connector represents an electrical pin with voltage and current as the potential and flow variables, respectively. (Pin)

Variables ​

NameDescriptionUnits
vVoltage across the component (between pin p and pin n).V
iCurrent flowing through the component (from pin p to pin n).A

Behavior ​

v(t)=p.v(t)−n.v(t)i(t)=p.i(t)n.i(t)+p.i(t)=0Ldi(t)dt=v(t)

Source ​

dyad
"""
Ideal inductor characterized by its inductance L.

This component models a linear inductor, a fundamental passive two-terminal electrical component.
It defines the relationship between voltage `v` and current `i` based on its inductance `L`.
The behavior is described by the equation:

math v = L \frac{di}

where‘v‘isthevoltageacrosstheinductor(differencebetweenpin‘p‘andpin‘n‘),‘i‘isthecurrentflowingthroughtheinductor(frompin‘p‘topin‘n‘),and‘L‘isitsinductance."""componentInductorextendsOnePort"InductancevalueofthecomponentinHenries(H)"parameterL::InductancerelationsL∗der(i)=vmetadata"Dyad":"labels":["label":"$(instance)","x":500,"y":1100,"rot":0,"label":"L=$(L)H","x":500,"y":150,"rot":0],"icons":"default":"dyad://ElectricalComponents/Inductor.svg"end
Flattened Source
dyad
"""
Ideal inductor characterized by its inductance L.

This component models a linear inductor, a fundamental passive two-terminal electrical component.
It defines the relationship between voltage `v` and current `i` based on its inductance `L`.
The behavior is described by the equation:

math v = L \frac{di}

where‘v‘isthevoltageacrosstheinductor(differencebetweenpin‘p‘andpin‘n‘),‘i‘isthecurrentflowingthroughtheinductor(frompin‘p‘topin‘n‘),and‘L‘isitsinductance."""componentInductor"Positiveelectricalpin."p=Pin()"Dyad":"placement":"icon":"iconName":"pos","x1":−50,"y1":450,"x2":50,"y2":550"Negativeelectricalpin."n=Pin()"Dyad":"placement":"icon":"iconName":"neg","x1":950,"y1":450,"x2":1050,"y2":550"Voltageacrossthecomponent(betweenpinpandpinn)."variablev::Voltage"Currentflowingthroughthecomponent(frompinptopinn)."variablei::Current"InductancevalueofthecomponentinHenries(H)"parameterL::Inductancerelationsv=p.v−n.vi=p.ip.i+n.i=0L∗der(i)=vmetadata"Dyad":"labels":["label":"$(instance)","x":500,"y":1100,"rot":0,"label":"L=$(L)H","x":500,"y":150,"rot":0],"icons":"default":"dyad://ElectricalComponents/Inductor.svg"end


Test Cases ​

No test cases defined.