modelDCLines
Example model to test the possible combinations between line and load models
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This model shows a DC grid with 10 loads and 16 cables.
Each cable is of length l = 10 meters, a parameter that can be modified.
Each load can be either be a full nonlinear model, or be replaced by the
linearized version. The parameter linearLoads = false
can be used to switch between linear and nonlinear implementation.
This model can be used to test how the linearized loads are affected by the voltage drop caused by the lines. The longer the distance between the load and the source, the bigger is the voltage drop and thus the error introduced by the linearization.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | linearLoads | false | Flag that selects between linearized or nonlinear load models |
| Real | L | 10 | Length of each cable |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Power | Sloads | load1.S[1] + load2.S[1] + load3.S[1] + load4.S[1] + load5.S[1] + load6.S[1] + load7.S[1] + load8.S[1] + load9.S[1] + load10.S[1] | Sum of the power consumed by the loads |
| Line | line | Transmission line | |
| Sources.ConstantVoltage | E | Voltage source | |
| Line | line1 | Transmission line | |
| Line | line2 | Transmission line | |
| Modelica.Electrical.Analog.Basic.Ground | ground | ||
| Loads.Conductor | load1 | Load | |
| Loads.Conductor | load2 | Load | |
| Loads.Conductor | load3 | Load | |
| Modelica.Blocks.Sources.Trapezoid | varLoad1 | Power consumption profile | |
| Loads.Conductor | load4 | Load | |
| Line | line3 | Transmission line | |
| Line | line4 | Transmission line | |
| Line | line5 | Transmission line | |
| Line | line0 | Transmission line | |
| Modelica.Blocks.Sources.Trapezoid | varLoad2 | Power consumption profile | |
| Line | line6 | Transmission line | |
| Loads.Conductor | load5 | Load | |
| Modelica.Blocks.Sources.Trapezoid | varLoad3 | Power consumption profile | |
| Loads.Conductor | load6 | Load | |
| Line | line7 | Transmission line | |
| Line | line8 | Transmission line | |
| Line | line9 | Transmission line | |
| Loads.Conductor | load7 | Load | |
| Modelica.Blocks.Sources.Trapezoid | varLoad4 | Power consumption profile | |
| Loads.Conductor | load8 | Load | |
| Line | line10 | Transmission line | |
| Line | line11 | Transmission line | |
| Line | line12 | Transmission line | |
| Loads.Conductor | load9 | Load | |
| Modelica.Blocks.Sources.Trapezoid | varLoad5 | Power consumption profile | |
| Loads.Conductor | load10 | Load | |
| Line | line13 | Transmission line | |
| Line | line14 | Transmission line |