Do you have a Python script to calculate the voltage and current in a line as function of distance?

Category:
Power Equipment Models
Answer

High voltage cable systems sometimes require a detailed analysis of voltages and currents in the core and metallic screen (sheath). In order to analyse both voltages and currents along the cable, the line has to be splitted up into small sections to obtain results at each terminal and line section.

Splitting up the line into a many small sections manually can be prevented by using the attached Python scripts. The script is based on a line that is composed of two section, section 1 and section 2.

  • The user defines a total line length and step size
  • During the execution, the terminal is sweep from the sending to the receiving end of the line. For each step, a load flow calculation is executed and the results are stored in a result file (ElmRes)
  • After execution, the Python script creates plots to show the current and voltage as function of cable distance.

 

There are two version of the script:

  • General Line Sweeper:

Can be used for single circuit lines (ElmLne) modelled with a TypLne, TypCabsys, TypTow, TypGeo

  • Cable Line Sweeper:

Can be used for cable system with explicit sheath model. The model is then composed of two ElmLne that are coupling via an ElmCabsys (This example can also be used for ElmTow)

Back