Next Article in Journal
Product Development Studies of Cranberry Seed Oil Nanoemulsion
Next Article in Special Issue
Development of a Hydrokinetic Turbine Backwater Prediction Model for Inland Flow through Validated CFD Models
Previous Article in Journal
Cobalt Oxide Nanorod-Modified GCE as Sensitive Electrodes for Simultaneous Detection of Hydroquinone and Catechol
Previous Article in Special Issue
Numerical Investigation of the Performance, Hydrodynamics, and Free-Surface Effects in Unsteady Flow of a Horizontal Axis Hydrokinetic Turbine
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Power Regulation and Fault Diagnostics of a Three-Pond Run-of-River Hydropower Plant

1
Department of Electrical Engineering, International Islamic University, Islamabad 44000, Pakistan
2
KIOS Research and Innovation Center of Excellence, Department of Electrical and Computer Engineering, University of Cyprus, Nicosia 1678, Cyprus
3
Computer Sciences Program, Turabah University College, Taif University, P.O. Box 11099, Taif 21944, Saudi Arabia
4
Department of Electrical Engineering, Lahore College for Women University, Lahore 51000, Pakistan
5
Department of Electrical Engineering, University of Engineering and Technology, Mardan 23200, Pakistan
*
Author to whom correspondence should be addressed.
Processes 2022, 10(2), 392; https://doi.org/10.3390/pr10020392
Submission received: 30 December 2021 / Revised: 8 February 2022 / Accepted: 11 February 2022 / Published: 17 February 2022
(This article belongs to the Special Issue CFD Modelling and Simulation of Water Turbines)

Abstract

:
Hydropower generation is one of the most prominent renewable sources of power. Run-of-river hydropower is like traditional hydropower but has significantly less environmental impact. Faults in industrial processes are a cause for large amounts of losses in monetary value and off times in industrial processes and consumer utilities. It is more efficient for the system to identify the occurring faults and, if possible, to have the processes running without interruption with the occurrence of a fault. This work uses a model previously proposed—the three-pond hydraulic run-of-river system and integrates it with a turbine and regulated power generation. After integration of the hydraulic system with the turbine and power generation, we then design a diagnostic system for commonly occurring faults within the system. Mathematical models of the faults are formulated and residues are calculated. Fault detection and identification is achieved by analyzing the residues and then a fault-tolerant control is proposed. The Fault Diagnostic Module can correctly detect the faults present and offers sufficient fault compensation to make the system run nearly normally in the event of fault occurrence. With the emergence of distributed power generation smart grids and renewable energy, this fault diagnostic is able to reliably offer uninterrupted power to the grid and thus to consumers.

1. Introduction

Hydropower plants are one of the most common and widely used renewable energy sources. These plants provide up to 80% of the total renewable energy. Traditional hydropower plants consist of a rather large water reservoir filled by constructing a dam in front of a river or a water way and flooding it to make the aforementioned reservoir. Hydropower is generated by allowing the water from the pond to flow through the turbine. The turbine and the generator are located in the power house. One of the main disadvantages of a traditional run-of-river hydropower plant is the substantial environmental impact and sometimes socio-economic impact on the population due to the need to flood the reservoir and displace the existing population. Due to these reasons, run-of-river hydro plants are an alternative to traditional hydropower plants. A wall is built on the river bed in the absence of a reservoir. This wall is known as a weir, to gain some degree of level regulation. Another essential part of the industrial process and power generation is fault diagnostics. During industrial processes, many known and unknown faults or errors can occur, resulting in undesirable outputs or off times, which can result in monetary loss and service on the consumer side. Many times, it is not desired to shut down the system for maintenance at the occurrence of every fault, as an unexpected system shutdown may cause monetary loss and inconvenience. The types of faults that require active maintenance are more severe, like loss of power or severe physical damage to the system due to any natural or manmade disaster. Otherwise, the maintenance is scheduled. Therefore, it is required for the control system to identify the occurring faults and make the system operate in such a way that minimizes the loss and inconvenience. A fault diagnostic system has two main factions: firstly, to identify and isolate any fault that has occurred, and secondly, to compensate the system in such a way that the effects of the fault are minimized.
In this work, the authors consider the three-pond hydraulic system from [1] and add a Francis turbine to it from [2]. Next, the authors propose a three-level control system to integrate the two parts and regulate the power at the desired level. After achieving power regulation, fault models are introduced, and their mathematical model is developed. These faults are introduced into the system. The introduced faults are mathematically modeled, and a fault model is discussed in detail as an example. After achieving power regulation and fault modeling, fault diagnostics and fault-tolerant control are targeted using model-based fault-tolerant control. Model-based fault-tolerant control is achieved by first obtaining the residue as the difference in the output of the system and system model. Next, the residue is analyzed to identify any fault; after fault identification, proper fault compensation is fed to the system if required. The fault diagnostic process operates in three modes for fault identification and tolerance. These three fault diagnostic modes are residue generation, fault identification, and fault compensation.
Both fault diagnostics and run-of-river hydropower plants have been topics of interest for research. Especially fault tolerance and diagnostics is the new hot field, especially in the application of remote power plants such as wind turbines and off shore wave power plants, which are harder to access for service and maintenance personnel. Directly relevant to this work, [2] proposed a fault-tolerant control of a simulated hydropower plant. The faults of a hydropower plant discussed in [2] are the actuator fault, i.e., the response time of the actuator increases, the turbine flow fault, and the turbine speed sensor fault. The authors in [3] discuss different faults that occur in Modular Multilevel Converters (MMCs) and present various fault diagnostics and fault-tolerant schemes. The faults of a 132 kV power distribution system are detected using stationary wavelet transform to extract the features. Then these features were used with artificial neural networks to detect and classify faults [4,5]. Another researcher [6] presents fault diagnostics using a Markov model and regression vectors for the faults. Another interesting study of fault diagnostics is by [7], regarding fault detection and diagnostics of ventilation units in a building and using multiple readings from adjacent sensors and detecting the deviation in sensor readings. The sensors considered are temperature, air, and fan-speed sensors. The authors in [8] proposed a contrastive learning algorithm for software and data-based fault diagnostics and a fault-detection system. In [9], fault detection and diagnostics of a vehicle’s internal combustion engine and mechanical parts was achieved using chaos analysis and signal processing on the sound of the running vehicle. Similar to [9,10], they used spectrum analysis for fault diagnostics in rotating machines. In [11], for the fault diagnostics of a hydroelectric generator, they used two sensors: a vibration sensor with both horizontal and vertical movement and a pendulum and bond phase sensor. These sensors are attached to the generating unit. The faults of the generating unit are diagnosed by analyzing the sensor data over the data communication line. The authors of [12] discuss the fault diagnostics of the hydro turbine governing system. First, a simplified non-linear model of a hydro turbine non-linear system is taken and analyzed using Volterra models in the frequency domain. In addition to these, many theses, such as [13,14,15], have been done on fault detection and diagnostics using observers and residues.

2. System Model

