AixLib.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium

# .AixLib.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACSimpleGridMedium

Test model for a network model with medium voltage

## Information

This example demonstrates how to use a network model to connect a source to a load (using a medium voltage cable). In this simple case the network has two nodes that are connected by a commercial line cable.

At the beginning of the simulation the load consumes power while at the end it produces power. The voltage at the load at the beginning is lower than the nominal RMS voltage (15 kV) while at the end of the simulation it is higher. The voltage drop and increase are due to the presence of the cable between the source and the load.

The network uses cables of the type `MediumVoltageCables.Annealed_Al_30` with a length of 200 m.

The picture below describes the grid topology.

#### Note:

The cables are usually defined using the `LowVoltageCable.Generic` type. In order to use a medium voltage cable it is necessary to redeclare the type of the record `commercialCable`.

ThreePhasesBalanced.Lines.Network network(

redeclare AixLib.Electrical.Transmission.Grids.TestGrid2NodesMedium grid,

lines( redeclare AixLib.Electrical.Transmission.MediumVoltageCables.Generic

commercialCable = network.grid.cables,

each V_nominal = network.V_nominal),

V_nominal=15000)

The code snippet shows how each line that is part of the vector `lines` is redeclared in order to have as type the record `AixLib.Electrical.Transmission.MediumVoltageCables.Generic`. The lines are initialized using the cables of the grid `network.grid.cables`. All the lines have the same nominal voltage `each V_nominal = network.V_nominal`.

## Revisions

- September 23, 2014, by Marco Bonvini:
  Documentation and example added.

Generated at 2026-05-12T20:19:03Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos