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 |
function selectVoltageLevel input Modelica.Units.SI.Voltage V "Nominal voltage"; output AixLib.Electrical.Types.VoltageLevel level "Type of voltage level"; end selectVoltageLevel;