The system considered here is a redirected run-of-river hydropower plant, which is discussed in [1]. The hydraulic part of the plant consists of three head ponds, pond 1 ( T 1 ) , 2 ( T 2 ) , and 0 ( T 0 ) . Water from the river enters ponds 1 and 2. Ponds 1 and 2 are connected at the bottom to the head pond 0 through tunnels. Both tunnels from pond 1 to pond 0 and pond 2 to pond 0 have a controllable valve, s 1 and s 2 , respectively. The head pond 0 is connected from the bottom to the surge tank T s through the long headrace tunnel. The level of water of the ith pond is denoted by x i . Figure 1 shows the construction of the system.
The equations describing the hydraulic part will be discussed according to [1]. A modification in the model will be proposed, and its interaction with a Francis turbine will be discussed. The head ponds are described by the rate of change of their water levels. The rate of change of the water level is a function of its area and the net difference of the outflows and inflows. For pond 1 the equation is given by [1].
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + U 1 A
where x 1 is the water level in pond 1, and A is the cross-sectional area of the pond. The duct connecting ponds 1 and 0 have a cross-sectional area,   a . The controllable valve s 1 is between ponds 1 and 0. The constants are ȵ , the dimensionless water flow constant of value 0.98 [16], and g , the gravitational constant of 9.8 m s 2 .
In Equation (1), s g n ( z ) is defined as
s g n ( z ) = { 1 z > 0 0 z = 0 1 z < 0
and | z | is
| z | = { z z 0 z z < 0
Furthermore, note that the flow between two tanks or ponds depends on the difference in the levels between them and the cross-sectional area of the duct connecting them.
Similarly, the equation describing the rate of change in the water level in pond 2 is
d d t x 2 = ȵ a A s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) + U 2 A
In ponds 1 and 2, the river’s inflow is assumed controllable, whereas the outflow is to pond 0. The dynamics of pond 0 are described by the following equation.
d d t x 0 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
The equation describing the dynamics of the headrace is the same as the rate of flow in a tube, which depends on the difference in the water levels at both ends, its cross-sectional area, and the tube’s length. The flow frictional losses are also accounted for by subtracting them from the expression. Therefore, the rate of flow of water in the headrace is given by
d d t Q t = g A t L t ( x 0 x s ) C t Q t | Q t |
where Q t is the flow of water through the headrace, A t is the headrace’s cross-sectional area, and L t is the length of the headrace.
For the surge tank, the rate of change in its level x s is given by
d d t x s = Q t A s ȵ a A s 2 g x s
where A s is the cross-sectional area of the surge tank. The above Equations (1) and (4)–(7) describe the system from [1]. Note also that the control variables are U i , where i = 1 , 2 . U i is the controllable flow of river into the pond i and is varied between a maximum value and zero. The other control variables are s j , where j = 1 , 2 . s j is the controllable valve between ponds. s 1 is the valve between pond 1 and 0 while s 2 is the valve between pond 2 and 0. The valve s j can be varied between zero and unity.
We have proposed two modifications to the above mentioned system. The first one is a modification to the flow of water entering ponds 1 and 2 and the second is to couple it with a turbine.
In [1], it is assumed that the inflow of river in ponds 1 and 2 are completely controllable; however, this is not practically achievable. The flow of the river can be controlled by adding a gate in its path. The river flow can have some short and long-term variations and some base flow rates. For simplicity, the river’s flow is taken as a combination of the constant base flow rate and short-term variable flow rate and is modeled by a sinusoidal function. In contrast, the long-term variation is considered constant and is included in the base flow rate. Therefore, the flow rate in cubic meter per second of the river is given by
l = m + p   sin ω t
where l is the total flow rate, m is the baseline constant flow rate, and p   sin ω t is the short-term variation in the flow rate. It is assumed that a controllable sluice gate w is present at the mouth of the pond from the river. Now, U is the controllable flow rate from [1], and is given by
U = w l
where w ranges from 0 to 1. Now, as a turbine with penstock is added to the hydraulic system, Equation (7) of the surge tank is modified. The out flow from the surge tank is changed to be a single variable instead of the expression. The outflow from the surge tank and inflow to the penstock and turbine is denoted by Q as
ȵ a 2 g x s = Q
Now one substitutes the river and turbine flow values in the model and rewrite the equations. After substituting Equation (9) in Equations (1) and (4), the equations for pond 1 and 2 become
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
d d t x 2 = ȵ a A s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) + w 2 l 2 A
Note that U 1 and U 2 are replaced by w 1 l 1 and w 2 l 2 , which is the product of the river flow and the sluice gate opening into ponds 1 and 2. The equations for pond 0 and the headrace are unchanged.
d d t x 0 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
d d t Q t = g A t L t ( x 0 x s ) C t Q t | Q t |
Finally, the equation of the surge tank is modified by plugging in Equation (10) in Equation (7) as
d d t x s = Q t A s Q A s
Therefore, the system equations from the [1] are modified for the current system. The inputs of the system are
v = [ U 1 U 2 s 1 s 2 Q ] T
where Q is the flow through the turbine and is dictated by the equations of the turbine, while the rest of the inputs of the system are the control variables which are given as
u = [ U 1 U 2 s 1 s 2 ] T
Note also that U 1 , U 2 are given by the level controller, which is discussed in the next section and is equated using Equation (9).
Comparing the above Equations (16) and (17), the input of the system is
v = [ u T Q ] T
The states vector x consisting of the state variables is
x = [ x 1 x 2 x 0 Q t x s ] T
The output of the hydraulic system is
y = C x
where the matrix C is given by
C = [ 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 ]
Resultantly y becomes:
y = [ x 0 x 1 x 2 x s ] T
After the formulation of the hydraulic system model, the model of the turbine and penstock is needed to complete the hydropower system. In this work, the three-pond hydraulic system has a Francis turbine and penstock taken from [2]. The Francis turbine is described as a function of its rotational speed n and gate opening G   to achieve a flow rate Q . The equation for the flow of water from the turbine is given as
Q = h ( G , n )
The characteristics of a Francis turbine are described by a set of points described by hill graphs [15]. For Hill graphs, a predetermined operating point of the turbine is set, and then the static values of G and n are used in the calculations. However, [2] describes the characteristics of the turbine in the form of a quadratic equation that is non dimensional. In addition to providing a dynamic model of the Francis turbine, this model is also completely scalable over different operating conditions and rated values. The equation for the Francis turbine from [2] is described as
Q Q r = G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
where n r   and Q r are the rated speed and the rated flow rate of the turbine, and the constants a 1 , b 1 , c 1 are the constants within the above quadratic equation, as stated by [2]. The torque generated by the turbine is given by the following equation [2].
M M r = Q Q r H H r n n r
where M and M r are the torque and rated torque. H and H r are the height or level of water and the rated height, respectively. In the case of our system, the level or height ( H ) of concern is x 0 and the rated height ( H r ) is the height of the pond 0 so the rated height is H 0 .
Now, rewriting Equation (25)for the generated torque of the turbine in our system, we get
M M r = Q Q r x 0 H 0 n r n
The power generated at the turbine is given by the product of rotational speed and torque of the turbine as in [2]:
P = n M
The total output of the system is the output of the hydraulic system and power.
Y = [ x 0 x 1 x 2 x s P ] T
We shall be requiring the explicit values of Y in order to conveniently find the effects of the faults on the output. As the faults occur, we diagnose them by computing the values of the states by integrating the state equations rather than just taking the output value. The value of x 0 is computed by integrating Equation (13).
x 0 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t 0 t Q t A d t
Similarly, for x 1 , x 2 , and x s , Equations (11), (12), and (15) are integrated.
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 t w 1 l 1 A d t
x 2 = ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t + 0 t w 2 l 2 A d t
x s = 0 t Q t A s d t 0 t Q A s d t
Furthermore, power is calculated by Equation (27), and we plug the value of the torque from Equation (26) into Equation (27) after simplifying.
P = Q M r x 0 n r Q r H 0
Now, plugging in the value of Q from Equation (24) to Equation (33) and simplifying.
P = M r x 0 n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Although this step appears to be an unnecessary complication, it will help us find the residues easily in case of faults.

3. Control Design

The control system for the system is done in a pseudo hierarchal and nested style. There are three levels of control dealing with level control, level reference, and gate (power) control. Now, these three controls will be discussed separately. The simplified form of the control system with the three levels of control is given in Figure 2.

3.1. Level Controller

The primary level control governs the hydraulic part of the system. The primary level control is discussed in [1]. Level control has the controllable variables s 1 , s 2 , and U 1 , U 2 .   s 1 is the valve between pond 1 and 0 while s 2 is the valve between pond 2 and 0. While U 1   and U 2   are the flow of river in the ponds 1 and 2 through the sluice gates. In this work’s current scheme, the level control is essentially the same as in [1], with two differences. The first difference is discussed in the previous section regarding the controllable flow of river in the ponds 1 and 2. While the next change is just that the reference levels of the three ponds are set at the same level by the reference control, as opposed to [1], in which all the reference levels could be set at different levels. Combining Equations (1) and (4)–(7) of the hydraulic system gives us the nonlinear system of equations as
d d t x = f ( x , u )
where the state variables are
x = [ x 1 x 2 x 0 Q t x s ] T
and the control variables are
u = [ U 1 U 2 s 1 s 2 ] T
Here, U 1 , U 2 range from 0 to U M a x and s 1 , s 2 range from 0 to 1. However, in the current system the flow U is equal to the product of the flow-rate of the river l and the opening of the sluice gate w , as shown in Equation (9). The controller gives U 1 , U 2 , the required flow-rate output to maintain the ponds’ water levels at the desired reference level. According to Equation (9):
U i = l i w i
where i = 1 , 2   for ponds 1 and 2. We have control input U i and river flow rate l i from the river. We control the sluice gate by the expression
w i = { U i l i U i l i 1 1 U i l i > 1
This ensures that U i cannot exceed l i , the actual flow-rate in the river; the actual controlled system is slightly slower to reach its steady state as compared to [1], as it makes a more realistic approach towards the problem.
A fuzzy controller is used for level control due to its flexibility and ease of controlling different nonlinear and complex applications. Another advantage is its speed and higher accuracy compared to traditional PID controllers. A fuzzy controller is a linguistic and intuitive controller as it takes the input in the form of linguistic variables and gives output in the same way. A fuzzy system consists of a set of IF-THEN rules. In the first part, the input variable is a crisp value that is fuzzified to convert it into a linguistic variable. The system takes input in the form of linguistic variables. It then gives output in the form of a linguistic variable for the Mamdani type system or a linear combination of inputs for a Takagi Sugeno type system. Similarly, the output linguistic variable is defuzzified to convert it into the crisp output. For example, a two-input fuzzy system will have a rule of this form:
R u l e   1 :   I F   x 1   i s   A 1   1   a n d   x 2   i s   A 2     1 T H E N   y   i s   B 1
As shown in Figure 2, level control is driven by the state errors and the states of the hydraulic system. The actual level control is the same as [1] and is done using Mamdani fuzzy control. The level reference is given by the level reference control, which is discussed next. The levels x 1   x 2   x 0   of the ponds 1, 2, and 0 are given the membership functions Low, Medium, and High. Similarly, the membership functions of the errors E 1   E 2   E 0 are given as Negative, Near Zero, and Positive. The outputs have five membership functions each, from L 0 to L 4 , with L 0 indicating the complete closure of the valve or river water input, while L 4   means full throttle. The number of rules for the system depends on the number of inputs and the total number of membership functions. So, there are six membership functions for each of the three ponds. The total possible rules are 729, the same as the total possible combinations, which is rather computationally intensive. Therefore, the level control is divided into two parts. One control is for pond 1 and 0, while the second control is for ponds 2 and 0. Dividing the control in two parts reduces the number of rules to 81 for each controller. It may appear that a clash may theoretically exist between level control 1 and 2, but as the level reference of pond 0 is the same for both controls, no such clash exists. Although this level control can maintain the ponds at different levels, as discussed in [1], all the three references are set at the same level by the level reference controller. The controllable variables are the valve position s and the inflow U , which are nonzero numbers ranging from 0 (close) to full throttle. Therefore, the levels are adjusted by balancing the inflows and the outflows to increase, decrease, and maintain the ponds’ levels. Depending on the required levels of the three ponds, the controller can achieve and maintain the water levels in the ponds. In the current case, the reference controller sets the reference levels of all three ponds at the same level. The controller currently does not use the level controller’s ability to achieve and maintain the water levels at different levels.
We shall consider one of the two controllers for discussion as the second controller mirrors the first. The Mamdani controller works in three main modes, each for when the current levels are below, on, or higher than the required levels. When the actual level is lower than the required level in the ponds, the sluice gate (inflow) is set to maximum or high so that pond 1 reaches the required level. The valve s 1 is kept at full throttle, so that pond 0 also reaches the required level. When errors are near zero, both the inflow and the valve s 1   are kept at level 1 where inflows and outflows are balanced and the water level is retained in the ponds. Finally, if the actual water level exceeds the required level, the inflow is stopped, and valve s 1 is kept at full throttle so that the levels reduce and reach the required level. Another small addition to this is that the controller prioritizes the level of pond 0. That means if somehow the level of pond 1 is increased due to some disturbance or unknown noise, the disturbance will not appear in pond 0 as the controller prioritizes the level of pond 0. The controller does not allow pond 1 to decrease to the required level if it means to increase the level of pond 0 above its required level. An example of the rule when the system is in an equilibrium state is given below:
I F   E 1   i s   Z E R O   a n d   E 0   i s   Z E R O   a n d   X 1   i s   H I G H   a n d   X 0   i s   H I G H T H E N   U 1   i s   L 1   a n d   S 1   i s   V 1
All of the 81 rules for each level controller 1 and 2 have a generalized form:
u ( t ) = j = 1 81 u ¯ j ( i 4 µ A i j ( k i ) ) j = 1 81 ( i 4 µ A i j ( k i ) )
where u ( t ) is the controller’s output for U 1 or s 1 , k i is the input value of x 0 , x 1 , E 0 , and E 2 . The linguistic variable for input, which can be N E G , Z E R O , P O S or L O W ,   M E D , H I , is A ; µ A is the membership function of A ; and u ¯ j is the firing strength of the j t h fuzzy rule.

3.2. Level Reference Controller

The second controller that controls both the hydraulic system and turbine is also a fuzzy controller. The reference controller takes the input in the form of required power and the level of the pond 0. This controller requires the exact value of the required power or at least a scaled version of it. Therefore, the hydraulic system parameters are taken from [1], and the parameters of the hydraulic turbine are taken arbitrarily to match with the hydraulic system. After that, the total theoretical power is calculated, which comes around 2 Mega Watts of power. Next, the minimum level of the pond is also decided arbitrarily as it is very rare for the head pond of a power plant to be empty. That minimum level and minimum power are arbitrarily decided as 20 m and 800 kilo watts.
The reference controller does not run the errors as opposed to the level controller but with the reference power and the feedback from the pond 0 (level). The head ponds’ operating levels range from 20 m to a maximum of 35 m [1], and the operating power is between 800 kW and 2 MW.
The reference controller is in the form of the Takagi Sugeno Fuzzy Inference Engine instead of Mamdani Fuzzy Inference Engine for the previously discussed level controller. The Takagi Sugeno controller is different from the Mamdani controller in the form as its output is a constant or a linear combination of its inputs for each rule.
The function of the reference controller is to set a level reference for the ponds and give the initial base position to the gate of the turbine. As the power plant operates between 800 kW and 2 MW and from the 20 to 35 m pond level, the available power for the turbine is given by the following equation:
P = η ρ g H Q
where η is the turbine efficiency, ρ is the density of water, g is the gravitational constant, and H   and Q   are the level of water in pond and the flow rate through the turbine, respectively. As the efficiency of the turbine is not in our control, as the model taken from [2] assumes constant efficiency for the turbine, and the density of water and gravitational constants are fixed, the level of the water in head pond and the flow rate through the turbine can be adjusted. According to Equation (34), the turbine’s rotational speed can also be used as a control parameter, but we kept it constant and is left for future work. The flow rate through the turbine is adjusted by adjusting the opening of the turbine wicket gate. The pond level is divided from 20 m to 35 m in increments of 1 m, and the operating power is adjusted from 800 kW to 2 MW in increments of 25 kW. The position of the turbine gate is estimated against the required power and water level while fixing the other parameters. This estimation is the basis for the rules of level reference and initial gate position of the turbine.
The inputs of the level reference control are the required power and the level of pond 0. These inputs are assigned membership functions as follows: The pond level can be varied from 20 to 35 m, so the level is assigned four membership functions. The first membership function deals with levels less than 20 m, while the rest three deal with from 20 to 35 m in increments of 5 m. The level membership functions are named as m 20 , m 25 , m 30 , and m 35 , respectively. All four level membership functions are trapezoidal, with the first membership function being non symmetric to describe all the levels less than 20 m. The required power level ( R E Q P ) is divided into increments of 25 kW between 800 kW and 1.95 MW. That means that 45+2 membership functions describe the required power. The 45 membership functions are between 800 kW and 1.95 MW, while the other two represent power levels less than 800 kW and greater than 1.95 MW. The inner 45 membership functions are triangular, while the boundary membership functions are trapezoidal. Therefore, the total number of rules for the level reference controller is 4 × 47 or 188. The controller requires the current level of the head pond to give the level reference; for when the required power level is reduced, and the current level of the pond is higher than the theoretical level, to stop the controller from quickly reducing the level of the pond. The other aspect to know about the current level is to set the initial position of the turbine gate according to the current level rather than the desired level. An example of a rule is given below.
I F   R E Q P   i s   165 P   a n d   L E V E L   i s   m 25       T H E N   L E V R E F   i s   30   a n d   G F u z z y   i s   0.92
All of the 188 rules for the level reference controller have a generalized form:
u ( t ) = j = 1 188 u ¯ j ( i 2 µ A i j ( k i ) ) j = 1 188 ( i 2 µ A i j ( k i ) )
where u ( t ) is the output of the controller for L E V R E F or G F u z z y , k i   is the input value of R E Q P and L E V E . The linguistic variable for the input, which has been described above is, A ; µ A is the membership function of A ; and u ¯ j is the firing strength of the jth fuzzy rule.

3.3. Turbine Gate Correction Control

The turbine gate correction control is the final fine adjustment control for the turbine gate. The level reference control discussed earlier gives the required level to the level control and gives the turbine gate’s initial gate position. The final adjustment to the turbine gate is made using a traditional PID controller. The output of the PID controller is added to the previously assigned initial position of the gate by the level reference controller. Therefore, the final value of the turbine gate becomes
G F I N A L = G F u z z y + G P I D
The PID control is a traditional control scheme that is driven by the error between the required power and generated power, and the output of controller is given by
G P I D = K P e ( t ) + K I 0 t e ( t ) d t + K D d d t e ( t )
where e ( t ) is the power error, and K P , K I , and K D are the proportional, integral, and derivative constants of the PID controller.
By the interaction of these three controllers, the required levels of the ponds are maintained, and the generated power comes within a hundred watts of the required power.

4. Fault Model

A few commonly occurring faults were modeled and added to the system to make fault diagnostics and a fault-tolerant control. These faults were added to the system model, detected, and identified by the fault diagnostic module, and then suggested fault-tolerant control action is taken. In this work, currently, only saturation and leakage faults are considered.
The saturation and leakage faults most commonly occur within the valves and gates due to age, obstruction, or a weakened or faulty actuator. Saturation fault occurs when the actuator cannot fully open the valve or gate; this reduces flow which is amplified by propagating through the system and affects the output by making it sluggish or having lower than the desired value. Similarly, a leakage fault is the same as but opposite to a saturation fault. During a leakage fault, the gate or valve cannot close or shut completely, resulting in a constant leakage, having the output creeping higher than the desired value, or having a sluggish response when braking or lowering the desired states of the system. During the normal mode of operation (i.e., from zero or lower initial conditions to higher desired states), the effects of saturation fault appear during the transient state but are not present during the steady state. In comparison, the case is vice-versa for leakage faults where their effects appear in the steady state but are invisible in the transient state. Although this rule is not strictly followed, and it will be seen later when these faults are added to the system. As a general rule of thumb, the faults whose effects appear in the steady state are more severe than those whose effects only appear during the transient state.
From a purely fault-tolerant point of view, the faults whose effects are only present during the transient state may not strictly require corrective action. As in this case, the system is merely somewhat slower than a normal system unless it is so slow that it becomes undesirable. In comparison, a fault whose effect is evident in the steady state has to be dealt with using corrective action to keep the undesirable effects of the faults to a minimum. However, detecting, identifying, and isolating both kinds of faults are very important for early warning and avoiding the system from failing.
If we consider a single equation for a generalized linear system, then
x ˙ = A x + B u
where A is the state gain matrix and B is the input gain matrix. In case of the occurrence of a fault, the equation is modified as follows:
x ˙ = A x + B u + E f
where E is the fault gain and f is the fault. In case of a nonlinear system with a nonlinear fault, the system becomes
x ˙ = g ( x , u , f )
Now let us consider our system equations and see how they are affected by the faults. The types of faults being considered are saturation, leakage, and a combination of the two. The components affected by these faults are the sluice gates w 1 and w 2 , which allow the river’s flow in ponds 1 and 2, the controllable valves s 1   and s 2   between the ponds T 1 , T 0 and T 1 , T 0 , and finally, the wicket gate G of the Francis turbine. Sometimes the nonlinear fault can be separated as an additive or a multiplicative function, which is sometimes not easily possible. First, let us describe the faults mathematically before finding their effect on the components. The saturation fault, nonlinear in nature, is described as
f 1 ( z ) = { z z < S a t S a t z S a t
where z is an arbitrary faulty component, and S a t is the constant saturation limit of the effect of the fault. However, plugging this value of fault into the system is not feasible. Therefore, we transform this nonlinear fault as an additive fault to the system. The additive effect may be time varying or nonlinear, as is needed by the system. The fault f 1 is described in its additive form as
f 1 ( z ) = { z z < S a t z + f z 1 z S a t
In the term f z 1 , z is the faulty component and f z 1 is the time varying term that satisfies the equation below.
z + f z 1 = S a t
Similarly, the leakage fault is defined as
f 2 ( z ) = { L e a k z < L e a k z z L e a k
Here, L e a k is the constant leakage effect of the fault. Now, one can describe the leakage fault in additive form as
f 2 ( z ) = { z + f z 2 z < L e a k z z L e a k
The time-varying term f z 2 satisfies the following equation:
z + f z 2 = L e a k
Similarly, when these two types of faults occur at the same time, it is defined as f 3 , which is defined as
f 3 ( z ) = { S a t z > S a t z L e a k z S a t L e a k z < L e a k
To describe the f 3 type of fault, f z 3 is not needed, as shown in the additive form of the fault below.
f 3 ( z ) = { z + f z 1 z > S a t z L e a k z S a t z + f z 2 z < L e a k
The above equations from Equation (51) to Equation (58) shall be referred to multiple times to define f z i , where the faulty component is z and i = 1 , 2 , depending on whether the component is in saturation or leakage fault. This will be used extensively to convert the fault equations into additive forms.
Now let us look at how these faults affect the components of the system. We shall examine the sluice gate, pond valve, and turbine wicket gate fault one by one. There are two sluice gates and pond valves; only one of each will be examined to avoid redundancy.

4.1. Sluice Gate Faults

The sluice gates are on the opening of the river to the ponds T 1 and T 2 . Although, the level controller assumes that the flow of the river into the ponds is controllable explicitly, the sluice gates w 1 and w 2 control the inflow by monitoring the river flow using Equation (38). The equation for pond 1 T 1 , Equation (11), is rewritten adding the effect of fault f 1 below.
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f 1 ( w 1 ) l 1 A
According to Equation (52), the effect of the sluice gate fault in the saturation region can be written as a sum with the f w 1 1 term. When the effect of the f 1 fault appears for the sluice gate, Equation (57) is written as
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A + f w 1 1 l 1 A
Note that the value of f w 1 1 is negative in the above case. To find the fault’s total effect, we integrate the above Equation (60).
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 t w 1 l 1 A d t + 0 t f w 1 1 l 1 A d t
Similarly, for the case of a leakage fault, the equation becomes
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f 2 ( w 1 ) l 1 A
Going through similar steps and defining f w 1 2 the fault f 2 is converted to an additive form and the effect of the fault in leakage mode is written as
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A + f w 1 2 l 1 A
The total effect of the fault is given by integrating the above Equation (63) as before:
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 t w 1 l 1 A d t + 0 t f w 1 2 l 1 A d t
Using the similar reasoning the effect of third type of fault appears in the equation as
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f 3 ( w 1 ) l 1 A
Since the f 3 fault is a combination of the saturation and leakage faults, the additive form of the fault f 3 on the sluice gate w 1 is described by Equations (61) and (64), depending on whether the fault is in the saturation or leakage region. The fault model for w 2 is the same as above and discussing it will be redundant.

4.2. Pond Valve Fault

In the case of a fault in the valve s 1 , its effect appears in two equations. The equations are of pond 1 and pond 0. The equation for pond 1, Equation (11), with the occurrence of fault f 1 , is modified as follows:
d d t x 1 = ȵ a A f 1 ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
Similarly, the equation for the head pond 0 (13) is modified as follows
d d t x 0 = ȵ a A f 1   ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
Rewriting the faults in additive form according to Equation (50) and defining f s 1 1 , the equation for pond 1 in the saturation fault region is
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) ȵ a A f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
Likewise, the equation for pond 0 during the saturation region of the fault is
d d t x 0 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
The total effect of the fault on pond 1 is given by integrating Equation (68).
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 t w 1 l 1 A d t
Similarly, the total effect of fault on pond 0 is given by integrating Equation (69).
x 0 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t 0 t Q t A d t
We shall be delving more deeply into the effects of the saturation fault of the pond valve in the Appendix A. Using similar reasoning as above, the occurrence of fault f 2 on the valve s 1 modifies the equation of the pond 1 Equation (11) as follows:
d d t x 1 = ȵ a A f 2 ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
Similarly, the equation of the pond 0 (13) with the occurrence of fault is:
d d t x 0 = ȵ a A f 2   ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
Now, defining f s 1 2 and rewriting the fault equations for pond 1 and pond 0, the equation for pond 1 during the effects of leakage fault is given as
d d t x 1 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) ȵ a A f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
Similarly, the equation for pond 0 during the effects of leakage fault is
d d t x 0 = ȵ a A s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
The total effect of the fault on pond 1 is given by integrating Equation (74).
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 t w 1 l 1 A d t
Similarly, the total effect of fault on pond 0 is given by integrating Equation (75).
x 0 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t 0 t Q t A d t
Now when describing the fault combination f 3 , which is actually a combination of the first two faults, the equation for pond 1 is
d d t x 1 = ȵ a A f 3 ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + w 1 l 1 A
and the fault equation for pond 0 is
d d t x 0 = ȵ a A f 3   ( s 1 ) 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) Q t A
As the fault f 3 of the valve s 1   behaves like f 1 or f 2 depending on whether the fault is in the saturation or leakage region, the effects of f 3 are described by Equations (69,70,76,77), respectively.

4.3. Turbine Wicket Gate Fault

Now let, us look at the fault model for the turbine wicket gate. In the case of the occurrence of fault f 1   in the turbine wicket gate, the effect appears in the turbine Equation (24) as
Q Q r = f 1 ( G ) [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Now, if we convert the fault to the additive form using Equation (52) and define f G 1 , the effect of the saturation fault for the turbine in the saturation region is given by the following equation:
Q Q r = G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] + f G 1 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
We find the effect of turbine wicket gate fault on power by plugging in Equation (81) to Equation (34), so the faulty power becomes
P = M r x 0 n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] + M r x 0 n r H 0 f G 1 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
In the case of leakage fault f 2 of the turbine gate, the equation of the turbine is
Q Q r = f 2 ( G ) [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
The effect of the leakage fault is written by converting the above Equation (83) to the additive form by defining f G 2 using Equation (55). The additive form of the turbine wicket gate leakage fault in the faulty region is given by
Q Q r = G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] + f G 2 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Similarly, the effect of the fault on power is given by
P = M r x 0 n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] + M r x 0 n r H 0 f G 2 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Similarly, the case of the f 3 fault of the turbine wicket gate is given by
Q Q r = f 3 ( G ) [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
As it was done in earlier cases, the additive form of the turbine gate fault f 3 is given as Equation (81) or (84) for flow through the turbine. Similarly, Equation (80) or (83) gives the effect of the fault f 3 on power. These all depend on whether the turbine gate is in saturation or leakage fault mode. With the effects of the faults modeled, we shall find the effects of the faults on the residue in the next section.

5. Fault Diagnostics and Tolerance

The faults considered in this work are modeled in the previous section. Now there is the case of detection, identifying, and finally proposing a control action to mitigate the effect of the faults. In this work, fault diagnostics are done in three modes: residue generation, fault identification, and fault tolerance. The first step is residue generation and saving the said residue in a memory unit. In the second diagnostic and identification step, the fault type is identified, and a relevant fault code is generated for the fault-tolerant control. In the last step, the fault tolerant control reads the fault code and gives the corresponding corrective action to make the system fault tolerant.
A model-based fault diagnostic approach is used to detect and identify the faults and then suitable corrective action is taken to make the system fault tolerant. The first step in this direction is to generate residue for the faults.

5.1. Residue Generation

In the model-based fault-tolerant control, the residue is generated by the difference between the system’s actual output and the output of the system model. As the system and its model are theoretically the same, the residues should be zero or near to it. However, there is almost always some disturbance or model uncertainties present in the residue. This makes the residue nonzero, but it is near to zero if there is minimum model mismatch and disturbance. Equations (87) and (88) give the generalized system with faults:
x ˙ = A x + B u + E d + F f
y = C x + D u + H d + J f
where E   and F are the disturbance and fault distribution matrices for the state of the system, H and J are the output disturbance and fault distribution matrices, while d and f are the disturbance and fault, respectively. The system model is described by the equations
x ˙ = A m x + B m u
y = C m x + D m u
The residue of the system is given as the difference between Equations (88) and (90).
r = C x + D u + H d + J f C m x D m u
In the absence of the model mismatch or uncertainty, the residue will only contain faults and disturbances; therefore,
r = H d + J f
This residue is processed to identify and isolate the faults for fault diagnostics and tolerance. In our system, which consists of the hydraulic system and the turbine, the outputs are Equation (22) and Power. The combined output of the system is given by
Y = [ x 0 x 1 x 2 x s P ] T
In the current case the residue is given by
r = Y Y F a u l t y
Now the residue in the case of the occurrence of the faults will be examined for each fault. The explicit effects of the faults on the states are given in the previous section. Although the effects of the faults tend to propagate through the system, due to the layered structure of the control, the effects of the faults are compensated for at the next level. Even with that, the faults can affect the system, thus requiring some kind of fault identification and tolerance. The implicit effects of the faults on the system are not mathematically discussed, but they are graphically shown in the residue graphs in the results section.

5.1.1. Residue Generation of Sluice Gate Faults

In the case of the saturation fault f 1 at the sluice gate w 1 , directly affected is pond 1 T 1 . The residue for this fault is given as the difference between Equations (30) and (61).
r 1 f 1 ( w 1 ) = 0 t f w 1 1 l 1 A d t
Here, r 1 f 1 ( w 1 ) is the residue of pond 1 with the occurrence of fault f 1 at sluice gate w 1 . Although the rest of the residues may or may not be non zero due to the implicit effects of the saturation fault, these effects are shown graphically rather than mathematically. The total residue is given as
r f 1 ( w 1 ) = [ r 0 f 1 ( w 1 ) 0 t f w 1 1 l 1 A d t r 2 f 1 ( w 1 ) r s f 1 ( w 1 ) r P f 1 ( w 1 ) ]
As this residue is due to the saturation fault of w 1 , this residue will only be nonzero when the sluice gate w 1 is in the saturation region; this happens when the current levels of the ponds are less than the required level, and the sluice gate needs to open fully to allow the levels of the ponds to rise to the required level quickly. However, in the presence of the saturation fault in the sluice gate, the gate is not opened fully, thus restricting the water flow to the pond (pond 1 in this case). Due to this, the pond’s level is less than the faultless state. Due to this pond level difference, the effect of the fault appears in the headpond 0 and is thus transmitted to power because at this level the turbine gate is also at its maximum opening, such as during normal operation, but the head pond level is lower; thus, there exists a power residue. However, once the required level is achieved, the sluice gate is no longer in saturation; thus, all residues drop to zero in steady-state mode.
In the case of the leakage fault f 2 at the sluice gate w 1 , directly affected is pond 1. The residue for this fault is given as the difference between Equations (30) and (64).
r 1 f 2 ( w 1 ) = 0 t f w 1 2 l 1 A d t
Here, r 1 f 2 ( w 1 ) is the residue of pond 1 with the occurrence of fault f 2 at the sluice gate w 1 . The rest of the residues will also be non zero due to the implicit effects of the saturation fault; these effects are shown graphically rather than mathematically. The total residue is given as
r f 2 ( w 1 ) = [ r 0 f 2 ( w 1 ) 0 t f w 1 2 l 1 A d t r 2 f 2 ( w 1 ) r s f 2 ( w 1 ) r P f 2 ( w 1 ) ]
Unlike the saturation fault, the effects of the leakage fault are not present when the current levels of the ponds are below the required level as the sluice gate is in normal operating mode. However, once the system is in steady-state mode, the sluice gate enters the leakage mode, and the effects of the fault appear in the residue. The effects of this fault are constrained in pond 1 for a while until it propagates to head pond 0 and then later appears as an increase in power.
In the case of fault f 3 at the sluice gate w 1 , this is a combination of the above two faults and the residue is given by either Equation (96) or Equation (98), depending on whether it is in transition or steady state.

5.1.2. Residue Generation of Pond Valve Faults

In the case of the saturation fault f 1 at the valve s 1 , the primary affected are pond 1 and pond 0. The residue for pond 1 is the difference between Equations (30) and (70).
r 1 f 1 ( s 1 ) = ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
The residue for pond 0 is given by the difference between Equations (29) and (71).
r 0 f 1 ( s 1 ) = ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
The rest of the residues may or may not be nonzero (its mathematics is shown in the Appendix A) due to the implicit effects of the faults, and the total residue is given as
r f 1 ( s 1 ) = [ ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t r 2 f 1 ( s 1 ) r s f 1 ( s 1 ) r P f 1 ( s 1 ) ]
This is the residue due to the saturation fault of the valve s 1 . The effects of this fault occur as Equation (71), when the valve s 1 goes to the saturation region. The valve s 1 only goes in the saturation region when the current levels of the ponds are fairly below the required level and the valve s 1 has to be fully open to make the water levels quickly rise to the required level. Thus, the effects of this fault appear only in the transition state and show their effect by slightly increasing the level of pond 1 and decreasing the level of pond 0. The fault effects are transmitted to the other parts of the system, but they disappear as soon as the system reaches steady state.
In the case of leakage fault f 2 at the valve, s 1 , the primary affected are pond 1 and pond 0. The residue for pond 1 is the difference between Equations (30) and (76).
r 1 f 2 ( s 1 ) = ȵ a A 0 t f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
The residue for the pond 0 is given by the difference between Equations (29) and (77).
r 0 f 2 ( s 1 ) = ȵ a A 0 t f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
The rest of the residues may be nonzero due to the implicit effects of the faults, and the total residue is given as
r f 2 ( s 1 ) = [ ȵ a A 0 t f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 2 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t r 2 f 1 ( s 1 ) r s f 1 ( s 1 ) r P f 1 ( s 1 ) ]
Unlike the above discussed leakage fault f 2 at the sluice gate w 1 , the valve’s fault only affects the system when the current levels of the system are higher than the required level, and the water level in the ponds need to be reduced to the lower level. Unless the leakage fault is of very high magnitude, the effects of the fault disappear when the system reaches steady state. This is because the valve s 1 is open significantly during the steady state to equalize the inflows and the outflows.
In the case of fault f 3 to the valve s 1 , the above two faults are combined. The residue is given by either Equation (101) or Equation (104) whether the current pond level of the system is lower or higher than the required level.

5.1.3. Residue Generation of Turbine Wicket Gate Faults

In the case of the saturation fault f 1 at the turbine wicket gate G , the effected part of the system is the turbine power output. Although due to some back propagation, the other parts of the residue may or may not be zero. The residue of the turbine is given by the difference between Equations (34) and (82).
r P f 1 ( G ) = M r x 0 n r H 0 f G 1 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
The rest of the residues, which may or may not be zero, are given by
r f 1 ( G ) = [ r 0 f 1 ( G ) r 1 f 1 ( G ) r 2 f 1 ( G ) r s f 1 ( G ) M r x 0 n r H 0 f G 1 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] ]
The saturation fault f 1 of the turbine wicket gate is fairly critical as it directly affects the output power of the turbine. The effects of this fault occur whenever the turbine gate needs to be operated in a higher flow region, which is nearly all of the time other than when the system’s power level needs to be reduced from a higher level. In the case of this fault, it is imperative to have some kind of fault-tolerant scheme for the system to run within acceptable levels of performance.
In the case of the leakage fault f 2 at the turbine wicket gate G , the primary affected part is the power output. The residue for the power output is given by the difference between Equations (34) and (85).
r P f 2 ( G ) = M r x 0 n r H 0 f G 2 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
The rest of the residue, which may or may not be zero, are given by
r f 2 ( G ) = [ r 0 f 2 ( G ) r 1 f 2 ( G ) r 2 f 2 ( G ) r s f 2 ( G ) M r x 0 n r H 0 f G 2 [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] ]
Unlike the above saturation fault, the residue for this fault only appears if the turbine needs to be shutdown or the required power is suddenly reduced to a very low level when the system is under operation.
In the case of fault f 3 at the turbine wicket gate G , the residue is given by Equation (106) or Equation (108), whether the system is in normal operation mode or needs to be shutdown.
Although there is some disturbance present in the system’s output or the residue, it is assumed that the disturbances present in the power output, head pond, and surge tank are negligible. In the current case, some white noise is added to ponds 1 and 2 of the system approximating the sensor noise due to the water’s bubbling or turbulent effect as it falls from the river into ponds 1 and 2. Therefore, the disturbance vector that will appear in the residue is given as
d = [ 0 d 1 d 2 0 0 ]
So, the total residue in case of the occurrence of fault is given as
r f i ( z ) = [ r 0 f i ( z ) r 1 f i ( z ) r 2 f i ( z ) r s f i ( z ) r P f i ( z ) ] + [ 0 d 1 d 2 0 0 ]
where z is the faulty component and i   is the type of fault, both of which have been discussed above. As seen from Equation (110), the sensor noise is clearly not needed as it will tend to give a nonzero residue even if the system is running in its normal state and no faults or unexpected disturbances have occurred. As the disturbances usually have relatively high frequency components, while the system’s hydraulic and power dynamics are in a lower frequency region, it makes sense to filter or average the residue to attenuate the effects of disturbance. In this case, a moving average is used to reduce the effects of disturbance. After the averaging, the residue is multiplied by a high gain to make it more sensitive to the effects of the faults. This makes the residue sensitive and makes the effects of the fault more apparent when the effects of the faults appear in the system output. The residue given to the fault identification module is given as
r f i ( z ) F i n a l = g r 1 T t t + T r f i ( z ) d t
Here, r f i ( z ) F i n a l is the residue vector for fault identification, T is the averaging time window, and g r is the constant gain of the residue. In this way, all the faults’ residues r f i ( z ) F i n a l are found and saved in the database for further usage. The simplified form of the residue generation and the preprocessing scheme is given in Figure 3. Note also that the ‘Total System’ in Figure 3 represents the whole Figure 2 as the total system, which is the hydraulic system, turbine, and its control system.

5.2. Fault Identification

After the residue is generated, the next task is to identify and isolate the fault. As the residue is generated by the system and passed to the diagnostic module, it is processed to determine the system integrity and to identify any fault. The system residue is compared to all fault residues saved in the database beforehand to determine the presence or absence of a fault. The effects of the faults are more deterministic rather than probabilistic. According to assumptions, only one component can be faulty at a given time. It is more efficient to compare the generated residue with the known fault residues from the database than any other method to identify the fault. A simplified form of the fault identification process is shown in Figure 4.
The residue comparison is given by taking the difference of the given residue with all the identified residues present in the database. The difference for a particular fault is given as
d d i f f f i ( z ) = r U n i d e n t i f i e d F i n a l r f i ( z ) F i n a l
Here, r U n i d e n t i f i e d F i n a l is the unidentified residue given by the system and r f i ( z ) F i n a l is one of the known residues of the system present in the database. Similarly, the given residue is compared with all of the residues present in the database and is prepared for the next step.
As we know that the residue is a set of five time series and so is the difference of the residues, we need to make the difference vector independent from time while retaining all the information present in the difference vector. We square all of the five parts of the difference vector first. Writing the difference vector in its expanded form:
d d i f f f i ( z ) = [ d 0 f i ( z ) d 1 f i ( z ) d 2 f i ( z ) d s f i ( z ) d P f i ( z ) ]
The vector containing all the squared time series of the difference vector is donated by D d i f f f i ( z ) . We individually square all the elements of the difference vector as
D d i f f f i ( z ) = [ ( d 0 f i ( z ) ) 2 ( d 1 f i ( z ) ) 2 ( d s f i ( z ) ) 2 ( d s f i ( z ) ) 2 ( d P f i ( z ) ) 2 ]
This makes D d i f f f i ( z ) to retain the information in the difference vector by squaring the time series. Now, to turn the squared difference vector consisting of five time series, we integrate the squared difference vector over time to make it a time-independent vector consisting of five scalar values. The elimination of the time dependency is given as
I f i ( z ) = 0 t D d i f f f i ( z ) d t
Here, I f i ( z ) is the difference vector, consisting of five positive scalar elements each. Finally, the square of the magnitude of I f i ( z ) is found by having a dot product with itself.
K f i ( z ) = I f i ( z ) 2 = I f i ( z ) . I f i ( z )
The steps of Equation (112) to Equation (116) are repeated for each known fault residue in the database. This procedure generates a scalar for each known fault. After the scalar values are generated, the minimum of that is taken and compared to a predetermined threshold value. If the minimum value is lower than the threshold, that fault is determined to have occurred and is identified. Each fault is given a unique code that describes the fault, and then this code is passed onto the fault tolerant control.

5.3. FaultTolerance

In the event of fault occurrence, it corrects or modifies the system output parameters for the system to behave more desirably. Fault-tolerant action may not be necessary in the case of the occurrence of every fault. In the case of the faults discussed above, there are two possible cases for the effects of faults. If the effects of the fault are only apparent during the transient state and disappear when the system enters steady state, there is no need to have dedicated fault tolerance in this case. The second case is when the faults affect the outputs when the system is in steady state, fault-tolerant action is required. However, if the faults do not affect the output critical to the system, dedicated fault tolerant action may not be required. If the fault affects the critical outputs in the steady state, fault tolerance is required to correct the critical output. In the case of this system, the critical output which needs to have fault tolerance is the output power, while the actual levels of the ponds are not important.
In this case, the faults discussed are all the actuator faults, and it is rather hard to give corrective action to an already malfunctioning actuator. For this reason, fault tolerance is achieved by giving corrective action to the reference controller. The level reference controller gives the required level to the hydraulic system. By adjusting the required level to a corrected level, the effects of the fault are minimized and suppressed, thus achieving fault tolerance. By adjusting the reference, the rest of the system will behave more desirably while still being faulty. The fault-tolerant or fault-compensation process is shown in Figure 5.
For each type of identified fault from the fault code given by the fault identification module, the actual name of the fault is given as output and whether it requires fault corrective action or not. In the case where fault corrective action is required, the fault corrective reference is added to the level reference as
L e v e l R e f A d j = L e v e l R e f + L e v e l R e f C o r r
So, this L e v e l R e f A d j is given as the required level to the level controller. When the fault tolerance action is not needed, L e v e l R e f C o r r is given as zero to the level reference. Therefore, by combining the three steps of fault diagnostics, the fault diagnostic process is of the type shown in Figure 6.

6. Results and Discussion

The system was simulated in MATLAB and Simulink to analyze its validity. The basic three-pond hydraulic model is presented in [1] and was modified according to the requirements of this work. The Francis turbine model is taken from [2] and was implemented using MATLAB. First, the total system was simulated with the three-level control. After implementing faults and residue generation, the residue is saved in a memory unit. The saved unidentified residue is read by the fault identification module and identified. After identifying the fault or lack of it, a suitable error code is passed to the fault tolerant module. The system is simulated in fault-tolerant mode in case of a fault. The model parameters were taken arbitrarily but taken to be in line with the parameters of the hydraulic system [1], which was also taken arbitrarily. So, the parameters of the hydraulic system for simulation are as follows:
H 0 = H 1 = H 2 = Height   of   pond   0 , 1 , 2 = 35   m ; H s = Height   of   Surge   Tank = 20   m ; C t = Friction   constant   of   headrace . = 0.98 ; a = Cross   sec tional   area   of   the   ducts   between   T 1 & T 0 ,   T 2 & T 0   = 6.25   m 2 ; A = Area   of   the   Ponds   T 0 , T 1 , T 2 = 50   m   ×   50   m = 2500   m 2 ; A s = Area   of   Surge   Tank . = 10   m   ×   10   m = 100   m 2 ; L t = Length   of   headrace . = 200   m ; A t = Cross - sectional   area   of   headrace = 6.25   m 2 ; U m a x = Maximum   controllable   inflow   of   water   in   ponds   T 1   and   T 2 = 100   m 3 s e c ; m = Base   inflow   of   water   in   ponds   T 1   and   T 2   = 75   m 3 s e c ; p = The   maximum   transient   inflow   of   water   in   ponds   T 1   and   T 2   = 25   m 3 s e c .
According to Equation (8) both the base and the transient flow rate will become equal at 50   m 3 s e c
The parameters of the turbine penstock were arbitrarily set as
Q r = Rated   flow - rate   through   the   turbine = 6.5   m 2 ; n r = Rated   rotational   speed   of   the   turbine = 10   r e v s e c ; n = Rotational   speed   at   which   the   turbine   is   set = 8.33   r e v s e c ; H r = Rated   height   of   the   turbine   which   is   same   as   the   Height   of   Pond   0 = 35   m ; M r = Rated   torque   of   the   turbine = 200 , 655   N m ; P r = Rated   maximum   power   of   the   turbine = 2 , 006 , 550   Watts 2   MegaWatts .
Although the turbine is rated at slightly more than 2 MW, the generated maximum power of the turbine maxes out at nearly 1.95 MW at the set conditions.

6.1. Power Generation

With all of the system parameters out of the way, the system operation was tested at some required power. The required power at which the system was tested was assumed to be the usual required power at which the system would operate most of the time. The required power was set at 1.65 MW, and the system’s normal operation was tested. Although only the hydraulic system was tested in [1], the hydraulic system had zero initial conditions. In this work, as stated earlier, the minimum level of the head pond is 20 m. Therefore, the initial conditions for the ponds were set at 20 m. The total system was tested with the required power of 1.65 MW and the initial conditions described.
The concerned outputs of the system were the pond levels 0, 1, and 2, and the output power is shown graphically. Furthermore, due to the massive difference between the output power and pond levels, it made sense to show both graphs separately for all the cases, such as the system operation in normal or in faulty conditions; also, the level and power graphs for the residue are shown separately due to this reason.
For the case of the normal operation of the system, with a required power at 1.65 MW, the reference controller sets the required level to 30 m and the system is started from the initial conditions. The level and the power graphs are shown in Figure 7 and Figure 8.
As shown in Figure 7 and Figure 8, the system behaves normally and it reaches both the required levels and required power in some time with a minimum level of error for both the pond levels and the generated power in steady state. Another point to consider is that there are comparisons of the level control of this model with the traditional single-pond model in [1], which are not repeated here. Another comparison about the power regulation can be made with the results of [17], but the scale of power is different, and although [17] still uses a fuzzy controller as our work, their approach is different as [17] only deals with power regulation with a static head under different head conditions, such as a low, medium, and high head and changing from power requirement from 2 MW to 10 MW or from 10 MW to 40 MW by only controlling the flow rate through the turbine.

6.2. Faults and Residues

As the main crux of this work relates to residue generation and fault identification, we shall be plotting the graphs for the residues of the faults. The residue generation mode consists of a fixed time window with the standard initial conditions and standard required power, which is 1.65 MW. It is unnecessary to plot the residue for the normal operation as it will be zero with noise added to r 1 and r 2 . The magnitudes of the saturation and leakage faults are arbitrarily taken at 10%; i.e., the faulty valve or gate will be in saturation mode if it is equal to or greater than 90% of its opening and it will be in leakage mode when it is equal to or less than 10% of its opening. The graphs of the residues are generated through the system sensors in MATLAB/Simulink, while to aid in calculations, the fault effects were taken mathematically. Now, let us look at the residues for each fault discussed above with the exception of those which do not have any effect on the residue in the normal mode of operation and also faults that are redundant after discussing these faults; i.e., faults of sluice gate w 2 and pond valve s 2 .

6.2.1. Saturation Fault of Sluice Gate

As discussed earlier, Equation (96) is used to generate the residue of fault f 1 of the sluice gates w 1 or w 2 ; it also was noted earlier that the effects of the saturation fault are only visible in the residue when the sluice gate is in its saturation region. This occurs when the system is in a transient region, and the levels of the ponds are below the required levels. When the system reaches its steady state, the sluice gate is no longer in its saturation mode, and the system starts behaving in its normal mode. Therefore, the residue for this fault is only visible in the transient region of the system. Although the exact mathematical model of this fault was only given for the directly affected pond (in this case pond 1), it was also stated that the effects of this fault would be transmitted to the other ponds and the output power. The residue graph for the saturation fault of w 1 is given in Figure 9. If the same fault is in w 2 , Residues 1 and 2 are swapped, while the rest of the residues will remain the same.
As the magnitude and the scales of the power residue are very different from the other residues, the power residue is shown separately for all the faults discussed here. During the transient state when the pond levels are lower than the required levels, the power generated depends on the head pond level as the turbine wicket gate may be fully open. As the head pond level is lower than the normal transient state, these effects appear in the power residue in the transient state and disappear as soon as the system reaches steady state, as shown in Figure 10. In the case of the saturation fault of w 2 , the power residue will remain the same.

6.2.2. Leakage Fault of the Sluice Gate

Equation (98) is used to compute the residue in case of the leakage fault f 2 of the sluice gate w 1 or w 2 . As discussed before, the effects of that fault are only visible when the system is in steady-state mode or when the pond levels are greater than the required levels. When the ponds are in the steady-state mode, i.e., the current levels are equal to or greater than the required level, the sluice gate goes into leakage mode. Due to this leakage, the amount of water entering the pond is greater than the water leaving it, causing a slow rise in the water level. The effect is more apparent in the primarily affected pond, then transmitting to head pond 0 and forward to the power and surge tank and back to the other pond. The residue graphs for the leakage fault f 2 of the sluice gate w 1 are shown in Figure 11. In the case of fault of w 2 , residues 1 and 2 are swapped.
The effects of the leakage fault are also transmitted to the output power of the turbine, and the output power will also start creeping up after the system has reached steady-state mode; therefore, the power will also creep up, as shown by the residue graph in Figure 12.

6.2.3. Saturation and Leakage Fault for the Sluice Gate

As discussed earlier, the f 3 fault is a combination of saturation and leakage faults, and its effect on the residue is during both the transient and steady-state regions. The residue graph for fault f 3 of the sluice gate w 1 is given in Figure 13. As stated before, for the same fault of w 2 , residues 1 and 2 are swapped.
Similarly, the power residue combines the previous two faults and is given in Figure 14. Although the power residue graph looks the same as in Figure 10, it is a combination of Figure 10 and Figure 12, this is because the power residue in Figure 10 has a very large magnitude as compared with Figure 12, and its effect looks suppressed.

6.2.4. Saturation Fault of the Pond Valve

Equation (101) is used to compute the residue in case of the fault f 1 of the pond valves s 1 or s 2 . As the effect of the saturation fault of the pond valve only appears when the system is in the transient region when the current pond level is lower than the required level, the valve cannot be fully opened and goes into saturation mode. Therefore, the effects of the saturation fault for the valve s 1 appear in the residue as shown below. As the effects of the leakage fault of the pond valve only appear when the system’s required levels are lower than the current level, the leakage fault of the pond valve is also undetectable in the current residue generation mode, as the residue is unchanged. The effects of the saturation fault for valve s 1 appear in the residue as shown in Figure 15; also, both the fault type f 1 and f 3 have exactly the same residue for valve s 1 .
Similarly, the effects of the fault f 1 of the pond valves appear only during the transient mode. The power residue graph for the f 1 fault of the pond valve s 1 is given in Figure 16; also, it is exactly the same as the f 3 fault.

6.2.5. Saturation Fault of the Turbine Wicket Gate

Equation (106) gives the residue in case of the fault f 1   of the turbine wicket gate G . As stated before, the turbine operates at near or more than 90% gate opening for most of the time during operation. When the system is in transient state, and the current pond and power levels are below the required levels, at this time, the turbine gate is at nearly full throttle to try to reduce the power error as soon as possible. If a saturation fault exists in the turbine gate, its effects will appear in the power residue. When the system reaches its steady state, the turbine is still in its saturation mode, and the power residue will continue to be nonzero. Although the effects of this fault only appear in the power residue, they are not back propagated towards the ponds and hydraulic system. As all the saturation and leakage faults tested have a 10% magnitude, the effects of the fault are limited to the turbine. However, if the saturation fault increased significantly, then the effects of the fault will also back propagate towards the hydraulic system, starting with the surge tank. In the current situation, the hydraulic system’s residue for the turbine gate’s saturation fault is the same as a normal residue (near zero). However, the power residue is always nonzero. Furthermore, as the effects of the leakage fault do not appear in the normal residue generation mode, the power residue for fault f 3 of the turbine wicket gate G is the same as the saturation fault and is given in Figure 17.

6.2.6. Undetectable Faults

Due to the nature of the saturation and leakage faults, the system behavior is indistinguishable from a faultless system. As long as the faulty component of the system is not operating in a faulty (saturation or leakage) region, these faults will remain undetected. Examples of these are the leakage faults of the pond valves and the turbine wicket gate, whose effects are only visible if the pond level is needed to be lowered significantly or the turbine is shutdown. Therefore, another special residue generation mode needs to be implemented, forcing the pond valves and the turbine gate to go into leakage mode, thus making the leakage faults detectable. By implementing the special residue generation mode, all the discussed faults can be detected by running it in conjunction with the normal residue generation mode. Implementation of a special residue generation mode is left for future work as these faults do not affect the system in steady state and thus do not require the intervention of fault-tolerant control.

6.3. Effect of Fault-Tolerant Control

As stated in the fault description section, the faults affect the system in a transient or steady state. The requirement for fault tolerance arises if the system starts behaving undesirably in the steady state or its behavior is harmful to the system in transient state. In these cases, while any fault must be detected and taken care of during scheduled maintenance, it is often not feasible for the system to be stopped during the operation. For this reason, it is more efficient for the system to take countermeasure and operate the system in lower efficiency mode rather than shutting down the system or to keep running it in faulty mode. Although fault compensation or tolerant action is not required to occur in the case of detection of each and every fault, some faults have long-term effects on the system outputs. In case of the faults discussed above, fault tolerance is required only for two cases of faults. The first case is the leakage fault of the sluice gate, and the other is the saturation fault of the turbine. In the current system, the output power is most important for the system’s proper operation. Therefore, for fault tolerance control, the output power is targeted for correction in case of the occurrence of a fault, while the pond levels are disregarded in favor of the output power. In the following section, the two cases that require fault tolerance are discussed below.

6.3.1. Sluice Gate Leakage Fault Tolerance

For the residue graphs for the sluice gate leakage faults, the power residue is nonzero in the steady state, and it keeps increasing. This will result in a slow but steady increase in the power output if left unchecked. The power residue graph shows that the residue is around 500 mark at the end of the simulation. This is due to the residue’s very high residue gain (around 100). The undesirable increase in the level of the head pond is due to the uncontrolled increase in pond 1 or 2. Although the power output increases by 5–6 watts compared to the normal operation, it will tend to snowball later and cause the plant to behave in unpredictable ways. So, a fault-tolerant action is needed to avoid or at least delay that unpredictable behavior. One of the easiest ways to delay that undesirable behavior is to have the head pond at a lower level than normal and have the turbine compensate for it. The fault tolerant controller sets the desired level of the head pond to a lower level and has the turbine compensate for the lower pond level. As shown in the power graph (Figure 18), although the power level of the fault tolerant system reaches the desired level a little while after the faulty system, it will remain at the desired level a lot longer than the faulty system. The pond graphs for this case is shown in Figure 19 and Figure 20, while the power graph is shown in Figure 18.

6.3.2. Turbine Saturation Fault Tolerance

As discussed in the earlier section, the effects of turbine saturation faults are present 99% of the time when it occurs. The saturation fault of the turbine also directly affects the power of the turbine, which is the most important output of the system. Therefore, it is vital to include fault compensation or fixing the fault as soon as possible. The output power is reduced due to the reduction in the flow-rate through the turbine, as shown in Equation (34). Furthermore, it cannot be increased, so the water level needs to be increased to increase the output power of the turbine. Therefore, after identifying the turbine saturation fault, the fault-tolerant controller increases the required level of the pond as shown in Figure 21, and the system functions as usual. Looking at the power graphs in comparison to the normal and the faulty operation (Figure 22), we see that the fault tolerant mode takes a somewhat long time to reach the desired power level as compared to the faultless system, while the faulty system fails to reach the desired level.

7. Conclusions and Future Directions

This paper analyzes the integration of a three-pond hydraulic system with a Francis turbine and adds two levels of control to the power generation. Next, some faults are added to the system, and the second part of the work deals with fault identification and then fault tolerance. The power control presented in this paper is adequate as it reduces the power error to nearly 100 watts of error. This error could be reduced further by introducing a different control scheme in the future. The main future direction of this work is to identify more types of faults in the system and a combination of faults. Another future direction is to discuss the detailed fault models in this paper, an example of which is discussed in the Appendix A in a separate paper. Furthermore, the fault tolerance is done by manipulating the required level of the head ponds to compensate for the faults; also, by having a fast technique to identify faults on the fly rather than running the system in fault identification mode periodically to identify the faults in the system. Another future direction is to have a rather large database of faults and fault combinations that could be identified by the fault identification system and the fault-tolerant control having more autonomy in manipulating the parameters of the system variables to run the system more effectively in fault-tolerant mode.

Author Contributions

Conceptualization, data curation, methodology, resources, validation, writing—original draft, writing—review and editing, A.S.; conceptualization, data curation, methodology, resources, validation, writing—original draft, writing—review and editing, formal analysis, funding acquisition, investigation, project administration, supervision, and visualization, A.U.K., M.I., G.H. and S.M.; writing—review and editing, formal analysis, funding acquisition, investigation, project administration, and visualization, E.S., A.W. and F.R.A. All authors have read and agreed to the published version of the manuscript.

Funding

The APC was funded by Taif University Researchers Supporting Project Number (TURSP-2020/331), Taif University, Taif, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to acknowledge the support from Taif University Researchers Supporting Project Number (TURSP-2020/331), Taif University, Taif, Saudi Arabia.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

In the main paper, we discussed the explicit effects of the faults on the directly affected state variables. As an extension to the above fault models, we shall discuss the implicit effects of the faults on the state variables that are not directly affected. As an example, we shall be taking the effects of the saturation fault f 1 for the pond valve s 1 . Rewriting the effected Equations (70) and (71):
The total effect of fault on pond 1 is given by rewriting Equation (70):
x 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 A t w 1 l 1 A d t
Similarly, the total effect of fault on pond 0 is given by rewriting Equation (71):
x 0 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t 0 t Q t A d t
Now for ease of notation, let us donate the x 1 and x 0 from the Equations (A1) and (A2) as x 1 f s 1 1 and x 0 f s 1 1 , respectively. For the duration of the Appendix, let us assume the normal state variables, x 1 and x 0 , as faultless, modifying Equations (A1) and (A2) in new notations as
x 1 f s 1 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t + 0 A t w 1 l 1 A d t
x 0 f s 1 1 = ȵ a A 0 t s 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) + s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t 0 t Q t A d t
Now let us rewrite Equations (A3) and (A4) in a simpler form as a combination of a normal value and faulty component:
x 0 f s 1 1 = x 0 + ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
Similarly,
x 1 f s 1 1 = x 1 ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t
Now, with the effects of the faults present in simplified terms in Equations (A5) and (A6), let us discuss the effects of the saturation fault of the pond valve on the other state variables. Now, rewriting Equation (31) for pond 2 with fault effects as
x 2 f s 1 1 = ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 f s 1 1 ) d t + 0 t w 2 l 2 A d t
Now, putting the value of x 0 f s 1 1 in Equation (A7):
x 2 f s 1 1 = ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( x 2 { x 0 + ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } ) d t + 0 t w 2 l 2 A d t
Now simplifying the equation,
x 2 f s 1 1 = ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ) d t + 0 t w 2 l 2 A d t
and
x 2 f s 1 1 = ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( x 2 x 0 ) d t + 0 t w 2 l 2 A d t + ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t )
Therefore, the expression for the level of pond 2 becomes
x 2 f s 1 1 = x 2 + ȵ a A 0 t s 2 2 g | x 2 x 0 | s g n ( ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t ) d t
For finding the effect of the fault on the surge tank, we consider Equation (32), but it depends upon the flow rate through the headrace, which in turn depends on the level of pond 0. Therefore, we consider the equation of head race (14):
d d t Q t = g A t L t ( x 0 x s ) C t Q t | Q t |
Integrating Equation (A12) to find the value of Q t   as
Q t = g A t L t ( 0 t x 0 d t 0 t x s d t ) 0 t C t Q t | Q t | d t
Now, with the explicit value of the flow-rate through the headrace, let us consider Equation (32) of the surge tank with the occurrence of the fault:
x s f s 1 1 = 0 t Q t f s 1 1 A s d t 0 t Q A s d t
Now, using the value of Q t f s 1 1 from Equation (A13) in the above Equation (A14):
x s f s 1 1 = 0 t g A t L t ( 0 t x 0 f s 1 1 d t 0 t x s d t ) 0 t C t Q t | Q t | d t A s d t 0 t Q A s d t
Simplifying:
x s f s 1 1 = 1 A s 0 t [ g A t L t ( 0 t x 0 f s 1 1 d t 0 t x s d t ) 0 t C t Q t | Q t | d t ] d t 0 t Q A s d t
Now putting the value of x 0 f s 1 1 in Equation (A16):
x s f s 1 1 = 1 A s 0 t [ g A t L t ( 0 t { x 0 + ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } d t 0 t x s d t ) 0 t C t Q t | Q t | d t ] d t 0 t Q A s d t
After separating the faulty term from Equation (A17):
x s f s 1 1 = 1 A s 0 t [ g A t L t ( 0 t x 0 d t 0 t x s d t ) 0 t C t Q t | Q t | d t ] d t 0 t Q A s d t + 0 t 1 A s [ 0 t ȵ a A { 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } d t ] d t
Now Equation (A18) can be rewritten as a combination of faultless and faulty state using Equation (A16):
x s f s 1 1 = x s + 0 t 1 A s [ 0 t ȵ a A { 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } d t ] d t
Now to find the effect of saturation fault of the pond valve on the output power, we consider the power Equation (34) as
P f s 1 1 = M r x 0 f s 1 1 n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Now putting the value of x 0 f s 1 1 in the power equation:
P f s 1 1 = M r { x 0 + ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Simplifying;
P f s 1 1 = M r x 0 n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ] + { ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } M r n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
After further simplification the power becomes
P f s 1 1 = P + { ȵ a A 0 t f s 1 1 2 g | x 1 x 0 | s g n ( x 1 x 0 ) d t } M r n r H 0 G [ a 1 n 2 n r 2 + b 1 n n r + c 1 ]
Therefore, we can find the explicit and implicit effects of the saturation fault f 1   for the pond valve s 1 as Equations (A3), (A4), (A11), (A19), and (A23) as a linear combination of faultless state variables and fault effects. Similar calculations can be done for the other faults discussed in the paper.

References

  1. Saeed, A.; Shahzad, E.; Aslam, L.; Qureshi, I.M.; Khan, A.U.; Iqbal, M. New Paradigm for Water Level Regulation using Three Pond Model with Fuzzy Inference System for Run of River Hydropower Plant. arXiv 2020, arXiv:201113131. [Google Scholar]
  2. Simani, S.; Alvisi, S.; Venturini, M. Fault tolerant control of a simulated hydroelectric system. Control Eng. Pr. 2016, 51, 13–25. [Google Scholar] [CrossRef]
  3. He, J.; Yang, Q.; Wang, Z. On-line fault diagnosis and fault-tolerant operation of modular multilevel converters—A comprehensive review. CES Trans. Electr. Mach. Syst. 2020, 4, 360–372. [Google Scholar] [CrossRef]
  4. Moloi, K.; Jordaan, J.A.; Abe, B.T. Development of a hybrid fault diagnostic method for power distribution network. In Proceedings of the 2019 IEEE AFRICON, Accra, Ghana, 25–27 September 2019; pp. 1–4. [Google Scholar]
  5. Moloi, K.; Akumu, A.O. Power distribution fault diagnostic method based on machine learning technique. In Proceedings of the 2019 IEEE PES/IAS PowerAfrica, Abuja, Nigeria, 20–23 August 2019; pp. 238–242. [Google Scholar]
  6. Trnka, P.; Hofreiter, M.; Sova, J. Combination of techniques for the fault diagnostics. In Proceedings of the 2017 18th International Carpathian Control Conference (ICCC), Sinaia, Romania, 28–31 May 2017; pp. 499–502. [Google Scholar]
  7. Mattera, C.G.; Quevedo, J.; Escobet, T.; Shaker, H.R.; Jradi, M. A Method for Fault Detection and Diagnostics in Ventilation Units Using Virtual Sensors. Sensors 2018, 18, 3931. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  8. Rombach, K.; Michau, G.; Fink, O. Contrastive Learning for Fault Detection and Diagnostics in the Context of Changing Operating Conditions and Novel Fault Types. Sensors 2021, 21, 3550. [Google Scholar] [CrossRef] [PubMed]
  9. De, V.; Lima, T.L.; Filho, A.C.L.; Belo, F.A.; Souto, F.V.; Silva, T.C.B.; Mishina, K.V.; Rodrigues, M.C. Noninvasive Methods for Fault Detection and Isolation in Internal Combustion Engines Based on Chaos Analysis. Sensors 2021, 21, 6925. [Google Scholar] [CrossRef] [PubMed]
  10. Komorska, I.; Puchalski, A. Rotating Machinery Diagnosing in Non-Stationary Conditions with Empirical Mode Decomposition-Based Wavelet Leaders Multifractal Spectra. Sensors 2021, 21, 7677. [Google Scholar] [CrossRef] [PubMed]
  11. Dong, L.; Guo, H.; Guo, Z.; Zheng, T. Fault Diagnosis Technique for Hydroelectric Generators using Variational Mode Decomposition and Power Line Communications. J. Phys. 2019, 1176, 062058. [Google Scholar]
  12. Xin, X.; Ni, W.; Sang, Y. A novel analysis method for fault diagnosis of hydro-turbine governing system. Proc. Inst. Mech. Eng. Part O J. Risk Reliab. 2017, 231, 164–171. [Google Scholar]
  13. Chen, W. Fault Detection and Isolation in Nonlinear Systems: Observer and Energy-Balance Based Approaches. Ph.D. Thesis, University of Duisburg-Essen, Duisburg, Germany, 2012. [Google Scholar]
  14. Khan, A.Q. Observer-Based Fault Detection in Nonlinear Systems. Ph.D. Thesis, University of Duisburg-Essen, Duisburg, Germany, 2010. [Google Scholar]
  15. Abid, M. Fault Detection in Nonlinear Systems: An Observer-Based Approach. Ph.D. Thesis, University of Duisburg-Essen, Duisburg, Germany, 2010. [Google Scholar]
  16. Yadav, O.; Kishor, N.; Fraile-Ardanuy, J.; Mohanty, S.R.; Pérez, J.I.; Sarasúa, J.I. Pond head level control in a run-of-river hydro power plant using fuzzy controller. In Proceedings of the 2011 16th International Conference on Intelligent System Applications to Power Systems, Hersonissos, Greece, 25–28 September 2011; pp. 1–5. [Google Scholar]
  17. Priyadharson, A.S.M.; Saravanan, M.S.; Gomathi, N.; Joshua, S.V.; Mutharasan, A. Energy efficient flow and level control in a hydro power plant using fuzzy logic. J. Comput. Sci. 2014, 10, 1703–1711. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Three-pond hydraulic system.
Figure 1. Three-pond hydraulic system.
Processes 10 00392 g001
Figure 2. Control scheme for the system showing three different controllers (in color).
Figure 2. Control scheme for the system showing three different controllers (in color).
Processes 10 00392 g002
Figure 3. Residue generation and pre-processing.
Figure 3. Residue generation and pre-processing.
Processes 10 00392 g003
Figure 4. Fault identification module.
Figure 4. Fault identification module.
Processes 10 00392 g004
Figure 5. Fault tolerance and fault compensation process.
Figure 5. Fault tolerance and fault compensation process.
Processes 10 00392 g005
Figure 6. Fault diagnostic scheme.
Figure 6. Fault diagnostic scheme.
Processes 10 00392 g006
Figure 7. Pond levels (0, 1, and 2) in normal operation at the desired power of 1.65 MW.
Figure 7. Pond levels (0, 1, and 2) in normal operation at the desired power of 1.65 MW.
Processes 10 00392 g007
Figure 8. Power level in normal operation and desired power of 1.65 MW.
Figure 8. Power level in normal operation and desired power of 1.65 MW.
Processes 10 00392 g008
Figure 9. Pond residues for the saturation fault of sluice gate w 1 .
Figure 9. Pond residues for the saturation fault of sluice gate w 1 .
Processes 10 00392 g009
Figure 10. Power residue for the saturation fault of sluice gate w 1 .
Figure 10. Power residue for the saturation fault of sluice gate w 1 .
Processes 10 00392 g010
Figure 11. Pond residues for the leakage fault of sluice gate w 1 .
Figure 11. Pond residues for the leakage fault of sluice gate w 1 .
Processes 10 00392 g011
Figure 12. Power residue for the leakage fault of sluice gate w 1 .
Figure 12. Power residue for the leakage fault of sluice gate w 1 .
Processes 10 00392 g012
Figure 13. Pond residues for the saturation and leakage fault of sluice gate w 1 .
Figure 13. Pond residues for the saturation and leakage fault of sluice gate w 1 .
Processes 10 00392 g013
Figure 14. Power residue for the saturation and leakage fault of sluice gate w 1 .
Figure 14. Power residue for the saturation and leakage fault of sluice gate w 1 .
Processes 10 00392 g014
Figure 15. Pond residues for the saturation fault of the pond valve s 1 .
Figure 15. Pond residues for the saturation fault of the pond valve s 1 .
Processes 10 00392 g015
Figure 16. Power residue for the saturation fault of the pond valve s 1 .
Figure 16. Power residue for the saturation fault of the pond valve s 1 .
Processes 10 00392 g016
Figure 17. Power residue for the saturation fault of turbine gate G .
Figure 17. Power residue for the saturation fault of turbine gate G .
Processes 10 00392 g017
Figure 18. Power with faulty and fault-corrected operation given a sluice gate w 1 leakage fault.
Figure 18. Power with faulty and fault-corrected operation given a sluice gate w 1 leakage fault.
Processes 10 00392 g018
Figure 19. Pond 0 with normal, faulty, and fault-corrected operation given a sluice gate w 1 leakage fault.
Figure 19. Pond 0 with normal, faulty, and fault-corrected operation given a sluice gate w 1 leakage fault.
Processes 10 00392 g019
Figure 20. Pond 1 with normal, faulty, and fault-corrected operation given a sluice gate w 1 leakage fault.
Figure 20. Pond 1 with normal, faulty, and fault-corrected operation given a sluice gate w 1 leakage fault.
Processes 10 00392 g020
Figure 21. Pond 0 with normal, faulty, and fault-corrected operation given a turbine gate G saturation fault.
Figure 21. Pond 0 with normal, faulty, and fault-corrected operation given a turbine gate G saturation fault.
Processes 10 00392 g021
Figure 22. Power with normal, faulty, and fault-corrected operation given a turbine gate G saturation fault.
Figure 22. Power with normal, faulty, and fault-corrected operation given a turbine gate G saturation fault.
Processes 10 00392 g022
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Saeed, A.; Khan, A.U.; Iqbal, M.; Albogamy, F.R.; Murawwat, S.; Shahzad, E.; Waseem, A.; Hafeez, G. Power Regulation and Fault Diagnostics of a Three-Pond Run-of-River Hydropower Plant. Processes 2022, 10, 392. https://doi.org/10.3390/pr10020392

AMA Style

Saeed A, Khan AU, Iqbal M, Albogamy FR, Murawwat S, Shahzad E, Waseem A, Hafeez G. Power Regulation and Fault Diagnostics of a Three-Pond Run-of-River Hydropower Plant. Processes. 2022; 10(2):392. https://doi.org/10.3390/pr10020392

Chicago/Turabian Style

Saeed, Ahmad, Adnan Umar Khan, Muhammad Iqbal, Fahad R. Albogamy, Sadia Murawwat, Ebrahim Shahzad, Athar Waseem, and Ghulam Hafeez. 2022. "Power Regulation and Fault Diagnostics of a Three-Pond Run-of-River Hydropower Plant" Processes 10, no. 2: 392. https://doi.org/10.3390/pr10020392

APA Style

Saeed, A., Khan, A. U., Iqbal, M., Albogamy, F. R., Murawwat, S., Shahzad, E., Waseem, A., & Hafeez, G. (2022). Power Regulation and Fault Diagnostics of a Three-Pond Run-of-River Hydropower Plant. Processes, 10(2), 392. https://doi.org/10.3390/pr10020392

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