$(instance)G=$(G)℧Conductor Icon

Conductor

Ideal linear electrical conductor

This component extends from TwoPin

Usage

Conductor(G)

Parameters:

NameDescriptionUnitsDefault value
GConductance of the ConductorS

Connectors

Variables

NameDescriptionUnits
vV
iA

Behavior

\[ \begin{align} v\left( t \right) &= \mathtt{p.v}\left( t \right) - \mathtt{n.v}\left( t \right) \\ i\left( t \right) &= \mathtt{p.i}\left( t \right) \\ \mathtt{n.i}\left( t \right) + \mathtt{p.i}\left( t \right) &= 0 \\ i\left( t \right) &= G v\left( t \right) \end{align} \]

Source

# Ideal linear electrical conductor
component Conductor
  extends TwoPin
  # Conductance of the Conductor
  parameter G::Conductance
relations
  i = G*v
metadata {
  "JuliaSim": {
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "G=$(G)℧", "x": 500, "y": 150, "rot": 0}
    ],
    "icons": {"default": "jsml://ElectricalComponents/Conductor.svg"}
  }
}
end
Flattened Source
# Ideal linear electrical conductor
component Conductor
  p = Pin() [{
    "JuliaSim": {
      "placement": {"icon": {"iconName": "pos", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }]
  n = Pin() [{
    "JuliaSim": {
      "placement": {"icon": {"iconName": "neg", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }]
  variable v::Voltage
  variable i::Current
  # Conductance of the Conductor
  parameter G::Conductance
relations
  v = p.v-n.v
  i = p.i
  p.i+n.i = 0
  i = G*v
metadata {
  "JuliaSim": {
    "labels": [
      {"label": "$(instance)", "x": 500, "y": 1100, "rot": 0},
      {"label": "G=$(G)℧", "x": 500, "y": 150, "rot": 0}
    ],
    "icons": {"default": "jsml://ElectricalComponents/Conductor.svg"}
  }
}
end

Test Cases

  • Examples
  • Experiments
  • Analyses