modelSmoothStep

Compares oLine and tLine behaviour

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example shows a comparison of a multi-segment OLine model with the distributed-parameter line model TLine.

If resistances and conductances are negligible, with OLine the results should become closer and closer as the number of segments increases.

Suggested tests:

Steep step

Use the model as it is (it has firstOrder.T=1e-9 s) and compare R1.v, R5.v, R50.v, Rdistr.v: Rdistr.v is the ideal voltage of the receiving-end resistor for a lossless line, while the others are approximations with 1, 5, 50 cascaded segment models.

The step in this case is nearly ideal, and therefore is a very tough test for cascaded segments, and in fact they are not very good in approximating the real line behaviour.

Smoother step

Repeat the simulation using firstOrder.T=20e-6 s. You will see that the OLine compliance with the reference result given by TLine is much better, and 50 segments are probably adequate for several applications; in comparison with, they add the option of evaluating losses.

Parameters

TypeNameDefaultDescription
SI.ResistanceRload1000Load resistance
Realr11e-6Resistance per meter
Realg11e-12Conductance per meter
Reall11e-6Inductance per meter
Realc11e-11Capacitance per meter
SI.Lengthlen100e3Length of line
IntegerN11Number of lumped segments of oline1
IntegerN55Number of lumped segments of oline5
IntegerN5050Number of lumped segments of oline50
SI.Velocityc1/sqrt(l1*c1)Speed of EM wave
SI.Timetdlen/cTransmission delay
SI.Impedancez0sqrt(l1/c1)Characteristic impedance for very high frequency

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Stepstep
Modelica.Blocks.Continuous.FirstOrderfirstOrder
Modelica.Electrical.Analog.Sources.SignalVoltagesourceV
Modelica.Electrical.Analog.Basic.GroundgroundS
Modelica.Electrical.Analog.Lines.OLineoLine1
Modelica.Electrical.Analog.Basic.ResistorR1
Modelica.Electrical.Analog.Lines.OLineoLine5
Modelica.Electrical.Analog.Basic.ResistorR5
Modelica.Electrical.Analog.Lines.OLineoLine50
Modelica.Electrical.Analog.Basic.ResistorR50
Modelica.Electrical.Analog.Basic.GroundgroundO
Modelica.Electrical.Analog.Lines.TLinetLine
Modelica.Electrical.Analog.Basic.ResistorRdistr
Modelica.Electrical.Analog.Basic.GroundgroundT

Revisions

  • May, 2021 implemented by Massimo Ceraolo, University of Pisa