This package contains lossy and lossless tranmission lines.
Lossy Transmission Line The lossy transmission line OLine consists of segments of lumped resistances and inductances in series and conductances and capacitances that are connected with the reference pin g. The precision of the model depends on the number N of lumped segments.
Name | Default | Description |
---|---|---|
r | 1 | Resistance per meter [Ohm/m] |
l | 1 | Inductance per meter [H/m] |
g | 1 | Conductance per meter [Siemens/m] |
c | 1 | Capacitance per meter [F/m] |
length | 1 | Length of line [m] |
N | 1 | Number of lumped segments |
model OLine "Lossy Transmission Line" //extends Interfaces.ThreePol; Modelica.Electrical.Analog.Interfaces.Pin p1; Modelica.Electrical.Analog.Interfaces.Pin p2; Modelica.Electrical.Analog.Interfaces.Pin p3; SIunits.Voltage v13; SIunits.Voltage v23; SIunits.Current i1; SIunits.Current i2; parameter Real r( final min=Modelica.Constants.SMALL, unit="Ohm/m") = 1 "Resistance per meter"; parameter Real l( final min=Modelica.Constants.SMALL, unit="H/m") = 1 "Inductance per meter"; parameter Real g( final min=Modelica.Constants.SMALL, unit="Siemens/m") = 1 "Conductance per meter"; parameter Real c( final min=Modelica.Constants.SMALL, unit="F/m") = 1 "Capacitance per meter"; parameter SIunits.Length length(final min=Modelica.Constants.SMALL) = 1 "Length of line"; parameter Integer N(final min=1) = 1 "Number of lumped segments"; protected Modelica.Electrical.Analog.Basic.Resistor R[N + 1](R=r*length/(N + 1)); Modelica.Electrical.Analog.Basic.Inductor L[N + 1](L=l*length/(N + 1)); Modelica.Electrical.Analog.Basic.Capacitor C[N](C=c*length/(N + 1)); Modelica.Electrical.Analog.Basic.Conductor G[N](G=g*length/(N + 1)); equation v13 = p1.v - p3.v; v23 = p2.v - p3.v; i1 = p1.i; i2 = p2.i; // other models if gg = 0 ... connect(p1, R[1].p); for i in 1:N loop connect(R[i].n, L[i].p); connect(L[i].n, C[i].p); connect(L[i].n, G[i].p); connect(C[i].n, p3); connect(G[i].n, p3); connect(L[i].n, R[i + 1].p); end for; connect(R[N + 1].n, L[N + 1].p); connect(L[N + 1].n, p2); end OLine;
The lossy RC line ULine consists of segments of lumped series resistances and capacitances that are connected with the reference pin g. The precision of the model depends on the number N of lumped segments.
Name | Default | Description |
---|---|---|
r | 1 | Resistance per meter [Ohm/m] |
c | 1 | Capacitance per meter [F/m] |
length | 1 | Length of line [m] |
N | 1 | Number of lumped segments |
model ULine "Lossy RC Line" //extends Interfaces.ThreePol; Modelica.Electrical.Analog.Interfaces.Pin p1; Modelica.Electrical.Analog.Interfaces.Pin p2; Modelica.Electrical.Analog.Interfaces.Pin p3; SIunits.Voltage v13; SIunits.Voltage v23; SIunits.Current i1; SIunits.Current i2; parameter Real r( final min=Modelica.Constants.SMALL, unit="Ohm/m") = 1 "Resistance per meter"; parameter Real c( final min=Modelica.Constants.SMALL, unit="F/m") = 1 "Capacitance per meter"; parameter SIunits.Length length(final min=Modelica.Constants.SMALL) = 1 "Length of line"; parameter Integer N(final min=1) = 1 "Number of lumped segments"; protected Modelica.Electrical.Analog.Basic.Resistor R[N + 1](R=r*length/(N + 1)); Modelica.Electrical.Analog.Basic.Capacitor C[N](C=c*length/(N + 1)); equation v13 = p1.v - p3.v; v23 = p2.v - p3.v; i1 = p1.i; i2 = p2.i; connect(p1, R[1].p); for i in 1:N loop connect(R[i].n, R[i + 1].p); end for; for i in 1:N loop connect(R[i].n, C[i].p); end for; for i in 1:N loop connect(C[i].n, p3); end for; connect(R[N + 1].n, p2); end ULine;