AixLib.Electrical.Transmission.Functions.selectVoltageLevel

# .AixLib.Electrical.Transmission.Functions.selectVoltageLevel

This function computes the voltage level (low, medium or high) given the nominal voltage

## Information

This function computes the voltage level for a given voltage. The computation is as follows:

Condition | Voltage Level
--- | ---
0 ≤ V < 1 kV | Low voltage
1 kV ≤ V < 50 kV | Medium voltage
V ≥ 50 kV | HIgh voltage

#### Interface

>     function selectVoltageLevel
>       input Modelica.Units.SI.Voltage V "Nominal voltage";
>       output AixLib.Electrical.Types.VoltageLevel level "Type of voltage level";
>     end selectVoltageLevel;

## 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-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos