AixLib.Electrical.Transmission.Functions.selectCable_med

# .AixLib.Electrical.Transmission.Functions.selectCable_med

This function is used to automatically select the type of cable for medium voltages

## Information

This function selects the default cable for a medium voltage transmission line.

The function takes as inputs the nominal voltage Vnominal and the nominal power Pnominal. It computes the maximum current current that can flow through the cable as

IMAX = SF Pnominal / Vnominal,

where SF is the safety factor. By default the safety factor is equal to 1.2.

Using IMAX, the function selects the smallest cable that has an ampacity higher than IMAX. The cables are selected from AixLib.Electrical.Transmission.MediumVoltageCables.

#### Interface

>     function selectCable_med
>       input Modelica.Units.SI.Power P_nominal = 0 "Rated power";
>       input Modelica.Units.SI.Voltage V_nominal = 0 "Rated voltage";
>       output AixLib.Electrical.Transmission.MediumVoltageCables.Generic cable "Cable";
>     end selectCable_med;

## Revisions

- Sept 19, 2014, by Marco Bonvini:
  Added warning instead of print.
- June 3, 2014, by Marco Bonvini:
  Added User's guide.

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