Transmission line model with two-way supply and three-phase fault tripping¶
In this example we will consider a two-way powered line with a three-phase short-circuit followed by disconnection and reconnection of the line (model power_line_apv.engee) in Engee. The process of running the models from the script development environment using command control and visualisation of the simulation results will be shown.
Realisation of the model run using program control:¶
Loading the required libraries:
using Plots
using DataFrames
gr();
Loading the model:
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");
Running a loaded model:
results = engee.run(model_name);
Reading instantaneous current and voltage data on the line:
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;
Loading and visualisation of simulation data¶
Output of the graph of dependence of instantaneous current values on time:
plot(t, [i_a i_b i_c], label=["Ток фазы А" "Ток фазы В" "Ток фазы С"])
plot!(title = "Результаты моделирования в Engee", ylabel = "Мгновенное значение тока, А", xlabel="Время, c")
Output of the graph of dependence of instantaneous values of voltage on time:
plot(t, [v_a v_b v_c], label=["Напряжение фазы А" "Напряжение фазы В" "Напряжение фазы С"])
plot!(title = "Результаты моделирования в Engee", ylabel = "Мгновенное значение напряжения, В", xlabel="Время, c")
Conclusions:¶
In this example, tools were used to command control the Engee model. The model demonstrates the logic of automatic reclosure (AR) operation when a three-phase short-circuit occurs. The simulation results were imported into an interactive script, visualised, using interactive Plots library plots, and analysed.