Skip to content
Analog.OnePort.md

Analog.OnePort

This component extends from TwoPin

Usage

TranslatedComponents.Analog.OnePort()

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

Source

dyad
partial component OnePort
  extends TwoPin
  # Current flowing from pin p to pin n
  variable i::Dyad.Current
relations
  0 = p.i + n.i
  i = p.i
end
Flattened Source
dyad
partial component OnePort
  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
relations
  v = p.v - n.v
  0 = p.i + n.i
  i = p.i
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses