Engee documentation
Notebook

Single-pole generator with regulators

Description of the model

This example examines the operation of a hydrogenerator-transformer unit via a double-circuit overhead line (overhead line) to an infinite-power bus with ARV-M high-power excitation regulators, rotation speed and a hydraulic turbine. At a time of 5 s. in the model, a three-phase short circuit (short circuit) occurs in the middle of one of the overhead line circuits. The model is first started with the ARV-M switched off, then the voltage regulation channels and its first derivative and the frequency deviation stabilization channels, its first derivative and the first derivative of the excitation current are switched on sequentially.

The process of launching and configuring the model from the script development environment using command control, processing simulation results, visualization of simulation results, and scenarios for independent work with the model are proposed. The signals are logged and their time schedules are shown. The model's appearance:

regulated_hydro_generator--1738854981663.png

The main blocks used in this example are:

  1. Synchronous Machine Salient Pole - single-pole synchronous generator (, , ).
  2. PID-controller AVR - ARV-M excitation regulator with proportional-integral-differential voltage control law of the generator.
  3. Separately-Excited Exciter is an electric machine or thyristor exciter with independent power supply.
  4. Hydraulic Turbine and Governor - hydraulic turbine, PID control system and servo drive.
  5. Voltage Source (Three-Phase) is a three-phase voltage source, used to simulate the BWM, the steady-state mode is set by setting the current line voltage and phase shift (, ).
  6. Fault (Three-Phase) - short circuit.
  7. From the library of passive elements Three-phase power transmission line units Three-Phase PI Section Line (, AC 500/64, 2 circuits) and a two-winding three-phase transformer Two-Winding Transformer (Three-Phase) (TD-630000/500).

Simulation

Importing the necessary modules for working with graphs:

In [ ]:
using Plots;
gr();

Loading the model:

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

Configuring the model using command control, disabling ARV:

In [ ]:
# отключение АРВ
engee.set_param!(model_name*"/АРВ+СВ/"*"reg", "Value" => 0);
# отключение каналов стабилизации
engee.set_param!(model_name*"/АРВ+СВ/"*"stab", "Value" => 0);

Launching the uploaded model:

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

To import the simulation results, logging of the necessary signals was enabled in advance and their names were set. Converting the simulation results from the results variable:

In [ ]:
# вектор времени симуляции
sim_time = results["V"].time;
# вектора записанных сигналов
w1 = results["w"].value;
U1 = results["V"].value;
P1 = results["P"].value;

Starting the model and turning on the ARV with only a voltage regulation channel and the first derivative without stabilization channels:

In [ ]:
# настройка модели
engee.set_param!(model_name*"/АРВ+СВ/"*"reg", "Value" => 1);
engee.set_param!(model_name*"/АРВ+СВ/"*"stab", "Value" => 0);
# запуск модели
results = engee.run(model_name);
# вектора токов в точке измерения №1
w2 = results["w"].value;
U2 = results["V"].value;
P2 = results["P"].value;

Launching the model and turning on the ARV with all channels of regulation and stabilization:

In [ ]:
# настройка модели
engee.set_param!(model_name*"/АРВ+СВ/"*"reg", "Value" => 1);
engee.set_param!(model_name*"/АРВ+СВ/"*"stab", "Value" => 1);
# запуск модели
results = engee.run(model_name);
# вектора токов в точке измерения №1
w3 = results["w"].value;
U3 = results["V"].value;
P3 = results["P"].value;

Graph of the rotation speed of the generator rotor:

In [ ]:
plot(sim_time, w1, title = L"Скорость\; вращения\; ротора", ylabel = L"\omega, о.е.", xlabel=L"Время,\; c", label = L"Без\; АРВ", legendfontsize = 10)
plot!(sim_time, w2, label = L"АРВ\; без\; стабилизации", size = (700,440), left_margin=5Plots.mm, bottom_margin=5Plots.mm)
plot!(sim_time, w3, label = L"АРВ\; со\; стабилизацией", ylims = (0.99,1.015), legend=:topleft)
Out[0]:

The graph shows that the use of ARV-M significantly accelerated the damping of oscillation of the generator rotor after a disturbance.

Voltage graph on generator tires:

In [ ]:
plot(sim_time, U1, title = L"Напряжение\; генератора", ylabel = L"U, о.е.", xlabel=L"Время,\; c", label = L"Без\; АРВ", legendfontsize = 10)
plot!(sim_time, U2, label = L"АРВ\; без\; стабилизации", legend=:bottomleft,size = (700,440), left_margin=5Plots.mm, bottom_margin=5Plots.mm)
plot!(sim_time, U3, label = L"АРВ\; со\; стабилизацией", ylims = (0.3, 1.1))
Out[0]:

The graph shows that the use of ARV-M made it possible to restore the voltage on the generator busbars after the disturbance to the initial value.

Active power graph of the generator:

In [ ]:
plot(sim_time, P1, title = L"Активная\; мощность\; генератора", ylabel = L"P, о.е.", xlabel=L"Время,\; c",label = L"Без\; АРВ")
plot!(sim_time, P2, label = L"АРВ\; без\; стабилизации", legendfontsize = 10, size = (700,440), left_margin=5Plots.mm, bottom_margin=5Plots.mm)
plot!(sim_time, P3, label = L"АРВ\; со\; стабилизацией", ylims = (0, 1.4), legend=:topleft)
Out[0]:

The graph shows that the use of ARV-M has significantly improved the damping of fluctuations in the active power of the generator after a disturbance.

Addition

Try to change the following model parameters yourself and explore how this affects dynamic stability:

  1. increase overhead line length by 200 km;
  2. Type of fault in the Fault (Three-Phase) block;
  3. Change the ARV coefficients.

Conclusions

In this example, tools were used for command management of the Engee model and uploading simulation results, and work with the Plots module is shown. The operation of a single-pole generator through a transformer and a double-circuit overhead line on a SHBM, taking into account the ARV-M, a hydraulic turbine and a rotation speed regulator, was considered. The influence of ARV-M on the operation of the power system is shown.