Next Article in Journal
Households’ Electricity Consumption in Hungarian Urban Areas
Next Article in Special Issue
Fast Frequency Support from Hybrid Wind Power Plants Using Supercapacitors
Previous Article in Journal
Optimization-Driven Powertrain-Oriented Adaptive Cruise Control to Improve Energy Saving and Passenger Comfort
Previous Article in Special Issue
Implementation of Variable Blade Inertia in OpenFAST to Integrate a Flywheel System in the Rotor of a Wind Turbine
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Software-in-the-Loop Simulation of a Gas-Engine for the Design and Testing of a Wind Turbine Emulator

Wind Energy Technology Institute (WETI), Flensburg University of Applied Sciences, 24943 Flensburg, Germany
*
Author to whom correspondence should be addressed.
Energies 2021, 14(10), 2898; https://doi.org/10.3390/en14102898
Submission received: 22 March 2021 / Revised: 16 April 2021 / Accepted: 13 May 2021 / Published: 17 May 2021
(This article belongs to the Special Issue Grid Services with Wind Turbines and the Resulting Mechanical Loads)

Abstract

:
In order to investigate the grid integration of wind turbines (WT) of various scales and designs, a wind turbine emulator (WTE) is being built in Flensburg within the state-funded project GrinSH. The special feature of this WTE is the use of a large gas engine instead of an electric motor to emulate the behavior of a WT. In order to develop the controls of this innovative WTE and to design the upcoming test runs under safe conditions, a software in the loop model (SILM) was applied. This SILM contained a mathematical model of the wind turbine, mathematical models of the gas engine with an integrated controller, and a model of the generator and frequency converter unit, as well as a preventive modulator of the reference signal (PMRS). The PMRS module converts the reference signal of the emulated WT in such a way that the dynamics of the engine components can be calculated and balanced in advance to enable the required behavior of the entire SILM despite the dynamics of the gas engine. It was found that the PMRS module, developed and tested in this work, increased the ability of the WTE, based on a gas engine, to reproduce the dynamics of a WT.

1. Introduction

Experimental research in a laboratory offers many advantages compared to the research on a real WT in the field. These advantages arise from the independence from prevailing wind conditions, as well as from higher freedom in operation and the control of the entire test facility under laboratory conditions. Due to these advantages, many WT test facilities have been built in the past. The majority of these facilities are designed for testing and validating specific WT components. The main focus here is on the determination of the mechanical loads on the large components such as the WT nacelle [1], drive train [2], and bearing of the rotor [3]. The investigation of the WT components is an important issue but not the only area of the wind industry that would benefit from WT emulators of the relevant size. The increasing number of WT, which are integrated into the conventional grid, leads to the increasing demands on the grid support provided by the WT. Topics like inertia provision [4], feed-in management [5,6], and grid support [7] have become more and more important in recent years. There are several simulation-based studies [8,9] on the aforementioned network integration problems, but no WT emulators are known to the authors.
As the demand for the new solutions in the field of grid integration is increasing, in parallel to the increasing number of installed WTs, the development and construction of a facility for researching the grid-connected operation of WTs is an important step towards the future development of the wind energy [10,11]. A state-funded research project, called GrinSH, conducted at Flensburg University of Applied Sciences, aims to set up a wind turbine emulator (WTE) with the required conditions for researching grid-connected operation of WTs under laboratory conditions at a relevant scale.
It is a state-of-the-art large-scale WTE that uses the electric grid as a source for driving power and as a sink for the generated power [12]. While this is a reasonable approach for the testing and the validation of single WT components, experimental research with a focus on the grid integration of WTs requires a grid-independent source of driving power [12]. For this reason, the GrinSH WTE, which is currently under construction, adopts a gas-fired combustion engine instead of an electrical motor. This approach ensures the interaction of the GrinSH WTE with the grid in the same way as a real WT would do. Even though the use of a large gas-fired engine for emulating the aerodynamics and the structural dynamics of a WT is a promising approach, it is not state of the art. Therefore, the reproducibility of the key parameters of a WT by means of the envisaged engine must be examined.
A well-proven method to perform feasibility assessments of complex technical applications in an early stage is the software in the loop (SIL) approach [13]. Figure 1 shows a comparison of the real simulation tasks with those based on the SIL approach. As illustrated in Figure 1, the implementation of the SIL allows replacing the real processes and the real control systems with models.
Figure 2 shows the entire setup of the intended WTE in the form of a SIL application, adapted to the needs of this work. Following the structure introduced in Figure 1, the simulated process in this software in the loop model (SILM) was implemented as a WT model developed by Gloe et al. [11]. The simulated control system consisted of a PMRS module, a mathematical gas-engine model, a mathematical generator model, and a frequency converter model, as well as a power controller and a speed controller for the WT. The simulated control system described above is referred to as a WTE model in order to distinguish it from the real WTE, which is currently being set up in Flensburg.
The block diagram shown in Figure 2 illustrates the interaction of the SIL components during the simulation. The WT model, implemented in the SIL, has a dual function. On the one hand, it provides the reference signal, given by the angular speed and the electrical power measured on the generator of the WT model; on the other hand, it acts as a validation model for the output signal of the SILM.
The reference power signal from the WT model is sent to the power controller. The power controller calculates the power set point and sends it to the frequency converter model of the WTE model. The frequency converter model adjusts the torque of the generator model in such a way that together with the actual rotational speed of the generator model, the electrical power generated by the generator model reproduces the power given by the reference signal of the WT model. The torque of the generator model needs to be balanced by the gas engine in such a way that the rotational speed on the generator reproduces the speed of the WT model. The rotational speed of the WTE model is controlled by a speed controller and the PMRS module mentioned above.
An important difference between the WTE and the WT is the way in which the two facilities are controlled.
A distinction should be made between two basic types of scenarios, which can occur during the operation of the WT and shall be investigated in this work.
In scenario No. 1, the rotor speed of the WT changes as a result of a wind speed variation. The rotational speed of the generator changes as a result of this. As a consequence, the generated power also changes.
Scenario No. 2 was a scenario in which a power change is specified on the WT generator, and the rotor speed is set as a result of this specification.
In scenario No. 1, the WT is controlled in such a way that the change in the rotational speed of the rotor is transmitted to the generator, thereby changing the power output. At the WTE; however, the change in the speed on the generator arises as a result of the activation of the speed controller. The electrical power is set via the frequency converter. According to that, the variation in the rotational speed of the WTE would not result in the change of electrical power on the generator. Therefore, in the case of scenario No. 1, it must be ensured that the WT specifies both the speed and the power used in the WTE simulation.
The control process of scenario No. 2 describes the opposite case. Here the rotational speed must follow the power variation on the generator. In the case of the WT, the prescription of the generator to change the power is transmitted to the pitch controller, which changes the speed of the rotor and thus the speed of the generator. The rotor drives the generator at the changed speed, which leads to a change in the electrical power at the generator. The control algorithm of the WTE is different. The power change takes place via the frequency converter, which sets the new power directly on the generator. As a result, the torque on the generator changes. This change in torque leads to a change in the insert gas value initiated by the speed controller of the gas engine in order to compensate for the torque change coming from the generator. In scenario No. 2, the power of the WT was very easily reproduced by the WTE. The rotational speed follows the changes of the generator power due to the dynamics of the WTE model. In scenario No. 2, only the power must be specified by the WT to be emulated. If the WTE model receives both the power and the rotational speed as the input signals, the rotational speed modeled by the WTE model will be overregulated.
The research questions here were, first, whether it is possible to simulate the dynamics of the WT rotor by means of a gas engine and the PMRS module connected in series, and secondly, whether the WTE on the basis of a gas engine is able to simulate the behavior of the WT in terms of energy feed-in. According to that, the final goal of the research was to find a method to control the gas engine model and the model of the generator-converter unit in order to reproduce the incoming signal with as little deviation as possible. The degree to which this goal was achieved was measured by the similarity between the rotational speed and the electrical power at the generator of the WTE model compared to the results of the reference WT model. The important criteria for the statement about reproducibility are the phase, magnitude, and temporal delay of the simulated time series.
The authors propose the hypothesis that the use of a PMRS module based on an inverse transfer function allows the WTE to significantly improve the reproduction of the dynamics of the WT rotor. The investigations carried out in this work are created with the intention to further implement it in the controller of the real WTE that is currently under construction in Flensburg.

