Engee documentation
Notebook

A power line model with two-way power supply and three-phase short circuit shutdown

In this example, we will consider a two-way power supply line where a three-phase short circuit occurs, followed by disconnection and reconnection of the line (model power_line_apv.engee) in Engee. The process of launching models from the script development environment using command control and visualization of simulation results will be shown.

Implementation of the model launch using software control:

Downloading the necessary libraries:

In [ ]:
using Plots
using DataFrames
gr();

Loading the model:

In [ ]:
model_name = "power_line_apv"
model_name in [m.name for m in engee.get_all_models()] ? engee.open(model_name) : engee.load( "$(@__DIR__)/$(model_name).engee");

Launching the uploaded model:

In [ ]:
results = engee.run(model_name);

Reading data on the instantaneous values of current and voltage on the line:

In [ ]:
t = results["i_a"].time;
i_a = results["i_a"].value;
i_b = results["i_b"].value;
i_c = results["i_c"].value;
v_a = results["v_a"].value;
v_b = results["v_b"].value;
v_c = results["v_c"].value;

Downloading and visualizing the data obtained during the simulation

Output of a graph of the dependence of instantaneous current values on time:

In [ ]:
plot(t, [i_a i_b i_c], label=["Ток фазы А" "Ток фазы В" "Ток фазы С"])
plot!(title = "Результаты моделирования в Engee", ylabel = "Мгновенное значение тока, А", xlabel="Время, c")
Out[0]:

Output of a graph of the dependence of instantaneous voltage values on time:

In [ ]:
plot(t, [v_a v_b v_c], label=["Напряжение фазы А" "Напряжение фазы В" "Напряжение фазы С"])
plot!(title = "Результаты моделирования в Engee", ylabel = "Мгновенное значение напряжения, В", xlabel="Время, c")
Out[0]:

Conclusions:

In this example, tools for command management of the Engee model were used. The model demonstrates the logic of automatic-re-activation (APV) in the event of a three-phase short circuit. The simulation results were imported into an interactive script, visualized using interactive graphs from the Plots library, and analyzed.