Electric Generator Modeling and Automatic Generation Controller

Avista Utilities is building a microgrid within the downtown area of Spokane, Washington. In the event of a natural or manmade disaster, Avista wants to build a self-sustaining and self-contained small power system using the two hydroelectric generators downtown in Spokane, some renewable energy sources, large batteries, and a control system to make the microgrid work in a stable and reliable fashion.

Problem Statement
A Microgrid system is needed to keep the power, for important parts of the city, going in the event of a natural or manmade disaster.

This Microgrid will allow the city to have a self sustaining power system using various elements around the city; including two hydro-generation synchronous generators.

The hydro-generation for the city is the main power source for the Microgrid system and is currently incapable of sustaining power for the city in an island state

Deliverables
PowerWorld Models:
 * Generator Models
 * Governor Models
 * Automatic Generator Control

Introduction
There are many models that are available to use for simulation and modeling of hydroelectric generators. This is complicated further as there is more than just the AC machine involved in generation. In addition to the AC Synchronous machine there is a governor, exciter, and an over excitation limiter. As there are many models for each of these parts we must decide on one model for each part and successfully use it in simulation to get an accurate representation of the generators.

Synchronous Machine
A synchronous machine is a popular choice for generating electric power. They come in several types. First there are the round rotor and the salient variety. As the name implies the round rotor variety has a round rotor while the salient is not round as it has protrusions where the magnetic poles are. The salient type is often used with larger, slower machines. Here in the Northwest these are a very common choice for hydroelectric generators. While a round rotor machine is more often used in high speed generation applications such as steam turbines. As such the motors that we want to model are salient.

There are many models of synchronous machines, several that we looked into are the GENROU, GENSAL, GENTPF and GENTPJ. Each of these models has their own advantages and disadvantages. The GENROU is for modeling a round rotor machine; ours being a salient machine this isn't a good option. GENSAL is an older model for a salient machine, it has the advantage in requiring less computation to simulate. The GENTPF and GENTPJ are rather similar, both may be used to model round rotor or salient rotor synchronous machines. We had the parameters for a GENTPJ from testing Avista had completed on one of the generators so looked into this model in depth.



The GENTPJ differs from the GENTPF in it's handling of saturation, in this aspect it is more accurate. It also has the most parameters of any of the generators. Luckily these parameters should be the same between models and as such we can use any of the other models as well.

In the end we ended up going with a MatLab-Simulink model that is likely based on the GENSAL model.

Simulink
This MatLab Simulink model is to find a generator model for the two machines. Originally, GENROU, GENSAL, GENTPF, and GENTPJ generator models were considered. GENROU and GENSAL were considered because they were available in Matlab Simulink. GENTPF and GENTPJ were considered because values for one of the generators was available in GENTPJ, and GENTPF is extremely similar to GENTPJ. Because the generators were salient, GENROU was not acceptable to use. When using Matlab Simulink the GENSAL was the model to use. This works because most of the parameters are the same as seen in Figure below. Also, GENTPJ model was not available in MatLab Simulink, so GENSAL model was similar to GENTPJ in MatLab Simulink. However, after going back to work on PowerWorld the GENTPJ model was available to use.



PowerWorld
When moving into power world GENTPJ was an option. So we were able to use the GENTPJ model for the final implementation.

Introduction
The Governor is a mechanical and or electrical device that uses a feedback control to change the rate of rotation of the machine to get the desired output. This allows for the control of the output frequency of the machine. For the Synchronous Machine water turbine this is done by controlling the flow of water through the turbine and measuring the rate of rotation of the machine.



Exciter
Main functions of excitation system are to provide variable DC current with short time overload capability, controlling terminal voltage with suitable accuracy, ensure stable operation with network and/ or other machines, contribution to transient stability subsequent to a fault, communicate with the power plant control system and to keep machine within permissible operating range.



First part of the MatLab Simulink modeling was the excitation system. The excitation system model given from tests on the machine in Generator 2 was EXST4B. However, EXST4B was not available in MatLab Simulink, but by looking for the system they are close to each other.

Introduction
The AGC is a tool in the power systems that checks that the actual MW output of an area is equal to the scheduled MW output of an area [1]. By calculating the Area Control Error (ACE) which is defined in equation ACE = Pactual - Pscheduled                              Equation [1] The AGC has two levels of control, the master and slave controls. The microgrid master controller provides an interface between the system controller and the individual loads, generators, storage, and power conditioning equipment within the microgrid [2]. Normally, the load varies with the frequencies at play. If there is a general increase in power supply than the actual power needed, the equilibrium is affected and frequency increases. This affects the normal functioning of the grid which may have adverse effects on the entire system. Hence, autonomous generators help regulate system frequency by keeping it in check. This is done using the proportional integral control system in the governor. Whenever the load frequency tends to go high, the AGC sends signals to the cyber component (computers). When this happens, signals are sent to the autonomous generators which pick and act as per the signal received. Simply, the AGC provide a control scheme for the system’s frequency/speed. When the loads increase the AGC adjusts the generators output to restore the nominal value of the frequency. In other words, without an AGC the frequency would decrease when the load increases but the AGC compensates for that by sending a signal to increase to the generators. The AGC is an important tool in the powers systems, because with the automated generation control the frequency can be adjusted without changing the MW output of the system.

PowerWorld
The master control level of the AGC is the Area AGC which controls all the slaves’ controllers in the system. The Figure below shows the interaction between the master and slave controllers in the system.



The master controller has three modes for its operation which are normal operation connected the supply grid, emergency operation connected to the supply grid and an operation in island mode. In Simulation the master controller has the following parameters: •	Bus: Bus at which frequency measurement is taken •	Bias: Frequency bias [MW/0.1Hz] •	Dead band [MW] •	Panic High On, Off [Hz] •	Panic Low On, Off [Hz] •	Update Time: AGC signals are updated at this interval [Sec] The values for the Area AGC model are chosen accordingly. For the bias parameter a value of 5 MW per 0.1 Hz was chosen after a trial and error testing. The ACE dead band parameter which has the unit of MW needs to be a small value, but not too small because it will cause an unstable frequency with a noise in the simulation. Moreover, using a large value for the ACE dead band will not bring back the frequency to its nominal value. The Panic High On and Panic High Off are given the values of 62 and 61 Hz, respectively. Where the Panic Low On and Panic Low Off are 58 and 59 Hz, respectively. There will be an update every 10 seconds to check the status of the frequency.

The second level of control in the AGC system is the slave controller which is a control scheme implemented in each machine. There are two schemes for the slave controller in PowerWorld which are Set Point and Pulse Rate schemes. The Figure below shows the difference between the two schemes.



The set point scheme will set the MW reference immediately which means there will be a change by stepping up or down in a specified time. Where the pulse rate will ramp the MW reference up or down with a slope. The scheme was chosen for the AGC system is the pulse rate scheme because its slope will have a smoother transition from one value to another. The pulse rate scheme has the following parameters: •	Participation Factor •	Maximum and Minimum Power [MW] •	Pulse Rate: Rate at which the MW reference signal changes [Sec] •	Pulse Length: Length of time that the pulse up or down occurs [Sec] •	Pulse Length Panic [Sec] The values for the pulse rate scheme are chosen to meet the actual requirements for the system. After calculation, the participation factor parameter is set to be 60\% for the large machine and 40\% for the smaller one. The maximum and minimum powers for each machine are obtained from the rated values of each individual machine. The pulse rate value is set to be 0.15 MW per second, which means that the slope will increase 0.15 MW every second. The pulse length is set to 5 seconds which is the length of time the pulse up or down occurs.

Introduction
Generator 1 was installed in the early 1920s on the river through the city. This generator utilizes a Francis Turbine and outputs up to 10MW. Today it utilizes a solid state exciter and governor controller.

Generator 1 will be one of our greatest modeling challenges. This is due to the lack of known information. In order to model this generator parameters from generators of similar age and style are used and modified to fit the expected values for Generator 1.

PowerWorld
For Generator 1 the generator parameters were taken from tests done on a nearby generator that is similar in age, so it’s per unit values should be very similar. The Governor model was also adapted from these other similar age generators, with the addition of the correct water time constant, calculated from the dimensions of the inlet pipes into the turbine. For the Exciter the same parameters were used as on Generator two.

Introduction
Generator 2's Dam was built in 1890 and at it's peak consisted of five generators. Eventually reconstruction of the Monroe Street dam started in 1974 and was finished in 1992. This reconstruction removed the 5 generators from the 1900-era and replaced them with 1 generator utilizing a Kaplan turbine. In the process the generation was moved underground, a beautification aspect for the riverfront park.

Simulink
The first step of the model process for this project is to model the generators in Matlab Simulink. Tests have been done for the Monroe Street generator giving us usable parameters. The values from the GENTPJ model were given and can be used with Simulink models from the Sim Power library. The values for the exciter were also in the testing report for the machine. With this information the Simulink model of the generator could be built using a generic exciter model that should be close to the actual model. Below is the final model for the Monroe Street generator in Matlab Simulink with per unit values.



This Simulink model uses a fault system on the line to trigger a transient response. With this response in the system we can verify that this model is correct for the Monroe street generator. The three main blocks of the diagram are the Govern the Exciter and the Synchronous Machine itself. With these models the Monroe Street generator model is complete.

The figures above show the current results of the forced fault in the system and the generator models transient recover from this fault. From the voltage it clearly can be seen that the fault is doing its job forcing the voltage to zero. This forces the rotor to slow and the current to spike.

PowerWorld
For Generator 2 the generator parameters were taken from tests done on this generator. The Governor model was adapted from another generator with the same “Kaplan” turbine, with the addition of the correct water time constant, calculated from the dimensions of the inlet pipes into the turbine. For the Exciter model the parameters were obtained from the same test that was done on this generator.

Document Archive

 * Group Minutes