Skip to content
Analog.Transformer.md

Analog.Transformer ​

This component extends from TwoPort

Usage ​

TranslatedComponents.Analog.Transformer(L1=1, L2=1, M=1)

Parameters: ​

NameDescriptionUnitsDefault value
L1H1
L2H1
MH1

Connectors ​

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

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

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

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

Variables ​

NameDescriptionUnits
v1V
v2V
i1A
i2A
dv–

Behavior ​

v1(t)=−n1.v(t)+p1.v(t)v2(t)=p2.v(t)−n2.v(t)i1(t)=p1.i(t)i2(t)=p2.i(t)0=p1.i(t)+n1.i(t)0=p2.i(t)+n2.i(t)v1(t)=L1di1(t)dt+Mdi2(t)dtdv(t)=(L1−M)di1(t)dt+(−L2+M)di2(t)dtv2(t)=−dv(t)+v1(t)

Source ​

dyad
component Transformer
  extends TwoPort
  parameter L1::Dyad.Inductance = 1
  parameter L2::Dyad.Inductance = 1
  parameter M::Dyad.Inductance = 1
  variable dv::Real
relations
  v1 = L1 * der(i1) + M * der(i2)
  dv = (L1 - M) * der(i1) + (M - L2) * der(i2)
  v2 = v1 - dv
end
Flattened Source
dyad
component Transformer
  p1 = Pin()
  n1 = Pin()
  p2 = Pin()
  n2 = Pin()
  variable v1::Dyad.Voltage
  variable v2::Dyad.Voltage
  variable i1::Dyad.Current
  variable i2::Dyad.Current
  parameter L1::Dyad.Inductance = 1
  parameter L2::Dyad.Inductance = 1
  parameter M::Dyad.Inductance = 1
  variable dv::Real
relations
  v1 = p1.v - n1.v
  v2 = p2.v - n2.v
  i1 = p1.i
  i2 = p2.i
  0 = p1.i + n1.i
  0 = p2.i + n2.i
  v1 = L1 * der(i1) + M * der(i2)
  dv = (L1 - M) * der(i1) + (M - L2) * der(i2)
  v2 = v1 - dv
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses