Skip to content
Analog.MultiSensor.md

Analog.MultiSensor

Usage

TranslatedComponents.Analog.MultiSensor()

Connectors

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

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

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

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

  • i - This connector represents a real signal as an output from a component (RealOutput)

  • v - This connector represents a real signal as an output from a component (RealOutput)

  • power - This connector represents a real signal as an output from a component (RealOutput)

Behavior

nc.i(t)+pc.i(t)=0nc.v(t)+pc.v(t)=0pv.i(t)=0nv.i(t)=0i(t)=pc.i(t)v(t)=nv.v(t)+pv.v(t)power(t)=v(t)i(t)

Source

dyad
component MultiSensor
  pc = Pin()
  nc = Pin()
  pv = Pin()
  nv = Pin()
  i = RealOutput()
  v = RealOutput()
  power = RealOutput()
relations
  pc.i + nc.i = 0
  pc.v - nc.v = 0
  pv.i = 0
  nv.i = 0
  i = pc.i
  v = pv.v - nv.v
  power = v * i
end
Flattened Source
dyad
component MultiSensor
  pc = Pin()
  nc = Pin()
  pv = Pin()
  nv = Pin()
  i = RealOutput()
  v = RealOutput()
  power = RealOutput()
relations
  pc.i + nc.i = 0
  pc.v - nc.v = 0
  pv.i = 0
  nv.i = 0
  i = pc.i
  v = pv.v - nv.v
  power = v * i
metadata {}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses