Abstract

A BP (backpropagation) neural network method is employed to solve the problems existing in the synthetic characteristic curve processing of hydroturbine at present that most studies are only concerned with data in the high efficiency and large guide vane opening area, which can hardly meet the research requirements of transition process especially in large fluctuation situation. The principle of the proposed method is to convert the nonlinear characteristics of turbine to torque and flow characteristics, which can be used for real-time simulation directly based on neural network. Results show that obtained sample data can be extended successfully to cover working areas wider under different operation conditions. Another major contribution of this paper is the resampling technique proposed in the paper to overcome the limitation to sample period simulation. In addition, a detailed analysis for improvements of iteration convergence of the pressure loop is proposed, leading to a better iterative convergence during the head pressure calculation. Actual applications verify that methods proposed in this paper have better simulation results which are closer to the field and provide a new perspective for hydroturbine synthetic characteristic curve fitting and modeling.

1. Introduction

Many hydropower plants have been built worldwide to harness the energy of falling or running water for electricity purpose [1, 2]. A lot of fruitful and meaningful works of hydropower turbine in advanced control [36], parameter identification [79], dynamics analysis [10, 11], and fault diagnosis [12] have been done. In addition, obtaining of flow and torque characteristics from synthetic characteristic curve of a specific Francis turbine is the key to high-precision nonlinear simulation and stability analysis [13], which could serve to maintain safe, stable, and economical operation of hydropower generating unit. Thus, it is extremely important for hydroturbine governing system nonlinear modeling and control [4, 8, 11, 14] to process the synthetic characteristic curve in a reasonable way. However, synthetic characteristic curves that provided by manufacturers nowadays are only in the high efficiency and large guide vane opening area in China, which is far from meeting the research requirements of transition process, especially in large fluctuations. So it is necessary to extend and complement the synthetic characteristic curves for further research. In view of this, many scholars have carried out a lot of studies on this problem. For example, a radial basis function neural network method was used in [15] for data processing of hydroturbine synthetic characteristic curve; the discrete sample data obtained from synthetic characteristic curve were fitted effectively. Moreover, data in unknown region could be predicted successfully by combining the boundary constraint conditions. However, the radial basis function neural network can be affected by the dispersion constant easily, and there is no specific method for the selection of the dispersion constant, which can only be chosen tentatively in [13]. Discontinuity of derivative in interpolation method for hydroturbine modeling was solved to improve the iterative convergence of head pressure calculation with BP neural network in [16]; irregular discrete sample data were processed quite well with the Delaunay triangulation algorithm in [17]. But none of the works stated above [1317] can solve the problem of acquiring characteristic data in the nonhigh efficient areas. Besides, literature review shows that many other methods, such as the artificial experience, approximate linear interpolation, spline interpolation, table interpolation, and shape function interpolation, have also been applied to the characteristics processing of hydroturbine, but all these methods have their own limitations. Motivated by this, a special method based on BP neural network is proposed in the paper for Francis turbine modeling and real-time simulation, the proposed method consists of various steps as follows: extract multisets of sample data, which can comprehensively represent the characteristics of the turbine and meet the requirements of the transition process, then normalize and store these sample data in the text file in standard form; extend the characteristic curve to unknown low efficiency area, such as small guide vane opening and small unit speed area, based on the acquired sample data and boundary constraint; train the extended sample data with neural network and save the obtained weight and threshold value in forms of text for calling. In addition, a detailed analysis for improvements of traditional simulation algorithm is given: the discrete systems resampling technique is proposed to overcome the limitation of sampling period contradiction existing between diversion system and hydroturbine governing system; a different mathematical method based on the neural network surface is illustrated to improve the iterative convergence of head pressure in simulation.

The rest of the paper is outlined as follows: in Section 2, synthetic characteristic curve processing method of Francis turbine and an example application are presented in detail. Resampling technology based on characteristic line is constructed in Section 3. Investigations on improving convergence of head pressure loop are shown in Section 4. Section 5 illustrates the simulation results along with discussions and remark words. Conclusions are provided in Section 6.

2. Synthetic Characteristic Curve Processing Method of Francis Turbine

Obtaining the description that expresses the relationship between flow and torque characteristics through model synthetic characteristic curve is the most common method for hydroturbine nonlinear modeling. The main idea is to store the processed discrete sample data, which comes from model synthetic characteristic curve, in a certain way (array of expressing surfaces, neural network, etc.) in advance; then flow and torque characteristics can be calculated by interpolation or neural network method according to the change of operating condition.

It is no longer required to establish the specific expression function when extending and fitting sample data through neural network. Besides, sample data in unknown region can be predicted to improve the working efficiency and data processing accuracy of synthetic characteristic curve by combining with the boundary constraints.

A general method for flow and torque characterization with BP neural network is discussed here. Firstly, access and extension steps of sample data are given from the perspective of the model synthetic characteristic curve and runaway characteristics curve; then forms and structures of neural network are determined based on the analysis and comparison; in the end, the neural network is trained offline with the Matlab neural network toolbox for real-time simulation modeling.

2.1. Reading, Processing, and Extension of Sample Data

Access to sample data refers to the obtaining process of flow, efficiency, and runaway characteristics from model synthetic and runaway characteristics curve. Sample data processing is the calculation for torque characteristics through obtained flow and efficiency characteristics sample data. In most cases, the model synthetic characteristic curve provided is only within the high efficiency area, which is far from enough for nonlinear real-time modeling and simulation. Thus, prior knowledge and known information method to expand the sample data, namely extension, is used in the paper. Flow chart of data process steps from to is given in Figure 1.

(a) Reading Flow Characteristics. The flow characteristic is obtained by reading a certain number of data points at each equal opening degree line on model synthetic characteristic curve:where , , are vane opening, unit speed, and unit flow, respectively. Quantity and location of the data points are not defined strictly and can be determined according to the accuracy requirement of the object. More points and time are required to train the neural network when a higher accuracy is required. All of these data points in (1) can be used as sample data for flow characteristics.

(b) Reading Efficiency Characteristics. Conventional method can be used directly to obtain torque characteristics, which can also be carried out by reading the efficiency data point. Considering that the interspacing between different efficiency lines is generally large, which is conducive to data reading and reflect torque characteristics more comprehensively, the second method is employed in this study. A certain number of data points are read on each equal efficiency line from model synthetic characteristic curve:

(c) Reading Runaway Characteristics. Read a certain number of data points on the runaway curve:

Value of is selected to be identical to that of in flow characteristics sample data for convenience.

(d) Processing for Sample Data of Torque Characteristic. The numerical method can be got with proper fitting methods such as polynomial based higher order surface fitting or neural network fitting, through the obtained efficiency characteristics sample data:

Calculating by , of flow characteristics sample data and then unit torque can be carried out by the following formula:where , , and are the unit torque (kN·m), unit flow (m3/s), unit speed (r/min) and efficiency, respectively. Then , , and ,   constitute the sample data of torque characteristics.

(e) Extension of the Flow Characteristic Sample. It is worth pointing out that flow characteristics with runaway speed are contained in turbine model runaway characteristic itself. Therefore, all the sample data in (3) can be added to the flow characteristics sample data (1). In addition, when the guide vane opening , and turbine flow will be zero regardless of speed, which helps to construct boundary conditions as follows:where are points that distributed arbitrarily between zero and the maximum unit speed. Finally, the new flow sample data can be obtained by incorporating sample data (6) into the sample (1):

(f) Extension of the Torque Characteristic Sample. Boundary conditions of torque characteristics of hydroturbine at zero opening are firstly added for extension. In this case, relationship between torque and speed is given as follows:

Here, is normal numbers given in advance. Torque sample data are constructed at zero opening by following equation:where are points distributed arbitrarily between zero unit speed and the maximum possible.

What is more, when the turbine operates in the runaway condition, output torque is zero, so and ,   corresponding to , can be used as sample data of torque characteristic directly. Incorporating this sample data and (9) into the torque characteristic sample calculated by (5), then the new extended torque sample , and ,   can be obtained.

2.2. Selection of Neural Network

In spite of the sample data extension, neither the flow nor the torque characteristics sample data could cover all possible operating conditions of turbines. It is natural to solve the problem by training the flow and torque neural networks with obtained sample data above, then estimating the flow and torque characteristics in these unknown regions by a smooth extension with well-trained neural networks.

Using artificial neural network to realize the nonlinear characteristic of hydroturbine has the advantages of less data quantity, simpler calculation, controllable precision, and continuous derivative. Considering that this extension is polynomial fitting actually, available networks are mainly the BP neural network and the RBF neural network. Compared with RBF neural network, BP neural network has the following advantages.

Structure of BP neural network is much simpler with the same approximation accuracy. In addition, the number of hidden layer neurons of RBF network is much higher than that of BP network when the sample data is increased, which makes the RBF network more complex in structure, leading to higher computational demand;

There is a high degree of self-learning and adaptive ability and can extract the data association from input and output data automatically; moreover, learning content is stored in the weights of network adaptively.

BP neural network will not have great impact on the global training results after suffering damage to the local or partial neurons. The system has a certain fault tolerance and can work normally when local damage happens.

The suitable neural network structure is selected for sample data training by comparing the number of neurons, time consuming of network training, amount of computation, training accuracy, and the controllability of training process.

2.3. BP Neural Network Training

The sample data are divided into training and validation data set randomly: 80% of the data are used to train the neural network, and the remaining 20% are used to verify the effect of neural network training. A loop control is set up in training process, so that the sample can be trained to find the optimal training results and final output is saved in forms of text.

2.4. Application Examples

A Francis turbine HLA339-LJ-450 with the rated head 176 m, rated power 225 MW, rated speed 200 r/min, and rated flow 142.5 m3/s, respectively, is used as an example in this study.

There are 716 sets of sample data obtained from synthetic characteristic curve in total, including 219 sets of flow characteristic sample data, 479 sets of efficiency characteristic sample data, and 18 sets of runaway characteristic sample data. Obtained sample data is extended based on the aforementioned 4 boundary conditions, and fitting surfaces of these samples are shown in Figures 2 and 3: points in the middle section of the diagrams are flow and its corresponded torque characteristic sample data; points in the right rear section of the diagrams are extended runaway flow and extended runaway torque characteristics sample data; points in the right front section of the diagrams are extended flow and its corresponded torque characteristic sample data with zero opening. It can be seen that even the extended sample data are failed to cover all possible operating conditions of the turbine and further training by neural network is needed.

The available networks are BP and RBF neural network. Only difference between the two networks is the calculating method of neurons. Computational demands of these two networks are in the same order with the same number of neurons and structure. When using BP neural network toolbox as a training tool, training time is longer; and results of each training may have a big difference because of the difference in initial value of each weight and the threshold. So it is necessary to choose the better results by human intervention. RBF network behaves better in this regard; however, it is necessary to specify the value of a distribution constant spread before training, which is closely related to the accuracy of the training. Therefore, the training is a process of repeated testing. What is more, accuracy of BP network is better than that of RBF network structure with the same network structure in general. This also means that RBF network requires more neurons and a larger amount of computation with the same approximation accuracy compared to BP network. Based on a large number of experiments and analyses above, a multilayer BP network with typical double input, single output, and five neurons is used to perform the nonlinear calculation for flow and torque characteristics. Structure of BP network is shown in Figure 4.

This is a typical double input, single output double BP network that includes five neurons. The standard log-sigmoid function is chosen as transfer function of hidden layer neurons here, which can be expressed as

Corresponding algorithm of neural network in Figure 4 can be expressed as follows:

Specific steps of sample data training with BP network structure are as follows.

Firstly, BP neural network net = (where is the input value of training sample data, which is a two-dimensional array that consists of the guide vane opening and unit flow in this case) is employed.

Secondly, the training parameters are set as follows:net.trainParam.epochs = 1000net.trainParam.goal = 0.00001net.trainParam.min_grad =

Thirdly, [net,tr]=train(net,trainV.P,trainV.T,,) function is used for network training.

Finally, use network = sim (net, p2) for simulation.

Finally, the output weight and threshold parameter of flow neural network and torque neural network are stored in the data file for turbine characteristics fitting.

Relationship between flow and torque characteristics can be obtained by network fitting and training with extended flow and torque sample data, as shown in Figures 5 and 6. Compared with preliminary fitting surface in Figures 2 and 3, many known condition points are added to sample data manually according to actual situation of artificial experience based on the aforementioned extension sample data. The fitting error and control precision are set in training to ensure the smooth of surface from large vane opening to a small vane opening in transition. Working areas are covered more widely and a more comprehensive reflection of the turbine under different operation conditions is obtained.

2.5. Result Analysis