2. Methodology

This chapter is divided into four subchapters. The first subchapter gives generalized information about the modeling of internal combustion engines; the second describes the concrete implementation of the GrinSH WTE model. The third subchapter gives an introduction to the subject of signal adaptation and provides the necessary distinction between the PMRS developed here and other methods. The fourth subchapter describes the mathematical background and the implementation of the GrinSH PMRS.

2.1. Modeling of the Gas Engine

Internal combustion engines operate on the following basic principle. The combustion inside a cylinder leads to the expansion of the high-temperature and high-pressure gases; this expansion transmits a force on the piston. This force moves the piston and transforms the chemical energy into mechanical energy. Different mathematical and physical models depending on the purposes of desired application can describe this process [14].
The engine, modeled in this work, was a prototype gas engine (Type: 8V 4000 M55RN) designed and built by the manufacturer MTU (https://www.mtu-solutions.com/eu/de/stories/marine/kommerzielle-schiffe/mtu-gas-engine-forms-electrical-generator-set.html, accessed on 15 May 2021) for use in large ships. Due to the circumstance that no experimentally obtained in-cylinder pressure data of the 8V 4000 M55RN was available at the current stage of the project, it was decided to predict the in-cylinder pressure as a function of the crankshaft angle and from the calculated energy release. The lack of the experimental data of the modeled engine was a strong limiting condition, which negatively affects the expected quality of the results of the model. It was decided to address this risk with the following rationale. In the earlier phase of the project, the purpose of the model is limited to verifying the basic assumptions in the design and operation of the WTE. The model depth based on the calculated pressure curves is sufficient for these applications. To have the opportunity to improve the model at a later stage of the project, a modular structure was applied. The operation process is broken down into several process components interacting with each other. These components are described mathematically in such a way that they can be replaced at any time by an improved mathematical description. Thus, after the experimental results are available, the overall model can be significantly improved. Particular attention is paid to the modeling of the mechanical structure of the engine in the context of the modular design. This mechanical structure ensures the correct interaction of the interchangeable model components.
As the model of the gas engine will be integrated into the WTE model, the description of the mechanical structure and the concrete mathematical implementation of the model are described in the next chapter.

2.2. Modeling of the GrinSH WTE

The basic components of the WTE model developed in this work were the engine model with a speed controller and the generator and frequency converter model.
The entire process of the WTE model operation could be described as a balance between driving power from the engine and extracted power from the generator. This balance could be described as an interaction of the torque increasing processes, torque decreasing processes, and torque oscillations.
The torque-increasing processes were represented by the thermodynamic processes due to the combustion of gas in the cylinders. The torque decreasing processes were represented by the inertia of the crankshaft and of the generator rotor. The torque oscillations were represented by the torque due to the mass oscillation of the crankshaft and due to compression and expansion of the gases in the cylinders [13].
The mechanical structure of the WTE model was built as shown in Figure 3. Using this structure, the entire drivetrain can be described by the differential Equations (1)–(7). These equations describe the spring-mass interaction between all cylinders to connect the torques in the single cylinders with the torques in the flywheels and the generator wheel.
J 0 d ω 0 / dt + D 0 × ( ω 0 ω 1 ) + k 0 × ( θ 0   θ 1 ) = 0
J 1 d ω 1 / dt + D 1 ( ω 1 ω 2 ) + k 1 ( θ 1   θ 2 ) = T 1
J 2 d ω 2 / dt + D 2 ( ω 2 ω 1 ) + k 2 ( θ 2   θ 1 ) = T 2
J 3 d ω 3 / dt + D 3 ( ω 3 ω 2 ) + k 3 ( θ 3   θ 2 ) = T 3
J 4 d ω 4 / dt + D 4 ( ω 4 ω 3 ) + k 4 ( θ 4   θ 3 ) = T 4
JFlyd ω Fly / dt + DG ( ω Fly ω G ) + k ( θ G   θ Fly ) = TFly
JGend ω Gen / dt = TFly TGen
The constants k and D and the value of the inertia of all components used in the differential equations are provided by MTU. The angular speed ω and the angle of rotation θ can be calculated by the WTE model using the geometry data of mechanical components, also provided by MTU.
To solve the differential Equations (1)–(7), the torques of all components must be calculated.
The torque of each cylinder pair is calculated as a superposition of the torques of two cylinders connected in this block, minus the torque, which arises from the spring-mass interaction with other sections of the drivetrain. The torque of each cylinder is calculated using Equation (8). Each cylinder contributes to the entire torque with its unique time delay, which is calculated from the angular speed, according to the firing order.
T C y l i n d e r ( θ ) = T C o m b u s t i o n ( θ ) + T c o m p r / e x h a u s t ( θ ) + T O s c i l l a t i o n ( θ )
In Equation (8), the cylinder torque is calculated as a superposition of the three components, leading to the entire torque. These are the combustion torque, TCombustion(θ), compression and expansion torque, Tcompr/exhaust(θ), and the mass torque due to the oscillation of moving masses in the cylinder, TOscillation(θ).
The contribution of the combustion is calculated using the empiric Equation (9), which was implemented by Isermann et al. [13]:
T C o m b u s t i o n ( θ ) = 8 π T s t a t i c θ max 3 θ 2 e 2 θ /   θ max For   360 °   <   θ   <   540 °
The input parameters for calculating the combustion are θmax, which is the crankshaft angle of the maximal torque in one cycle. In this application, it is set to 370° according to the data provided by MTU. The parameter θ describes the position of the rotational mass during the initialization. The parameter Tstatic is the static torque, given by the average value over one full cycle. This value is calculated by the speed controller from the gas amount due to Equation (10):
T s t a t i c = Hg µ π  
where, H (kJ/kg) is the low calorific value of the fuel, g (kg) is the amount of fuel injected into the cylinder during one cycle, and µ (g/kWh) is the specific gas consumption, which can be taken from a lookup table, derived from the specification given in Figure 4. Figure 4 also provides information about the operating range of the rotational speed, the torque, and the mechanical power of the MTU engine. The left y-axis shows the mechanical torque of the engine in Nm, corresponding to the dashed line in the graph. The right y-axis shows the power of the engine in kW, corresponding to the solid lines in the graph. The x-axis shows the rotational speed of the engine in RPM. Additionally, the lines of constant specific gas consumption are drawn in the map as the thin lines with the values written on them.
The contribution of the oscillation torque is calculated according to Equation (11):
T m a s s = ω ˙   r 2 ( m r o t + m o s c ( s i n φ + λ sin ( 2 φ ) 2 1 λ 2   s i n   2 φ ) ) + m o s c ω 2 r 2   ( s i n φ + λ sin ( 2 φ ) 2 1 λ 2   s i n   2 φ ) ( c o s φ + λ sin ( 2 φ ) 1 λ 2   s i n   2 φ + λ   3 sin 2 ( 2 φ ) 4   ( 1 λ 2   s i n   2 φ ) 3 )
The constants m r o t , m o s c , λ and r are calculated from the geometrical data of the engine.
The variables φ , ω , and ω ˙ are computed in the simulation for each cylinder, based on the firing order and the rotational speed of the crankshaft.
The contribution of the compression and expansion in the cylinder is calculated according to Equation (12):
T C o m p r / E x p = π d 2 4 ( p c o m p r . e x p r ( φ ) p s o u r r a n d i n g )   r   ( s i n φ + λ   sin ( 2 φ ) 2 1 λ 2   s i n   2 φ )
where p c o m p r . e x p r ( φ ) is the compression-expansion pressure, which can be calculated from the geometry of cylinder and from amount of inserted fuel.
The crankshaft of the engine is loaded with a squirrel cage induction generator, which is connected to the grid via the frequency converter. Hence, the generator can run with variable speeds in a speed range, as shown in Figure 4. The generator and frequency converter model is implemented as a PT1 (first-order low pass filter) module with the gain factor set to 0.5 and the time constant set to 0.001 s.
The speed controller is built as a PI (proportional-integral) controller managing the gas insert value of the gas according to the operating point of the engine.
The controller is adjusted for different operating points. Around this operating point, the behavior of the controlled model can be considered linear.
The MTU provided the test results, generated with the confidential MTU model of the engine. This data is used here to tune the controller for the angular speed of 1500 RPM and for three load steps, which are represented by the red line in the subplot (b) of Figure 5.
The adjustment of the GrinSH speed controller was achieved by a stepwise approach to the results of the MTU Model. Figure 5 shows the adaptation of the PI controller of the GrinSH WTE model speed controller to the results of the MTU brake power test. The subplot (a) shows the reference result of MTU (blue line) compared with the GrinSH WTE model result (red line). Subplot (b) of Figure 5 shows the load step input used for both models in order to generate the response seen in the upper subplot. The adaptation was carried out for three power steps. The results of the adaptation are analyzed in the following for each power step.
Power step from 9 kW to 250 kW at 10 s. The speed control with the GrinSH model started with a 0.4 s delay. The magnitude of the speed change was the same for both models. The falling gradient of the speed signal was the same for both models. The rising gradient of the GrinSH model, beginning in the inflection point at 15 s was flatter than the one of the MTU Model. Final adjustment of the rotational speed to the reference value of 1500 RPM took place for the MTU Model after 12.1 s and for the GrinSH Model after 14.2 s. This delay was mainly due to the flatter rising gradient of the GrinSH model.
Power step from 250 kW to 490 kW by 30 s. The speed control with the GrinSH model started with a 0.5 s delay. The magnitude of the speed change was the same for both models. The falling gradient of the speed signal was flatter than in the MTU Model. Setting the speed to the reference value of 1500 RPM took place in the MTU Model 10.2 s after the beginning of the control process. The entire control process with the GrinSH Model lasted 14 s. Here, the reference speed was overregulated up to a maximum of 0.012%.
Power step from 290 kW to 670 kW by 50 s. The speed control with the GrinSH model started with a 1.8 s delay. The magnitude of the speed change was the same for both models. The falling gradient of the speed signal was flatter than by MTU Model. Setting the speed to the reference value of 1500 RPM took place in the MTU Model approximately 7 s after the beginning of the control process. The entire control process with the GrinSH Model lasted 14 s. The result of the MTU simulation was considered insufficient by the MTU itself because the speed drop and recovery time exceeded the operating point.
The results show that the GrinSH model represented the MTU model of the gas engine only in proximity. The adjustment of the controller allowed the GrinSH WTE model to achieve the same variation of rotational speed as at the reference model of the MTU in terms of magnitude and slope of the reference rotational speed. However, the time delay of up to 1.8 s for the worst reproduced operating points occurred, and the duration of the transients was up to 50% longer for the GrinSH model for one operating point. However, it must be considered that the worst results of the GrinSH Model simulation corresponded to the operating point where the validation model had also not achieved a steady operating point.
In the context of this work, the GrinSH gas engine model will be used to find out if control of the gas motor with the aid of a PMRS module represents the desired behavior. This means that the focus was the ability of a PMRS module to compensate for the temporal and magnificent disparity of the rotational speed. The GrinSh model achieved the same magnitude of speed reduction with the same gradient as the MTU Model. These are two very important criteria for the planned application. The GrinSh Model shows a more inert control behavior compared to the MTU model; however, the control time remains in the acceptable range for the planned application. The temporal delay and the longer signal setting process are additional factors that the PMRS module has to compensate for.
For the better adjustment of the GrinSH model, the measurement results of the real engine tests are necessary.

2.3. Preventive Signal Adaptation

It is a common case that the control system, represented by a real or modeled process, needs to be controlled in the way that it reproduces a certain behavior.
In the case of simple control systems, which can be considered linear, the correct parameterization of the PID controller is often sufficient to achieve this goal [15].
However, often it is the case that the system dynamics of the processes to be controlled are so complex that the settings of the PID controller are no longer sufficient to achieve the desired behavior of the system. A compensator is often used here.
There are many different types of compensators. In most cases, the compensators adjust the phase shift of the systems to be controlled. These compensators are based on certain transfer functions, which advance or retard the phase, i.e., they are lead or lag compensators, respectively. However, there are also other applications besides phase control, which the compensator can work with, for example, the correction of offset and gain errors.
Another way to reach the goal of reproducibility of desired behavior by the given system is the implementation of “model predictive control” (MPC) [16].
In general, the MPC application is based on advanced controller hardware and requires high computational effort. To keep them applicable for real time applications, high computing power is required [17].
For specific applications such as the control of the engine within the operating scenario given by a WT, solutions with less computational afford than used for MPC applications are required. Looking for such solutions, the authors of this work decided to use inversed transfer function of the model for pre-calculation of the control input signal. This approach can be used in applications, where the main objective is set to the definition of the signal, which leads to the predefined behavior of the controlled model. The challenge of this application is to find the transfer function, which describes the modeled process and the inversion of it [18].
In this work, the inversion of the transfer function, which represents the model of the WTE was used. Further, the output of the reference WT was preprocessed using the inverted transfer function. Finally, this preprocessed signal is used as an input for the WTE simulation. The method, as well as the mathematical background, are discussed in detail in the following section.

2.4. Inversion of the Input Signal

The aim of the method described below is to retrieve the reference signal of the WT model as precisely as possible by means of the WTE model. The crucial parameters to be emulated are the power and the rotational speed on the generator of the WT. The frequency converter sets the power of the WTE generator. This is implemented with almost no time lag and without mechanical influences on the overall system. The rotational speed of the generator results from the dynamics of the engine. The MTU gas engine is controlled via rotational speed only. For this reason, only the set point of the speed controller of the WTE model was modified by the method described below.
The idea of the method is to find the transfer function G, which represents the model, and then to use its inverse function G*, on the input signal u, coming from the reference WT model. This mathematical operation creates a new input signal u*, which, being used as the input to the WTE model, generates the output signal equal to the signal of the reference WT model. Reversing the order of the transfer function and the inverse transfer function would not change the result [19] (see Figure 6).
The mathematical background of this method is presented by Equations (13) and (14), which show that if a transfer function G* is an inverse G, the overall input and output of a serial connection of both systems remain identical.
G ( s ) = b m s m + b m 1 s m 1 + + b 1 s + b 0 s n + a n 1 s n 1 + + a 1 s + a 0 = z e r o s p o l e s
G ( s ) * = 1 G ( s ) = p o l e s ( G ) z e r o s ( G )
However, to apply these principles to the GrinSH application, the WTE model needs to be expressed as a transfer function, which is not possible because of the non-linearity of the WTE model. The approximation of the WTE model by PT1 and PT2 transfer functions is a compromise, which allows the use of the principle shown in Figure 6 by replacing G* with inverted PT1 and PT2 followed by the WTE model itself instead of G (Figure 7).
The PT1 and PT2 transfer functions used to approximate the WTE model are the following:
PT 1 = 1 1 s + 0.9
PT 2 = 1 1 s 2 + 0.2 s + 0.5
Figure 8 shows the PT1 and the PT2 functions plotted together with the WTE model response to a stepwise increase in the angular speed (blue line).
For a better understanding of the results given in Figure 8, a block diagram was added in the left upper corner of Figure 8. The colors chosen in the block diagrams correspond to the colors of the simulation results shown in Figure 8. The blue curve gives the reference signal for the simulation (step function). The red signal is the output of the WTE simulation without the use of any PMRS module. The yellow line is the result of the processing of the step function with the PT1 (15) transfer function. The purple curve is the result of processing the step function with the PT2 (16) function.
The inversion of PT1 and PT2 functions is performed using the approach introduced and tested by Joerg J. Buchholz and Wolfgang v. Gruenhagen [18] as a proper inversion of transfer functions of dynamic systems. This method solves the problem that the Simulink Matlab is not able to simulate the inversion of strictly proper transfer functions. The strictly proper transfer function is given if the degree of its numerator is smaller than the degree of its denominator, which applies to the transfer function (15) and (16) used in this work.
The method of proper inversion is based on the idea that the transfer function, which is to be inverted, is used in the feedback branch of a control loop with a very high controller gain K. The transfer function of the inverter is then given by Equation (17).
G * ( s ) = K 1 + K * G ( s ) = K 1 + K * z e r o s p o l e s = K * p o l e s p o l e s + K * z e r o s  
This application can be implemented in the Simulink environment as a block diagram, shown in Figure 9.
To test the method introduced above, a step function was processed with a PT2 inverted function and with the PT2 function connected in series. The subplot (a) shows the input u according to the nomenclature introduced in Figure 9. The subplot (b) shows the u* and the subplot (c) shows the y*. The Gain Factor K was set to 150,000.
As can be seen from Figure 10 that the proper inversion approach managed to generate the inverted function from the proper transfer function (16), which can then be used to reproduce the reference signal y* = u in good approximation.
Due to the results shown in Figure 10, the method introduced here and tested on the step function using the PT2 inversed transfer function followed by the application of the transfer function lead to a sufficient result.
The method illustrated in Figure 7 was applied to the real scenario generated by the WT model and tested on the WTE model with a PMRS module, consisting of a PT1 or PT2 inverse function, connected in series before the WTE model. The results and discussion of this application will be presented in the next chapter.

3. Results

As described in the introduction, there are two possible scenarios, which had to be investigated separately.
Scenario No. 1 is when the rotational speed at the rotor changes as a result of a wind profile. The power output at the generator changes as a result of this rotational speed variation.
Scenario No. 2. is when a power change is specified on the WT generator, and the rotor speed is set as a result of this specification.
For investigation of the first scenario, a so-called Mexican hat event was chosen. This event became its name because of the shape of the wind speed variation, represented in the subplot (a) of Figure 11. The variation of the rotational speed on the generator of the WT is shown in subplot (b), and the generated electrical power on the generator of the WT is shown in the subplot (c) of Figure 11.
Figure 12 shows the result of the application of different PMRS solutions on the time series created with the WT model. The time series given in the subplot (b) and (c) of Figure 11 act as the input signal for the WTE and, at the same time, as the validation signal according to the block diagram shown in Figure 12. The power and generator speed time series generated with the WT model describe the response of the WT to the Mexican hat event. As a result of this wind condition, the WT controled the rotational speed, as shown by the blue line in Figure 12.
In order to better interpret the consequences of the application of PMRS to the emulation, the following pairs of time series should be separated:
  • The blue and red graph representing the reference signal from the WT and the output signal of the WTE model with no PMRS applied;
  • The blue and dashed magenta graph from the subplot (a), representing the reference signal from the WT and the output signal of the WTE model with PMRS based on inverted PT1, was applied;
  • The blue and solid magenta graph from the subplot (b) representing the reference signal from the WT and the output signal of the WTE model with PMRS based on inverted PT2 applied.
As can be seen from the analysis of the first pair, the WTE model without the PMRS module shows the ability to reproduce the shape of the reference signal but with a time delay of approximately two seconds. In addition, the magnitude and the phase are significantly higher than for the reference signal.
The test run with PT1 inversed input, represented by the second pair, solved the problem of the time delay and also showed the ability of the method to resolve the shape of the angular speed variation of the WT but failed to reproduce the amplitude of the reference signal.
The simulation performed with the PT2 inverted signal, the third pair of time series, reproduced the shape of the reference signal with a high degree of consistency in terms of phase, time delay, and magnitude of variation.
The power simulation the generator is shown in Figure 13.
In Figure 13, the reference signal is given by the blue line. The results of WTE simulations deliver the same result for the power and fall together in the graphical representation. As can be seen from Figure 13, the power simulation reproduced the reference power signal successfully. The results shown in Figure 12 and Figure 13 demonstrate the ability of the intended method of preventive signal adaptation to course a significant improvement of the simulation result by means of the PMRS, built by the PT2 inversion, in the case of scenario No. 1.
For investigation of the second scenario type, a scenario investigated at WETI by Gloe et al. [20] was chosen. This scenario describes the behavior of the WT in case of a sudden power reduction on the generator. This scenario is shown in Figure 14.
Figure 15 shows the case where both the power signal and the speed signal were provided by the WT model. The line colors of the time series used in the simulation correspond to the colors of the signals shown in the block diagrams plotted in Figure 15.
As can be seen from Figure 15, the phase and magnitude of rotational speed are emulated in the best way if the PMRS based on the inversed PT2 is applied. However, the magnitude of speed variation resulting from the power reduction on the generator between 85 and 100 s was up to 1.5 times higher than the magnitude of the reference speed signal (blue line) for all WTE simulations.
The simulation results, represented in Figure 16, illustrate the reaction of the WTE to a power reduction on the generator combined with a constant input to the speed controller (blue line in subplot (a) Figure 16). The simulation result, represented by the red line in the subplot (a) of Figure 16, must be compared with the result of the WT emulation (yellow line).
As can be seen from Figure 16, the phase and time delay of rotational speed as well as the electrical power on the generator was reproduced sufficiently by the WTE.

4. Discussion

Considering the results and the research question, an analysis of the method was carried out as follows.
For scenario No. 1, a significant improvement in the emulation results was achieved as a result of the use of PMRS. This result demonstrates the effectiveness of the use of a PMRS based on the inversed transfer functions. Nevertheless, the method has to be investigated further. In order to be able to implement hardware in the loop application based on this method, the stability of the control with the PMRS compared to the control of the gas engine without the PMRS must be examined. The behavior of the method at further operating points as well as the control at the transition between distant operating points must be examined.
Another advantage of this method, which was tested during the implementation, was the low computing power that is required when calculating the modeled signal. This fact makes the method particularly attractive for applications where computing power is a limiting factor. This fact also suggests that a real-time application can be developed and implemented on the basis of this method.
The application of the method to scenario No. 2 is limited to the investigation of the ability of the gas engine to emulate the rotational speed of the WT generator using only the generator power of the reference WT as a set point parameter. The input of rotational speed of the reference WT did not contribute to the control process in the case of scenario No. 2. The use of reference rotational speed would lead to the result, where the rotational speed of the WTE generator will be emulated too high (see Figure 15). This occurred due to the processes described in the Introduction chapter (see description of Figure 2). The results of the emulation, based only on the generator power as a reference signal, showed that the magnitude and phase of the rotational speed signal were successfully emulated by the WTE model. However, the specific course and small-scale variation of the reference rotational speed signal were not reproduced by the WTE model. For this reason, information on the aerodynamic behavior of the emulated WT is missing in applications based on scenario No. 2. These results show that the engine model used in the WTE model is capable of simulating the consequences of the power variation on the generator of the WT in a proper way but without being able to reproduce the small-scale changes in the rotational speed of the WT generator. This fact needs to be considered when planning complex scenarios in which both types of scenarios occur.

5. Conclusions

The results discussed in previous sections show the capability of the GrinSH WTE model to emulate a WT under consideration of limitations discussed in the previous chapter. As the WTE is modeled considering the parameters of the real components, this work also approves the theoretical capability of a real WTE, driven by the gas engine, to reproduce the behavior of the WT.
The application of the PMRS module developed in this work leads to a significant improvement of the ability of the WTE model to reproduce the rotational speed of the reference WT, which confirms the hypothesis proposed in the Introduction.
The method delivers sufficiently good results and can be used to address the further research of the grid integration of the WTs. It also allows investigating the dynamic of WT in the context of grid integration and examines specific questions as for example, the use of the rotor inertia to support the grid with additional power during transient events in the grid. For this task, the complex of topics worked out in the previous research work of the WETI department [21,22] shall be used.
However, the investigations presented in this paper already reveal that the risk of excessive speed excursions needs to be considered when planning test runs with the real WTE. In order to enable the simulation of scenarios where both scenario types can occur, an additional tool shall be developed. This tool must keep the set point of the rotational speed constant for the period, where scenario No. 2 dominates the simulation. Alternatively, further development of the PMRS module can be performed in order to enable the emulation of the small-scale variations of the rotational speed of the WT for scenarios like scenario No. 2.
The method was investigated for a limited range of operating points. In order to test the method for the whole range of possible operating points, measurements on the real WTE need to be performed in the future. Hence, the real WT emulator shall be applied for the WT of different sizes in the range of 240 kW to 5000 kW; the method needs to be tested for different WT Models introduced in Rohr et al. [12].
The model of the gas engine developed for the GrinSH WTE model also provides the possibility of creating a satisfactory mathematical representation of the combustion engines based on limited parameter information. This model could also be easily adopted and improved without changing the overall structure. The implementation of the WTE model and PMRS module was performed using Matlab software. This software is highly compatible with other software packages and is routinely used by scientific and technical institutions. As a result, this method can easily be reproduced and further developed by third parties if necessary.
The entire approach provides the possibility to investigate and adjust the interaction between the different control and hardware components of the entire WTE, as well as to make a statement about the feasibility of the method in an early stage of the WTE development.

Author Contributions

A.R.: conceptualization, methodology, development, and implementation of the WTE model with all its sub-models, conducting the simulations, visualization, writing—Original draft preparation; C.J.: conceived the initial concept of the WTE, development of the WT model, discussions and comments on the development of the WTE model, writing—Additions to the original draft, reviewing, and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research is funded by the Bundesministerium für Bildung und Forschung und der gemeinsamen Wissenschaftskonferenz.
Energies 14 02898 i001

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors acknowledge the valuable discussions with the colleagues at the WETI.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Lorentzen, T.; Rasmussen, L.S. Realistic full scale indoor testing of wind turbine nacelles. In Proceedings of the EWEA Offshore, Copenhagen, Denmark, 10–12 March 2015; Available online: http://www.ewea.org/offshore2015/conference/allposters/PO040c.pdf (accessed on 20 March 2021).
  2. Giguere, P.; Wagner, J. Wind Turbine Drivetrain Test Bench Capability to Replicate Design Loads. In Proceedings of the ASME 2017 11th International Conference on Energy Sustainability Collocated with the ASME 2017 Power Conference Joint with ICOPE-17, the ASME 2017 15th International Conference on Fuel Cell Science, Engineering and Technology, and the ASME 2017 Nuclear Forum, Charlotte, NC, USA, 26–30 June 2017.
  3. Stammler, M. Accelerated Testing of Rotor Blade Bearings: Test Bench Proves Successful in Regular Operation; Fraunhofer IWES: 19 January 2021. Available online: https://www.energie.fraunhofer.de/en/press-media/press-release/press-realeases-2021/PI-210113-fraunhofer-iwes-accelerated-ttesting-of-rotor-blade-bearings.html (accessed on 12 February 2021).
  4. Tielens, P.; Van Hertem, D. The relevance of inertia in power systems. Renew. Sustain. Energy Rev. 2016, 55, 999–1009. [Google Scholar] [CrossRef]
  5. Jauch, C.; Gloe, A.; Hippel, S.; Thiesen, H. Increased Wind Energy Yield and Grid Utilisation with Continuous Feed-In Management. Energies 2017, 10, 870. [Google Scholar] [CrossRef] [Green Version]
  6. Jauch, C.; Gloe, A. Simultaneous Inertia Contribution and Optimal Grid Utilization with Wind Turbines. Energies 2019, 12, 3013. [Google Scholar] [CrossRef] [Green Version]
  7. Attyaa, A.B.; Dominguez-Garciab, J.L.; Anaya-Laraa, O. A review on frequency support provision by wind power plants: Current and future challenges. Renew. Sustain. Energy Rev. 2018, 81, 2071–2087. [Google Scholar] [CrossRef] [Green Version]
  8. Gevorgian, V.; Link, H.; McDade, M.; Mander, A.; Fox, J.C.; Rigas, N. First International Workshop on Grid Simulator Testing of Wind Turbine Drivetrains. Workshop Proceedings; Office of Scientific and Technical Information (OSTI): Oak Ridge, TN, USA, 2013. [Google Scholar]
  9. Schkoda, R.F.; Fox, C. Integration of mechanical and electrical hardware for testing full scale wind turbine nacelles. In Proceedings of the 2014 Clemson University Power Systems Conference, Clemson, SC, USA, 11–14 March 2014; pp. 1–8. [Google Scholar]
  10. Gloe, A.; Jauch, C. Simulation Model Design and Validation of a Gearless Wind Turbine; Technical Report; WETI Fachhochschule Flensburg: Flensburg, Germany, 2016. [Google Scholar]
  11. Gloe, A.; Jauch, C.; Craciun, B.; Winkelmann, J. Continuous provision of synthetic inertia with wind turbines: Implications for the wind turbine and for the grid. IET Renew. Power Gener. 2019, 13, 668–675. [Google Scholar] [CrossRef]
  12. Rohr, A.; Jauch, C. Large Scale Test Bench for Emulating Grid Connected Wind Turbines of Different Sizes. In Proceedings of the 2019 IEEE 13th International Conference on Compatibility, Power Electronics and Power Engineering (CPE-POWERENG), Sonderborg, Denmark, 23–25 April 2019; pp. 1–6. [Google Scholar] [CrossRef]
  13. Isermann, R.; Schanit, J.; Sinsel, S. Hardware-in-the-loop simulation for the design and test of engine-control systems. Control Eng. Pract. 1999, 7, 643–653. [Google Scholar] [CrossRef]
  14. Thyagarajan, S. CI Engine Modeling Techniques. Trends Mech. Eng. Technol. 2013, 3, 7–19, ISSN: 2231-1793. [Google Scholar]
  15. Kulakowski, B.T.; Gardner, J.F.; Shearer, J.L. Dynamic Modeling and Control of Engineering Systems; Cambridge University Press: New York, NY, USA, 2007. [Google Scholar]
  16. Camacho, E.F.; Bordons, C. Introduction to Model Based Predictive Control. In Programmieren für Ingenieure und Naturwissenschaftler; Springer Science and Business Media LLC: Berlin/Heidelberg, Germany, 1999; pp. 1–11. [Google Scholar]
  17. Al-Gherwi, W.; Budman, H.; Elkamel, A. A robust distributed model predictive control based on a dual-mode approach. Comput. Chem. Eng. 2013, 50, 130–138. [Google Scholar] [CrossRef]
  18. Joerg, J.; Buchholz-Van Gruenhagen, W. Inversion Impossible? Technical Report; GRIN Verlag: München, Germany, 2008. [Google Scholar]
  19. Nise, N.S. Control Systems Engineering, 3rd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2000; ISBN 0-471-36601-3. [Google Scholar]
  20. Gloe, A.; Jauch, C.; Räther, T. Grid Support with Wind Turbines: The Case of the 2019 Blackout in Flensburg. Energies 2021, 14, 1697. [Google Scholar] [CrossRef]
  21. Alhrshy, L.; Jauch, C.; Kloft, P. Development of a Flexible Lightweight Hydraulic-Pneumatic Flywheel System for Wind Turbine Rotors. Fluids 2020, 5, 162. [Google Scholar] [CrossRef]
  22. Jauch, C.; Islam, S.; Sorensen, P.; Bak-Jensen, B. Design of a wind turbine pitch angle controller for power system stabilization. Renew. Energy 2007, 32, 2334–2349. [Google Scholar] [CrossRef]
Figure 1. Comparison of the real testing facility with a SIL simulation.
Figure 1. Comparison of the real testing facility with a SIL simulation.
Energies 14 02898 g001
Figure 2. Block diagram of the SIL setup implemented in the GrinSH WTE.
Figure 2. Block diagram of the SIL setup implemented in the GrinSH WTE.
Energies 14 02898 g002
Figure 3. Seven-masses representation of the drivetrain of the WTE model.
Figure 3. Seven-masses representation of the drivetrain of the WTE model.
Energies 14 02898 g003
Figure 4. Operating conditions map of the MTU gas engine (engine type 8V 4000 M55RN).
Figure 4. Operating conditions map of the MTU gas engine (engine type 8V 4000 M55RN).
Energies 14 02898 g004
Figure 5. Adaptation of the PI controller of the GrinSH WTE model speed controller to the results of the MTU brake power test. Subplot (a) shows the time series of the rotational speed. Subplot (b) shows time series of the brake power.
Figure 5. Adaptation of the PI controller of the GrinSH WTE model speed controller to the results of the MTU brake power test. Subplot (a) shows the time series of the rotational speed. Subplot (b) shows time series of the brake power.
Energies 14 02898 g005
Figure 6. Inversion scheme, illustrating the invariance of result to reversed order of operations.
Figure 6. Inversion scheme, illustrating the invariance of result to reversed order of operations.
Energies 14 02898 g006
Figure 7. Inversion scheme adopted to the GrinSH WTE model.
Figure 7. Inversion scheme adopted to the GrinSH WTE model.
Energies 14 02898 g007
Figure 8. PT1 and PT2 transfer functions, used to reproduce the WTE model, plotted together with the WTE model response to a stepwise increase in the angular speed.
Figure 8. PT1 and PT2 transfer functions, used to reproduce the WTE model, plotted together with the WTE model response to a stepwise increase in the angular speed.
Energies 14 02898 g008
Figure 9. Block diagram of the proper inversion realized as a control loop with a very high controller gain K.
Figure 9. Block diagram of the proper inversion realized as a control loop with a very high controller gain K.
Energies 14 02898 g009
Figure 10. Application of the proper inversion to a step function. The subplots (ac) show the time series of the rotational speed of the step function, the rotational speed after application of PT2 function to the step function and after application of inversed transfer fuction to the result shown in (b), respectively.
Figure 10. Application of the proper inversion to a step function. The subplots (ac) show the time series of the rotational speed of the step function, the rotational speed after application of PT2 function to the step function and after application of inversed transfer fuction to the result shown in (b), respectively.
Energies 14 02898 g010
Figure 11. Mexican hat event scenario used for the test of the GrinSH WTE. The subplots (ac) show the time series for the wind speed, the rotational speed and the electrical power, respectively.
Figure 11. Mexican hat event scenario used for the test of the GrinSH WTE. The subplots (ac) show the time series for the wind speed, the rotational speed and the electrical power, respectively.
Energies 14 02898 g011
Figure 12. Results of the rotational speed simulation of the Mexican hat event scenario with PMRS used with the WTE model. The subplots (a,b) show the time series for the rotational speed for different testruns.
Figure 12. Results of the rotational speed simulation of the Mexican hat event scenario with PMRS used with the WTE model. The subplots (a,b) show the time series for the rotational speed for different testruns.
Energies 14 02898 g012
Figure 13. Results of the power simulation of the Mexican hat event scenario with PMRS used with the WTE model.
Figure 13. Results of the power simulation of the Mexican hat event scenario with PMRS used with the WTE model.
Energies 14 02898 g013
Figure 14. Generator power reduction event scenario used for the test of the GrinSH WTE. The subplot (a) shows the time series for the power. The subplot (b) shows the time series for the rotational speed.
Figure 14. Generator power reduction event scenario used for the test of the GrinSH WTE. The subplot (a) shows the time series for the power. The subplot (b) shows the time series for the rotational speed.
Energies 14 02898 g014
Figure 15. Results of power reduction scenario performed with rotational speed input delivered by the WT model. The subplot (a) shows the time series for the power. The subplot (b) shows the time series for the rotational speed.
Figure 15. Results of power reduction scenario performed with rotational speed input delivered by the WT model. The subplot (a) shows the time series for the power. The subplot (b) shows the time series for the rotational speed.
Energies 14 02898 g015
Figure 16. Results of power reduction scenario performed with rotational speed input kept constant. The subplot (a) shows the time series of the rotational speed. The subplot (b) shows the time series for the power.
Figure 16. Results of power reduction scenario performed with rotational speed input kept constant. The subplot (a) shows the time series of the rotational speed. The subplot (b) shows the time series for the power.
Energies 14 02898 g016
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rohr, A.; Jauch, C. Software-in-the-Loop Simulation of a Gas-Engine for the Design and Testing of a Wind Turbine Emulator. Energies 2021, 14, 2898. https://doi.org/10.3390/en14102898

AMA Style

Rohr A, Jauch C. Software-in-the-Loop Simulation of a Gas-Engine for the Design and Testing of a Wind Turbine Emulator. Energies. 2021; 14(10):2898. https://doi.org/10.3390/en14102898

Chicago/Turabian Style

Rohr, Alexander, and Clemens Jauch. 2021. "Software-in-the-Loop Simulation of a Gas-Engine for the Design and Testing of a Wind Turbine Emulator" Energies 14, no. 10: 2898. https://doi.org/10.3390/en14102898

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop