Professional Documents
Culture Documents
Hardware-in-the-Loop Wind Turbine Simulation Platform For A Laboratory Feeder Model
Hardware-in-the-Loop Wind Turbine Simulation Platform For A Laboratory Feeder Model
1949-3029 © 2014 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
1004 IEEE TRANSACTIONS ON SUSTAINABLE ENERGY, VOL. 5, NO. 3, JULY 2014
III. WIND TURBINE MODEL DEVELOPMENT Constants were provided for , , , and [18], the latter
involving an assumption about air density. Since the HIL
The turbine chosen for simulation was selected because of the
simulator is to be provided with the wind speed from a recorded
wide variety of information available. In particular, [18] provided
data file, the only unknown value in (1) is . The function for
many details regarding the specifics of how to model this particu-
is also turbine specific and a numerical approximation in [18] was
lar turbine (including details such as model architecture and
defined as
parameter values) and is the primary reference for the model
construction; Fig. 1 shows the entire turbine model used with
applicable controllers. All values presented in the model, unless
otherwise stated, have been converted to per-unit values. where is defined in a provided table of constants. Large
negative values of are not allowed in this model and so the
A. Aerodynamic and Inertia Model output of this function was limited in software to a minimum
The aerodynamic model for this turbine is used to calculate the of .
amount of mechanical power that the turbine is able to Using these equations and the provided constants, it is possible
extract from the wind; it is given by to calculate the mechanical power produced by the wind turbine
for a given wind speed . The mechanical power signal is fed
to the rotor model; a one-mass model was recommended in [18]
and was used in this project. This model lumps all the mass of the
where , the tip-speed ratio is defined as wind turbine, gearbox, and generator into a single mass for the
purpose of calculating the effects of inertia.
The difference between the mechanical power produced by the
wind (ignoring losses, see Section III-B) and the electrical
where power produced by the generator results in an accelerating
torque on the lumped mass of the system. The output speed
turbine specific constant; of the single-mass model, is a per-unit value and can be
rotational speed of the turbine; converted to the low-speed (turbine-side) or high-speed (gener-
wind speed. ator-side) of the gearbox as needed.
HARDY AND JEWELL: HIL WIND TURBINE SIMULATION PLATFORM FOR A LABORATORY FEEDER MODEL 1005
is calculated using , which is similar to but The other controller to use the signal is the torque
not identical. is the simulated speed of the turbine , the controller. The output of this controller is a torque signal that
actual speed of the hardware running in the simulation. Physical is multiplied with the rotational speed of the generator , to create
factors, such as inertia, generally cause some degree of difference the power signal . runs through a low-pass filter
between these two speeds (when is expressed as the low-speed ( ). The filter also contains a saturation function to
side of the gearbox). (The other necessary signal to calculate prevent the power signal from exceeding reasonable limits (low
, takes a much longer feedback path through several and high) as well as a rate limiter to prevent the signal from
controllers, see Section III-C.) Note that this is a single-mass changing too quickly.
model where all dynamic effects of the gearbox are neglected. The filtered is used to drive two separate functions, the
pitch compensation controller and the power output signal
B. Loss Model . To find , is used to limit the filtered
There has been much research into the losses in wind turbine to a level defined by , which is then subtracted from
generation systems looking at the specific causes of said losses the original filtered . The resulting difference is then run
[19], [20]. Some of the research has focused on minimizing through a washout filter and then added back into the limited
losses in certain areas of the system such as the copper losses in signal. This sum defines .
the windings of the generator [21] and in the power converters In addition to , the filtered power signal is used to
[22]. Although a complex model for the losses of the system may generate the power error signal , which is achieved by
have been possible to construct, as a matter of simplicity, a comparing to the power setpoint . There is optional
constant loss factor was used. This constant loss factor is functionality provided by the manufacturer of this particular
particular to the hardware used in the simulation and chosen turbine to limit the power output of the turbine by moving
experimentally. The from the aerodynamic model is to a lower value during normal operation. By using a
multiplied by this loss factor before being compared with setpoint less than one during normal operation, the turbine
to calculate the accelerating torque . maintains a margin of power that can be easily accessed in
abnormal conditions. If, e.g., the turbine detects a low system
C. Turbine Controllers frequency, the power setpoint can be adjusted upward to allow
There are three controllers used in simulating the behavior of the turbine to produce more power and assist in the support and
the wind turbine (not counting five filters). Two of the controllers recovery of the system frequency. If the turbine had already been
act on the error signal . The signal is derived from the operating at its rated power when such an event occurred, it
generator power . Using this signal, an algebraic function would have no margin to use and would not be able to assist in
provided in [18] (4) is used to calculate the turbine speed setpoint stabilizing the system. By allowing a more dynamic power
and produce the signal setpoint, wind turbines can operate in a manner more akin to
traditional thermal plant at the cost of forgoing some measure of
power production during normal system operation. Such require-
ments for the operation of wind turbines is more common under
To prevent rapid changes in this reference speed, a low-pass European grid codes (see [18]). Given the increased complexity
filter ( s) is also applied to before it is used in the rest of a dynamic setpoint, this HIL simulator used a constant value of
of the controller. As [18] makes clear, though, this is a model one, indicating a desire for full-rated power whenever possible.
simplification technique; the actual control system does not have The power error signal is used to drive the third and final
a reference to the generator power or a function to create . controller in the turbine model, the pitch compensation control-
is then found as the difference between the actual rotational ler. This controller seeks to adjust the blade pitch , such that the
speed and this reference speed . power output from the turbine matches that of . If the
One of the controllers that use is the pitch controller, blades are pitched such that more power is being generated than
which modulates the pitch of the turbine blades . If the the setpoint dictates, then the pitch compensation controller
signal is positive, it is an indication that the actual speed is output pushes the turbine blades to a less efficient position,
greater than the reference speed and that mechanical power lowering the power produced by the turbine. It is important to
being captured from the wind by the turbine is greater than it note that at lower wind speeds, where it is not possible for the
should be. In this situation, the blade pitch controller adjusts the wind turbine to produce rated power, will be negative and
pitch of the blades to make the turbine less aerodynamically the pitch compensation controller will try to command the
efficient and thereby convert less of the energy in the wind into turbine blades to a position for more efficient energy capture.
rotational mechanical energy. Conversely, if is negative, it In the case where the blades are already in their most efficient
is an indication that the electrical power from the generator is position ( ), the pitch compensation controller seeks to hold
greater than the mechanical power from the wind turbine and that them there. This controller also has anti-windup functionality
the blades need to be adjusted to capture more of the energy in the exactly like the pitch controller and thus this negative
wind bringing the turbine up to the desired speed. Thus, the pitch signal can be limited in cases such as these.
controller’s primary purpose is to regulate the speed by Both the pitch controller and pitch compensation controller act
adjusting the blade pitch . This controller contains anti-windup to influence the pitch of the turbine blades . The pitch controller
functionality that activates once the turbine blades reach their adjusts the pitch based on the error in the turbine speed ( ) and
maximum or minimum mechanical limits. the pitch compensation controller attempts to adjust the pitch
1006 IEEE TRANSACTIONS ON SUSTAINABLE ENERGY, VOL. 5, NO. 3, JULY 2014
based on the error in the power output ( ). It is the sum of calculate , three input signals are needed: 1) the wind speed
these two controller outputs that is actually used to , 2) the blade pitch , and 3) system rotational speed . is an
control the pitch. It is entirely possible that the turbine system is entirely internal signal and is generated by the simulation itself.
in such a state that one controller tries to increase the blade pitch is provided in the form of a text file created from sampled data
and the other is trying to decrease the blade pitch. The “winning” for a particular wind turbine during its operation. The signal is
controller is simply the one that produces a larger output signal. used in many locations throughout the simulation and it was not
is run through a final filter before being fed back into obvious at which point the signal should exit the simulation to
the calculation of the mechanical power from the wind . drive the hardware ( ) or at what point the speed signal
This is another low-pass filter that contains limits on both the from the hardware ( ) should reenter the simulation. That
maximum value of (the mechanical limits) and the rate at which is, where in the loop does the hardware get inserted, exactly?
can change (related to how quickly the actuators can rotate the Several configurations were tested, and the one shown in Fig. 1 is
blades). the one that was most successful.
Similarly, there are two power signals that need to be ac-
IV. HIL SIMULATOR IMPLEMENTATION counted for: 1) the power from the generator used as in input
in the mechanical model; and 2) the output power from the
The HIL wind turbine simulation platform constructed for this simulation . was calculated using the torque and
work can be divided into two parts: the software simulation of the speed signals from the hardware ( and ). The
wind turbine behavior and the hardware acting an the generated power actually produced by the motor/generator (dynamometer)
control signals and providing feedback to the simulation. Fig. 1 pair (see Section IV-B for further details) most closely matches
shows where the values from hardware were inserted into the the source of this signal as outlined by [18]. must be
simulation and which values from the simulation were fed to decomposed into its two constituent signals before being sent out
hardware. to the hardware; was divided into to find and
Although the goal of this simulator is to produce mechanical was used directly as .
power related to a given wind speed; mechanical power is a
function of the torque and speed of the system and they must be B. HIL Simulation Hardware
controlled independently. Based on [1], it was decided to have
the generator (implemented as a dynamometer during develop- The physical setup for the simulator consists of a dc motor
ment of this project) regulate the speed and the dc motor regulate used to replicate the mechanical power output of the turbine, an
the torque. The product of these two outputs is the mechanical insulated-gate bipolar transistor (IGBT) chopper/inverter (and its
power of the simulator which was treated as the electrical power controller) which drives the dc motor, a dynamometer to emu-
that would have been produced if the dc motor had been driving a lating the mechanical loading that a generator would provide to
generator. That is, ignoring losses, the mechanical power of the the turbine, and a high voltage ( ) dc power supply. Both
system is equal to the electrical power of the system. the dc motor and the dynamometer received a control signal
from the analog input/output hardware that interfaced with the
A. HIL Simulator Software software simulation (see Section IV-A). Sensors built into the
dynamometer allowed for torque and speed measurements to be
The software used to simulate the wind turbine’s behavior and
sent back as inputs into the software simulation. The control
power output provided a real-time environment, allowing the
signal for the dynamometer came from this I/O hardware and was
system to be developed in the frequency domain. Working in the
directly applied to a control input on the dynamometer allowing it
frequency domain afforded the use of conventional simulation
to produce a load that was proportional to that signal.
block diagram functions (such as classic transfer functions). This
The electronics to control the dc motor were more complex. A
greatly simplified the implementation of the model outlined in
voltage from the I/O hardware (generated by the software simula-
Section III in software with very little in the way of software
tion) was fed to a separate IGBT controller. This controller accepts
work-arounds. This direct and simple implementation allowed
ananaloginputvoltageandproducesthreecontrolsignalstobeused
for ease of verification and monitoring of the simulation while it
on the three-phase IGBT chopper/inverter. The controller has a
was running.
variety of modes that determine the waveform of those output
Since this software simulation controlled and received input
voltages but for this purpose, we needed only a single-phase pulse-
from hardware (thus the name, “hardware in-the-loop”), the
width modulated (PWM) signal. By applying a high input voltage
software included a few functions not explicitly shown in Fig. 1.
( ) on the input of the IGBT chopper/inverter, the
Both the hardware speed and torque signals ( and
signals from the controller modulate this fixed higher voltage
) had to be converted into per-unit values through a
down to a lower voltage of an arbitrary value. This modulated dc
simple scaling function before being fed into the software
voltage is then fed to the dc motor. The dc motor and the
simulation. Additionally, it was observed that noise in these
dynamometer were mechanically attached by a belt.
signals was nontrivial and so a third-order low-pass filter with a
A block diagram of the mechanical system is shown in Fig. 2.
cut-off frequency of 1 Hz was also added to each signal. The
output control signals had to go through a similar conversion
V. EXPERIMENTS, RESULTS, AND ANALYSIS
process from per-unit values to relevant control voltages.
Aside from these conversions, there are a few other important The validation of the HIL wind turbine simulation platform
details not explicitly covered in the model block diagram. To was done in two stages: a comparison during steady-state
HARDY AND JEWELL: HIL WIND TURBINE SIMULATION PLATFORM FOR A LABORATORY FEEDER MODEL 1007