$(instance)OnePort Icon

OnePort

TwoPin

Usage

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
vV
iA

Source

partial component OnePort
  extends TwoPin
  variable i::Current
relations
  i = p.i
  p.i+n.i = 0
end
Flattened Source
partial component OnePort
  p = Pin() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "pos", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }]
  n = Pin() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "neg", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }]
  variable v::Voltage
  variable i::Current
relations
  v = p.v-n.v
  i = p.i
  p.i+n.i = 0
metadata {}
end


Test Cases

  • Examples
  • Experiments
  • Analyses