INTRODUCTION

Discharge estimation or measurement is one of the most important topics in all fields related to hydraulic and waterways. In this regards, so many researchers try to develop and present methods for estimating discharge. Among these researchers, few researches are based on the direct measurement of velocity such as floating objects, velocity meter (i.e. electromagnetic probes) and etc.; few researches are based on the measuring the water head over the hydraulic structures by making the control section (i.e. using weirs and etc.); few researches are based on the optimization methods and solving the flow equations; and few researches are based on the remote sensing and satellite images. Among these mentioned researches from past till now, using the hydraulic structures and making the control section is always interesting and useful for engineers due to the simplicity, accuracy and applicability of this method. Hence, few hydraulic structures were used separately in the natural and synthetic waterways such as weirs, slots, gates, parshall-flume and etc. which they have their own advantages and drawbacks. One hydraulic structure which is interesting for engineering and researchers in recent decade is combined structure of weir and gate.

Combined weir-gate structure has the advantages of both weir and gate. This important and useful structure can control the water head in the water way, measure the flow rate pass over/through the combined structure, avoiding the sedimentation behind the weir by passing the sediment from the gate and etc. Before 1985, there is low information of using this combined weir-gate structure; till Ahmad [2] studied the combination of rectangular weir with a rectangular gate. Ahmad [2] tried to find a discharge coefficient for this combined structure. However, his try is not successful due to the lack of sufficient data [25]. Then, few experimental studies were done to evaluate the combined weir-gate structure. Negm et al. [27] investigated the effect of geometry parameters on combined rectangular weir with inverse triangular gate with angle of 45° to 110°. Negm [25] evaluated the characteristic of free flow over the combined rectangular weir- contracted rectangular gate; and presented a regression equation for estimating discharge coefficient. El-Saiad et al. [16] evaluated the flow measurement of combined flow from low to high discharge for rectangular weir and triangular gate with angle of 45° to 124°. Besides, they present an equation for estimating discharge for the mentioned combined weir-gate. Alhamid et al. [3] evaluated the combined flow in the submerged condition, and presented an equation for their specific conditions. Similar to the Alhamid et al. [3], Negm et al. [28] investigated the effect of downstream submergence on the flow discharge of rectangular weir-triangular gate. They showed that submergence ratio of gate, effect the upstream water depth and flow discharge. This effect is somehow that by increasing the downstream submergence, the upstream water depth and flow discharge increased. Alhamid et al. [3] showed that in arid and semi arid areas, the combined structure has high efficiency and it can passed more suspended and bed load sediment. More details about bed load exist in the literature [5, 10].

Study of combined weir-gate structure still is interesting for researchers in recent decades, such as Ferro [18] is presented an equation for estimating discharge for flow over and under the broad rectangular gate based on the dimensional analyses. Negm et al. [26] are experimentally evaluated the combined rectangular weir-gate structure for various conditions such as different geometry, different bed slope of channel and etc.; and finally, they represent an equation for all geometry and hydraulic conditions. Dehghani et al. [15] are investigated the dimension of downstream scouring of combined weir-gate structure. Mohamed et al. [24] are introduced a new appearance of combined weir-gate which is a combination of broad rectangular weir without any contraction and three small pipes as a gate. They used the energy equation and dimensional analyses to show the efficiency of their structure. Balouchi and Rakhshanderoo [9] are experimentally evaluated the discharge coefficient of combined rectangular weir-triangular gate for various hydraulic and geometric conditions.

On the other hand, due to the high efficiency of intelligent systems for predicting the non-linear and complex problems, researchers interested to use these models. Among the studies that used intelligent systems regarding to hydraulic structures, below studies can be found. Bilhan et al. [12] and in the similar study Emiroghlu et al. [17], are evaluated the efficiency of artificial neural network to estimate discharge coefficient of side weirs. Their results showed that the artificial neural network models have better results than linear and non-linear regression models. Juma et al. [20] used and evaluated the efficiency of Multy Layer Perceptron (MLP) model to estimate discharge coefficient of semi-circular weirs.

Present study, try to evaluate the efficiency of Flow-3D software for simulating the flow over the combined triangular weir-rectangular gate in three dimensions and compute the discharge coefficient of this important structure. Then, using four intelligent system models to evaluate and compare the efficiency of these models. Hence, this paper consists of four parts. The second part is materials and methods which explained about the experimental and numerical methods and intelligent systems used in this study. The third part is discussion of results which discussed about the results obtained from 3D numerical simulation and intelligent systems results. The last section is conclusion which specifies the concluding remarks of results.

MATERIALS AND METHODS

Physical Modeling

The experimental part of this study was done in the hydraulic laboratory of Shahid Chamran University of Ahwaz, Iran [9]. The experimental sides of flume made with glass; and the length, width and height of the flume are 12, 0.25, and 0.5 m, respectively. The models are made with Plexiglas which the schematic of them and the involved parameters are shown in Fig. 1. The angle of triangular weir used in the Balouchi and Rakhshanderoo [9] models are constant and equal to 60°.

Fig. 1.
figure 1

Schematic of combined weir-gate structure [9].

Dimensionless Analysis

In order to find the effective dimensional parameters of triangular weir-rectangular gate of this study, Buckingham-theory were used. In this study, twelve independent parameters with three main quantities (length, mass and time) were considered. After following the steps of dimensional analyses, nine dimensionless parameters extract which show in Eq. (1).

$$f\left( {Re,~We,~Fr,{\theta },\frac{{{{Q}_{t}}}}{{\sqrt g {{h}^{{2.5}}}}},\frac{h}{d},\frac{h}{y},\frac{h}{b},\frac{h}{B}} \right).$$
(1)

In which Re, We and Fr are Reynolds, Weber and Froude number, respectively. Qt is the total discharge of combined structure and other parameters show in Fig. 1. It should be noted that B and θ are constant in this study. As the water diameter over the structure is high enough, the effect of surface tension (Weber number) can be ignored. Besides, as the Reynolds number is high, the effect of viscosity (Reynolds number) can also be ignored. According to the rules of dimensional analysis, the effect of velocity (and consequently Froude number) is the same as discharge and can be replaced with each other. Hence, the Froude number can be ignored in the Eq. (1). Moreover, one might name the term of \(\frac{{{{Q}_{t}}}}{{\sqrt g {{h}^{{2.5}}}}}\) as the dimensionless discharge or discharge coefficient (Cd).

Therefore, Eq. (1) can be shortened to Eq. (2) as follows:

$${{q}_{L}} = Cd = \frac{{{{Q}_{t}}}}{{\sqrt g {{h}^{{2.5}}}}} = f\left( {\frac{h}{d},\frac{h}{b},\frac{h}{y}} \right).$$
(2)

Governing Equations

Generally, the main governing equations of Flow-3D software are continuity and momentum equations in 3 dimensions of (x, y, z). The continuity equation show as below [19]:

$$\begin{gathered} {{V}_{F}}\frac{{\partial {\rho }}}{{{{\partial }_{t}}}} + \frac{\partial }{{\partial x}}\left( {{\rho }u{{A}_{x}}} \right) + R\frac{\partial }{{\partial y}}\left( {{\rho }v{{A}_{y}}} \right) \\ + \,\,\frac{\partial }{{\partial z}}\left( {{\rho }w{{A}_{z}}} \right) + {\xi }\frac{{{\rho }u{{A}_{x}}}}{x} = {{R}_{{{\text{DIF}}}}} + {{R}_{{{\text{SOR}}}}}, \\ \end{gathered} $$
(3)

where VF is the fractional volume open to flow, ρ is the density of fluid, RDIF is a turbulent diffusion term, and RSOR is a mass source. The velocity components (u, v, w) are in the coordinate directions (x, y, z) or (r, θ, z). Ax, Ay and Az are the fractional area open to flow in the x, y and z-direction, respectively. The coefficient R depends on the choice of coordinate system in the following way. Other information is related to this equation can be find somewhere else [19].

General momentum equations which are used in the Flow-3D software are show as below in the three dimensions (Eqs. (4)−(6)). In Eqs. (4)–(6), (Gx, Gy, Gz) are body accelerations, (fx, fy, fz) are viscous accelerations, (bx, by, bz) are flow losses in porous media or across porous baffle plates, and the final terms account for the injection of mass at a source represented by a geometry component [19]. The term Uw= (uw, vw, ww) is the velocity of the source component, which will generally be non-zero for a mass source. The term Us = (us, vs, ws) is the velocity of the fluid at the surface of the source relative to the source itself. More information is related to this equation can be find somewhere else [19].

$$\begin{gathered} \frac{{\partial u}}{{\partial t}} + \frac{1}{{{{V}_{F}}}}\left\{ {u{{A}_{x}}\frac{{\partial u}}{{\partial x}} + V{{A}_{y}}R\frac{{\partial u}}{{\partial y}} + w{{A}_{z}}\frac{{\partial u}}{{\partial z}}} \right\} - {\xi }\frac{{{{A}_{y}}{{V}^{2}}}}{{x{{V}_{F}}}} \\ = - \frac{1}{{\rho }}\frac{{\partial p}}{{\partial x}} + {{G}_{x}} + {{f}_{x}} - {{b}_{x}} - \frac{{{{R}_{{SOR}}}}}{{{\rho }{{V}_{F}}}}\left( {u - {{u}_{w}} - \delta {{u}_{s}}} \right), \\ \end{gathered} $$
(4)
$$\begin{gathered} \frac{{\partial V}}{{\partial t}} + \frac{1}{{{{V}_{F}}}}\left\{ {u{{A}_{x}}\frac{{\partial v}}{{\partial x}} + V{{A}_{y}}R\frac{{\partial v}}{{\partial y}} + w{{A}_{z}}\frac{{\partial v}}{{\partial z}}} \right\} + {\xi }\frac{{{{A}_{y}}uv}}{{x{{V}_{F}}}} \\ = - \frac{1}{{\rho }}\left[ {R\frac{{\partial p}}{{\partial y}}} \right] + {{G}_{y}} + {{f}_{y}} - {{b}_{y}} - \frac{{{{R}_{{SOR}}}}}{{{\rho }{{V}_{F}}}}\left( {v - {{v}_{w}} - \delta {{v}_{s}}} \right), \\ \end{gathered} $$
(5)
$$\begin{gathered} \frac{{\partial w}}{{\partial t}} + \frac{1}{{{{V}_{F}}}}\left\{ {u{{A}_{x}}\frac{{\partial w}}{{\partial x}} + v{{A}_{y}}R\frac{{\partial w}}{{\partial y}} + w{{A}_{z}}\frac{{\partial w}}{{\partial z}}} \right\} \\ = - \frac{1}{{\rho }}\frac{{\partial p}}{{\partial z}} + {{G}_{z}} + {{f}_{z}} - {{b}_{z}} - \frac{{{{R}_{{SOR}}}}}{{{\rho }{{V}_{F}}}}\left( {w - {{w}_{w}} - \delta {{w}_{s}}} \right). \\ \end{gathered} $$
(6)

Intelligent Systems MLP Model

MLP is the most famous model of artificial neural networks (ANN). Figure 2 shows a simple configuration of a feed forward three layer MLP model used in this study. Feed forward means that all the neurons are received inputs from the left hand side. Inputs of model are introduced in the first layer. It should be noted that the main process is not in the first layer, and the main process of model start by the weights and information which are exist in the joints and neurons of hidden layer. Then the hidden layer, generate outputs in the last or third layer by the transformation of inputs with an appropriate nonlinear transfer function [21].

Fig. 2.
figure 2

Simple configuration of a feed forward three layer MLP model.

In order to find the appropriate weights that mentioned above, the model should have a training stage. Training stage includes a learning process during which input and known output data are provided to the model and the values of the weights are adjusted to optimize the accuracy of the model output [8]. The ANN model training process was continued until the goodness of fit (e.g., the sum of squared errors) dropped below a pre-determined value or until the number of training epochs exceeded a specific value [1]. After successful training, the model was tested with a validation data set and the accuracy of the model’s output was evaluated by comparing the model output with observed values.

RBF Model

This kind of artificial neural network consider a radial range around the data which each input data located in this radial range, the input data involved in the model process. Radial basis function (RBF) model always has three layers in its configuration. These three layers are named as input, hidden and output layer. It should be noted that the number of neurons in the hidden layer was set to the number of observation data inputs, and a Gaussian function was used as the transfer function for this layer [11]. Training stage of the RBF models are: (i) determining the basis functions of the hidden layer and (ii) determining the weights of the connections or joints to the output layer. More explanations and details of RBF models and their applications can be found elsewhere [13, 23].

GRNN Model

Generalized Regression Neural Networks (GRNN) is a kind of feed forward ANN which introduced by Specht [32] for the first time. GRNN is the back propagation probabilistic neural network which is used to estimate the continuous variables. Generally, GRNN has four layers named input, pattern, summation and output layer. The first layer is fully connected to the second, pattern layer, where each unit represents a training pattern and its output is a measure of the distance of the input from the stored patterns [14]. Each pattern layer unit is connected to the two neurons in the summation layer: S-summation neuron and D-summation neuron. This model does not need the repetitious training process and worked based on the non-linear regression theory [22].

M5P Model

Quinlan [30] is the pioneer researcher to introduce the M5P models based on the tree division method. This model is used to relate the dependent with independent variables. Besides, M5P model is used for both quantitative and qualitative data, in contrast with decision tree model which used just for qualitative data [30, 31]. M5P model is similar to the Piece-wise linear functions which is a combination of linear regression and tree regression that has a numerous application in various fields of study. Regression model present a regression equation for space of total data, while the tree regression model divide data set to some subsets which named leaves. Then, introduce a numerical label to each leave. Replacing the linear regression equation by this label to predict continues variables is the task that M5P is done. Structure of decision tree is like a tree that consist of root, branches, nodes and leaves which are drawn from up to down. In other words, root is the first node which is located at the top, and a chain of nodes and branches links to reach the leaves. Branches consist of a numerical range which start from parent nodes and end to the child node. In the M5P model, there are two branch crotches from each parent node.

Developing of decision tree is started with dividing the data to some branches and crotches. This division is done by maximizing the reduction in standard deviation of data in child node. While the reduction in standard deviation of data in child node is not possible, the parent node is not divided and no leaf is developed in the last node. The reduction in standard deviation of child node (SDR) is calculated from the below equation [29]:

$${\text{SDR}} = sd\left( T \right) - \sum \frac{{\left| {{{T}_{i}}} \right|}}{{\left| T \right|}}sd\left( {{{T}_{i}}} \right),$$
(7)

where T is the input data to the parent node, Ti is the subset of input data to the parent node and sd is the standard deviation.

RESULTS AND DISCUSSION

According to the importance of combined weir-gate structure which explained in the Introduction, this section start with simulating the flow over the combined triangular weir-rectangular gate structure and then follow by evaluating the effect of dimensionless parameters on the discharge coefficient. Then, four intelligent systems models (MLP, RBF, GRNN and M5P) prepared to estimate the discharge coefficient. The results of these models evaluate and compare with each other by doing comprehensive accuracy analyses.

Physical Model versus Numerical Model

In this study, by considering the RNG model and discharge as a boundary condition; four combined weir-gate structure simulated with different geometry. These four different weir-gate structures named as model 1 to 4, and the details of them are as below:

Model 1: with gate width of 0.05 m, gate height of 0.0125 m and y of 0.27 m.

Model 2: with gate width of 0.05 m, gate height of 0.025 m and y of 0.26 m.

Model 3: with gate width of 0.05 m, gate height of 0.0375 m and y of 0.24 m.

Model 4: with gate width of 0.05 m, gate height of 0.05 m and y of 0.23 m.

Figure 3 shows a 3D view of a sample weir-gate simulation. In the simulator like to the laboratory, at the starting time the water comes into the flume till reach the final elevation at the upstream of structure and the model and flow were stable and steady. It should be noted that the results of this study are in steady flow. Differences between steady and unsteady flow were discussed in the literature [6, 7].

Fig. 3.
figure 3

3D view of a sample weir-gate simulation.

Figures 4a–4d show a comparison of water head (h) of numerical model versus physical model for model 1 to 4, respectively. The points in these figures are represents for various discharges. According to these figures, the R2 are 0.996, 0.989, 0.987 and 0.986, respectively for model 1 to 4. These values of correlation coefficient show that the accuracy of results for all models are good and the numerical model works very well in simulation the water head over the combined structure. Therefore, it can be concluded that the Flow-3D is applicable in simulation of flow over the triangular weir-rectangular gate, in this study.

Fig. 4.
figure 4

Comparison of water head (h) of numerical versus physical model for model 1 to 4 (a–d).

Figures 5a–5d show the variation of numerical discharge coefficient with discharge for model 1 to 4, respectively. It is obvious in this figure that in all models, the discharge coefficient decreases as discharge increase. Moreover, the range of discharge coefficient is (0.31–0.78), (0.28–0.9), (0.32–0.56) and (0.35–0.86) for model 1 to 4, respectively. Hence, the range of discharge coefficient of combined triangular weir-rectangular gate of this study is between (0.3–0.9), respectively.

Fig. 5.
figure 5

Variation of numerical discharge coefficient with discharge for model 1 to 4 (a–d).

Table 1 shows the results of goodness of fit (RMSE, MAE and MARE) for discharge coefficient (Cd) and water head (h) of model 1 to 4 and all models data. One can observe in the Table 1 that the values of RMSE, MAE and MARE for model 1 to 4 and all models are good for both discharge coefficient and water head. In more details, the RMSE, MAE and MARE of all models are 0.0673, 0.221 and 0.295 for discharge coefficient and 0.0041, 0.061 and 0.184 for water head, respectively; which show a high accuracy in estimation of discharge coefficient, water head and applicability of Flow-3D software.

Table 1.   Results of goodness of fit for discharge coefficient and water head of model 1 to 4 and all models data

Effect of Non-Dimensional Parameters on Cd

Based on the dimensional analyses which explained before, the discharge coefficient of present study is related to three non-dimensional parameters of h/b, h/d and h/y. In this section, try to evaluate the effect of these non-dimensional parameters on discharge coefficient by using the numerical data. Figure 6 shows the variation of numerical discharge coefficient with h/b, h/d and h/y for model 2. One can observe from Fig. 7 that by increasing the dimensionless parameters (h/b, h/d and h/y), the discharge coefficient decreases. In other words, there is inverse relation between the Cd and the effective non-dimensional parameters in this study.

Fig. 6.
figure 6

Variation of numerical discharge coefficient with h/b, h/d and h/y for model 2.

Fig. 7.
figure 7

Predicted versus the observed discharge coefficient for MLP model.

Intelligent Systems

Based on the objectives of this study and the high efficiency of intelligent systems in estimation of hydraulic parameters, four intelligent system models (MLP, RBF, GRNN and M5P) prepared to estimate discharge coefficient of combined triangular weir-rectangular gate. It should be noted that the input parameters to the models are h/b, h/d and h/y; and the output is the discharge coefficient (Cd). Moreover, the procedure of runs of each model is using the train data set for training the model and then using the validation data set to validate and test the results. Hence, 70% of data used as a train stage and the rest 30% of total data used as a validation stage. In the following, the results of these models were evaluated and compared with each other to find the superior model in this study.

MLP Model

Brief explanations about the MLP exist in the Materials and Methods section. In this study, after so many trial and errors a MLP model with three layer and 11 neurons in the hidden layer were choose. Figure 7 shows the predicted discharge coefficient versus the observed one for MLP model. It is obvious from this figure that the results are very good and MLP model can predict Cd with high accuracy (R2 = 0.958).

RBF Model

Brief explanations about the Radial Basis Function (RBF) exist in the Materials and Methods section. In this study, after so many trial and errors a RBF model with radial of 8 and 9 neurons were choose. Figure 8 compared the predicted discharge coefficient with the observed one for RBF model. One can see from this figure that the results are very good and RBF model can predict Cd well (R2 = 0.85). However, the correlation coefficient of MLP model is better than RBF.

Fig. 8.
figure 8

Predicted versus the observed discharge coefficient for RBF model.

GRNN Model

Brief explanations about the Generalized Regression Neural Networks (GRNN) exist in the Materials and Methods section. Figure 9 shows the predicted discharge coefficient versus the observed one for GRNN model. One can see from this figure that the results are good and GRNN model can predict Cd well (R2 = 0.837). However, the correlation coefficient of MLP model is better than GRNN.

Fig. 9.
figure 9

Predicted versus the observed discharge coefficient for GRNN model.

M5P Model

Brief explanations about the tree model (M5P) exist in the Materials and Methods section. According to the data used in this study, M5P model makes a tree with two branches. Figure 10 shows the predicted discharge coefficient versus the observed one for M5P model. It is obvious from this figure that the results are very good and M5P model can predict Cd with high accuracy (R2 = 0.911). Although the correlation coefficient of M5P better than RBF and GRNN. But, the MLP correlation coefficient is better than GRNN.

Fig. 10.
figure 10

Predicted versus the observed discharge coefficient for M5P model.

Superior Model

In order to find the superior models in this study accuracy analyses and comparison of results with each other are needed. As mentioned before, all models used in this study (MLP, RBF, GRNN and M5P) has both training and validation stage. Therefore, evaluating the accuracy analyses in training, validation and total data set for all models are important. Figure 11 compared the observed discharge coefficients of triangular weir-rectangular gate with the results of MLP, RBF, GRNN and M5P models in training stage. One can see from this figure that the MLP model matched better than others with observed data and GRNN is not impressive in compare with other models.

Fig. 11.
figure 11

Comparison between the observed Cd with the results of MLP, RBF, GRNN and M5P models in training stage.

As the validation stage is more important than training stage for testing the applicability of models; Fig. 12 drawn for comparing the observed discharge coefficient with MLP, RBF, GRNN and M5P results in validation stage. Similar to the training stage, it can be concluded from this figure that the MLP model matched better than others with observed data and the GRNN results is not impressive in compare with other models.

Fig. 12.
figure 12

Comparison between the observed Cd with the results of MLP, RBF, GRNN and M5P models in validation stage.

Figures 11 and 12 show the visual comparison of training and validation data sets of models. In order to evaluate and compare the models in more details, the accuracy analyses by using various statistical indices were done and represent in Table 2. These statistical indices are R2, Mean Absolute Error (MAE), Mean Absolute Relative Error (MARE), Root Mean Square Error (RMSE) and Nash–Sutcliffe Efficiency (NSE). It should be noted that if the values of MAE, MARE and RMSE are near to zero, and if the values of NSE and R2 are near to one (or 100 if representing as percentage); it means the result are more accurate. Besides, in order to evaluate the results in a better way, the ranking scheme is choose. The best results in the ranking scheme received a first ranking number (i.e. 1) and the worst one is the last ranking number (i.e. 4 in this study); and other results sorted between 1 and 4 based on their accuracy.

Table 2.   Accuracy analyses for training, validation and total data sets for all models

One can be seen in Table 2 that the MLP model has the best results in training, validation and total data sets by ranking number of 5 for all of them. After that, M5P show the best result with ranking number of 10, 11 and 10 for training, validation and total data sets, respectively. Then, the third place belongs to the RBF model by having the ranking number of 16, 14 and 15 for training, validation and total data sets, respectively. And in the last place, GRNN exist with the ranking number of 19, 20 and 20 for training, validation and total data sets, respectively. Therefore, based on the comprehensive accuracy analyses, one can suggest the MLP model as the superior intelligent system model and GRNN as the poorest one among other models to predict discharge coefficient of triangular weir-rectangular gate in this study.

CONCLUSIONS

In this study, based on the importance of combined weir-gate structure, flow over four combined triangular weir-rectangular gate simulated with different geometry via Flow-3D software. Then, dimensional analyses were done and three effective non-dimensional parameters of h/b, h/d and h/y were introduced to the four intelligent system models (MLP, RBF, GRNN and M5P) as input to predict Cd as output. The total data set divided into two parts as 70% for training stage and 30% for validation stage. Then, by doing a comprehensive accuracy analyses with computing the statistical indices (R2, MAE, MARE, RMSE and NSE), results were evaluated and compared with each other. Hence, the following bullets can represent as conclusion of results:

By comparing the results of water head and discharge coefficient of experimental data with numerical model, one can be concluded that the Flow-3D is applicable in simulation of flow over the triangular weir-rectangular gate, in this study.

It is obvious in this figure that in all models the discharge coefficient decreases as discharge increase. Moreover, the range of discharge coefficient is (0.3−0.9) in this study.

Increasing the effective dimensionless parameters (h/b, h/d and h/y), decreased the discharge coefficient. In other words, there is inverse relation between the Cd and the effective non-dimensional parameters in this study.

Results of evaluating the intelligent systems by accuracy analyses show that models used in this study can be sort due to the accuracy in estimating discharge coefficient as MLP, M5P, RBF and GRNN, respectively (by ranking number of 5, 10, 16 and 19, respectively).

The superior model in this study is MLP for estimating discharge coefficient of triangular weir-rectangular gate.