Skip to content
Analog.Inductor.md

Analog.Inductor

This component extends from OnePort

Usage

TranslatedComponents.Analog.Inductor(L=1)

Parameters:

NameDescriptionUnitsDefault value
LInductanceH1

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 drop of the two pins (= p.v - n.v)V
iCurrent flowing from pin p to pin nA

Behavior

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

Source

dyad
component Inductor
  extends OnePort
  # Inductance
  parameter L::Dyad.Inductance = 1
relations
  L * der(i) = v
end
Flattened Source
dyad
component Inductor
  p = Pin()
  n = Pin()
  # Voltage drop of the two pins (= p.v - n.v)
  variable v::Dyad.Voltage
  # Current flowing from pin p to pin n
  variable i::Dyad.Current
  # Inductance
  parameter L::Dyad.Inductance = 1
relations
  v = p.v - n.v
  0 = p.i + n.i
  i = p.i
  L * der(i) = v
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses