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 Buildings.Electrical.Transmission.MediumVoltageCables.
function selectCable_med input Modelica.Units.SI.Power P_nominal = 0 "Rated power"; input Modelica.Units.SI.Voltage V_nominal = 0 "Rated voltage"; output Buildings.Electrical.Transmission.MediumVoltageCables.Generic cable "Cable"; end selectCable_med;