Fitting errors of flow and torque network are shown in Figures 7 and 8. The error can be controlled within ±0.04 and ±0.02, respectively, after training, which can reflect the real characteristics of the turbine in different operating conditions. Many causes may lead to the errors, such as error produced in the process of synthesis characteristic curve drawing, reading and fitting error in neural network training. For the third one, errors can be solved by increasing the number of hidden layer neurons to improve the approximation accuracy. In general, network’s ability of approximation accuracy is stronger with more neurons. But if the error is caused by the discrete characteristic of the data, there is no advantage to increase the number of neurons. On the contrary, it may affect the smoothness of surface sometimes and has certain impact on the convergence of simulation algorithm. Therefore, influence of various factors on the nonlinear characteristics should be fully considered to meet the requirements of hydropower units in real-time simulation when using neural network for training.

2.6. Brief Summary of Synthetic Characteristic Curve Processing Method

Design method for synthetic characteristic curve processing of Francis turbine can be summarized as follows: firstly, sample data obtained from the synthetic characteristic curve is normalized as standard format within with mapminmax function, which can help the neural network learn and train; then, extend the sample data mainly based on the following 4 boundary conditions [13].

Boundary of runaway characteristics curve: when the unit operates in the runaway condition, its efficiency and torque are zero, and relationship among unit flow , unit speed vane opening, and can be obtained according to and curve from runaway curve.

When the guide vane opening and unit speed are zero, the unit flow and unit torque are zero too;

When the guide vane opening is zero, unit flow of turbine will be zero regardless of unit speed. At this time, ployfit() function can be used for polynomial fitting to carry out the unit torque that corresponds to different guide vane opening with each fixed unit speed . Then use ployval() function to get the corresponding unit torque under the fixed unit speed when the gate opening . Unit torque with different unit speed at can be got by this way. Usually, when , and the relationship between and will meet the equation approximately, where is the constant coefficient, appropriate adjustments to the evaluation results will be taken according to this formula to make it more consistent with actual situation.

When the unit speed , function ployfit() and ployval() can be used for polynomial fitting to evaluate the values of unit flow and unit torque with each guide vane.

Finally, select a proper neural network to train the extended sample data and store the obtained weight and threshold in form of text. Solving process by neural network of synthetic characteristic curve processing method of Francis turbine is presented as follows.

Here are the neural networks of and that need to be fitted:

Concrete steps are as follows:(1)Calculate the torque characteristics sample data , , , , using the relationship among unit torque, unit speed, unit flow rate, and efficiency characteristics.(2)Calculate the characteristic sample of zero torque through the runaway characteristic sample data.(3)Train neural network by using torque characteristic sample data and the obtained zero torque characteristic sample above.(4)Calculate by flow characteristic sample data , , and neural network ; and sample data of , , and can be obtained taking the corresponding relation among , , and into account.(5)Train neural network using flow characteristic sample data , , and .(6)Train neural network using flow characteristic sample data , , and .

Specific details of flow, efficiency, runaway characteristics obtaining, and torque calculation method have been discussed in detail in Section 2.1 already.

3. Resampling Technology Based on Characteristic Line

One of the biggest challenges is the different sampling periods between diversion system and hydroturbine governing system in real-time simulation. In order to achieve the purpose that sampling period of the diversion system can be set arbitrarily in the modeling of hydropower station, a resampling technology of the discrete system is proposed in this paper to realize the unification of sampling period of the water diversion system and turbine model.

Principle of resampling is to convert original transfer function into transfer function of continuous system, and then the continuous transfer function is discretized again by the new sampling period. In order to keep frequency characteristics after transformation the same as that of the system before transformation, Tustin method is employed. Assuming sampling period of original transfer function is and resampling period is , discrete system can be transformed into a continuous system by the mapping relationship between domain and domain:

Replacing the variable with , then (13) can be rewritten as

Substituting (14) into (13), then

Assuming that ,  , then (15) can be written as

And transfer function between head and flow in pipe can be expressed aswhere is the added feedback coefficients of head to the flowwhere ,  ,  ,  , , and are the pipeline length, water hammer wave velocity, and water inertia time constant, respectively.

Substituting (16) into (17), then

Setting ,  , intermediate variables are defined as follows for convenience:

Set  m,  m/s, = 0.01 s, , = 0.1 s and = 2 s, respectively.

transfer function of head to the flow before resampling can be expressed as follows according to (17):

transfer function of head to the flow after resampling can be expressed as follows according to (20):

Simulation results for (21) and (22) are shown in Figure 9.

It can be seen from the simulation results in Figure 8 that the water head changes in the pressure pipe are basically the same before and after resampling, which is consistent with actual situation of hydropower plant. Therefore, sampling period contradictions between water diversion pipeline and unit set can be effectively solved by resampling method. Moreover, sampling period of the diversion system can be set arbitrarily and feasibility of real-time simulation of hydroturbine is increased.

4. Study on Convergence of Pressure Loop

A large number of simulation experiments have shown that nonconvergence phenomenon is particularly common in head pressure iteration when the guide vane is fully closed. Therefore, it is necessary to increase convergence of pressure iteration loop to make the results of real-time simulation more accurate and reliable. To solve this problem, sample data of the specific hydroturbine in Section 2.1 are analyzed and processed in this paper firstly; then the BP neural network is used to train and modify these sample data to ensure the smoothness of surface space and continuity of derivative; pressure iteration loop would have better convergence and nonlinear equation can be solved with less iterations by combining with an improved water pressure algorithm proposed in the article. Traditional water pressure algorithm is shown as follows:

Relative value of the unit flow can be expressed as follows:

Substituting (23) into (19), assume that

Then,

Define as follows:

A common method to solve (27) is as follows: start with an estimated value to firstly; then calculate value of , if is less than or equal to the standard error set in advance and then iterative end; else . is defined as follows:

To increase algorithm convergence of pressure iteration, an improved method is explored in the paper, and numerical process is as follows.

Equation (24) can be simplified as follows:

Substituting (29) into (26),

Setting ,

A reasonable solution of (31) should satisfy . Since and are always valid, the only solution is

Taking (32) into (26), relative value of pressure can be carried out.

In summary, steps for enhancing pressure loop iteration are as follows: start with an estimated value to in advance; then relative value of flow rate can be obtained by combining with flow and torque neural network training surface; then substitute back into (26) to calculate relative increment value water head pressure , if is less than or equal to the standard error, iterative end; else, . Details can be seen in Figure 10.

5. Results and Analysis

Taking the turbine unit in Section 2.4, for example, hydroturbine governing system suffers 4%, −8%, and 4% frequency disturbance under no-load condition at 10 s, 40 s, and 70 s, respectively. The response of the relay, pressure, frequency is presented in Figure 11(a). It can be seen that elastic water hammer wave can attenuate to a steady state quickly; sampling period and the calculation step of the diversion system can be unified perfectly. Relay, pressure, and frequency response process is shown in Figure 11(b) where the system suffers a 100% load shedding at 10 s. Load rejection and no-load frequency perturbation experiments have been performed at the MHT hydroturbine plant. Model presented above has been used to simulate these transients. Comparisons between measured and computed data are given in Figure 11. The water pressure shows a characteristic of elastic water hammer and has good convergence; head pressure can be controlled to steady state precisely with faster convergence rate. It is worth pointing out that the head pressure has a certain difference with initial value after load shedding because of the energy loss that is caused by a variety of factors, such as friction resistance in the pipeline. Head pressure can recover to original value by modifying the head pressure loss. Simulations and experiments show that synthetic characteristic curve of hydroturbine has been extended successfully and problems existing in real-time simulation are solved effectively by the method proposed in this paper.

6. Summary

Based on analyzing and comparing of advantages and disadvantages of various methods on hydroturbine characteristic curves processing, the BP neural network is applied to the synthetic characteristic curve processing of Francis turbine, and research ideas and methods are introduced in detail. Weights and thresholds of the neural network are obtained with the application examples, and possible causes of errors are analyzed. The obtained weights and thresholds are used as the constant coefficients for polynomial fitting to ensure the nonlinear model be more representative of actual situation. This kind of modeling method can provide not only high precision data for transition process but also better investigation on the real situation of hydraulic unit. Furthermore, this paper performs a detailed analysis and derivation of the improvement of real-time simulation algorithm, including the resampling of the simulation algorithm and iteration convergence of the pressure loop; contradictions of the sampling period between water diversion pipeline and unit set as nonconvergence of the pressure loop are effectively solved finally. Actual engineering applications validate the feasibility of the proposed new method. Further study on the dynamic characteristics of the transition process will be performed in future.

Competing Interests

The authors declare that they have no competing interests.