Iranian Water Research Journal

Iranian Water Research Journal

Experimental and Data-Driven Investigation of Hydraulic Performance in Type-A Piano Key Weirs

Document Type : Original Article

Author
Assistant Professor, Department of Civil Engineering, Faculty of Engineering, Bu-Ali Sina University, Hamedan, Iran.
Abstract
Introduction
Piano key weirs (PKWs) are increasingly used as efficient spillway structures due to their ability to significantly increase discharge capacity without requiring an increase in dam crest width. This advantage makes them particularly suitable for dam rehabilitation and for sites where spillway expansion is constrained by topographic or structural limitations. Among different PKW configurations, Type‑A piano key weirs have received considerable attention because of their favorable hydraulic performance and structural simplicity. Despite extensive research on PKWs, the influence of geometric modifications—especially the inclination of side walls and their orientation relative to the flow direction—has not been sufficiently investigated. Side‑wall geometry can affect the flow pattern entering the inlet keys, the formation of separation zones, and the overall hydraulic efficiency of the spillway. Understanding these effects is essential for optimizing PKW performance. Therefore, the present study experimentally investigates the hydraulic behavior of Type‑A piano key weirs with different side‑wall inclinations and orientations. In addition, data‑driven models are employed to predict the discharge coefficient and evaluate the capability of machine‑learning techniques in modeling complex nonlinear hydraulic relationships.

Materials and Methods
The present study was conducted using a laboratory experimental setup designed to investigate the hydraulic performance of Type A piano key weirs under controlled flow conditions. The experiments were carried out in a rectangular flume with a constant width and adjustable discharge system that allowed accurate control of flow rates. Two geometric configurations of piano key weirs were tested: rectangular and trapezoidal inlet–outlet key shapes. The main objective was to evaluate how the inclination and orientation of the side walls influence the hydraulic efficiency and discharge coefficient of the structure. Side wall inclination angles of 5°, 7.5°, and 10° were selected based on common ranges used in hydraulic structures and previous studies on PKW optimization. For each inclination angle, two orientations were considered: inclination with the flow direction and inclination against the flow direction. These configurations allowed the evaluation of how flow alignment and entrance conditions affect discharge characteristics. During the experiments, the upstream water head was carefully measured using precise point gauges, while the flow discharge was controlled and monitored using calibrated flow measurement devices.
The discharge coefficient (C_d) was calculated for each experimental condition to quantify the hydraulic performance of the tested configurations. The collected dataset was then used for developing predictive data driven models. Several machine learning algorithms were employed, including Artificial Neural Networks (ANN), Extreme Gradient Boosting (XGBoost), Random Forest, and Support Vector Regression (SVR). The input parameters consisted of hydraulic and geometric variables such as upstream head and side wall inclination characteristics, while the output variable was the discharge coefficient. Model performance was evaluated using common statistical indicators including the coefficient of determination (R^2), root mean square error (RMSE), and mean absolute error (MAE). These indicators were used to assess the accuracy and reliability of each model and to determine the most suitable approach for predicting PKW discharge performance

Results and Discussion
The experimental results clearly demonstrate that the inclination and orientation of side walls significantly influence the hydraulic performance of Type A piano key weirs. Flow observations indicated that the side wall geometry directly affects the way water enters the inlet keys and how the flow is distributed along the crest. When the side walls were inclined against the flow direction, the incoming water was guided more effectively toward the inlet openings. This configuration improved the alignment of streamlines and reduced the formation of recirculation zones near the inlet edges. As a result, flow contraction and energy losses were reduced, leading to an increase in the discharge coefficient. In contrast, when the side walls were inclined with the flow direction, the inflow pattern tended to produce local separation zones near the entrance of the inlet keys. These separation regions reduced the effective flow area and caused additional energy dissipation. Consequently, the discharge coefficient obtained in these cases was generally lower than that of the opposite orientation.
The influence of the inclination angle was also evident in the experimental data. Increasing the side wall inclination from 5° to 7.5° and 10° generally improved hydraulic performance, particularly when the inclination was directed against the flow. Among the tested configurations, the best hydraulic behavior was observed for trapezoidal models with side wall inclinations between 7.5° and 10° oriented against the flow direction. These configurations provided the most favorable flow guidance and minimized hydraulic disturbances near the inlet region. A comparison between the two tested geometries showed that trapezoidal PKWs consistently produced higher discharge coefficients than rectangular ones under similar hydraulic conditions. The trapezoidal configuration appears to facilitate smoother flow transitions and better distribution of water across the inlet keys, which enhances the overall discharge efficiency. In some cases, the improvement in discharge coefficient reached approximately 15% compared with the corresponding rectangular configurations. The data driven modeling results further confirmed the experimental findings. Among the applied machine learning techniques, Artificial Neural Networks (ANN) and Extreme Gradient Boosting (XGBoost) showed the best predictive capability. These models successfully captured the nonlinear relationships between geometric parameters and hydraulic performance. The predictive accuracy of these models exceeded 98%, while the associated prediction errors remained below 2%, indicating excellent agreement with the experimental measurements. The results highlight the effectiveness of combining experimental investigations with modern machine learning techniques to better understand and predict the hydraulic performance of complex spillway structures such as piano key weirs.

Conclusions
This study investigated the effects of side wall inclination and orientation on the hydraulic performance of Type A piano key weirs using laboratory experiments and data driven modeling. The results showed that inclining the side walls against the flow direction significantly improves flow alignment and reduces energy losses, resulting in higher discharge coefficients. Trapezoidal configurations demonstrated superior performance compared with rectangular geometries, with improvements reaching approximately 15%. Machine learning models, particularly ANN and XGBoost, provided highly accurate predictions of the discharge coefficient. The findings provide useful guidance for optimizing PKW design and demonstrate the value of integrating experimental data with advanced predictive modeling techniques. The study contributes a validated experimental dataset and robust machine learning formulations that can assist designers in optimizing PKW configurations for enhanced hydraulic efficiency and safer spillway design.
Keywords
Subjects

1.    Akbari, M., Salmasi, F., Arvanaghi, H., Karbasi, M., and Farsadizadeh, D., 2020. Effective Geometrical parameters on discharge coefficient of gated piano key weir. Iranian Water Research Journal, 14(3), pp.115-121. [In Persian] https://doi.org/10.22093/iwrj.2020.222379.1764
 
2.    Anderson, R. M., and Tullis, B.P., 2013. Piano key weir hydraulics and labyrinth weir comparison. Journal of Irrigation and Drainage Engineering, 139(3), pp.246-253. https://doi.org/10.1061/(ASCE)IR.1943-4774.0000530
 
3.    Anderson, R.‌ M., and Tullis, B.‌P., 2012. Comparison of piano key and rectangular labyrinth weir hydraulics. Journal of Hydraulic Engineering, 138(4), pp.358–361. https://doi.org/10.1061/(ASCE)HY.1943‑7900.0000524
 
4.    Belaabed, F., and Ouamane, A., 2011. Contribution to the study of the piano key weirs submerged by the downstream level. In Labyrinth and Piano Key Weirs – PKW pp. 89–96. https://doi.org/10.1201/b11455-10
 
5.    Erpicum, S., Machiels, O., and Pirotton, M.,  2016. Numerical modelling of flow over piano key weirs: Influence of inlet and outlet geometries. Journal of Hydro‑Environment Research, 12,  pp.78–89. https://doi.org/10.1016/j.jher.2016.01.004
 
6.    Erpicum, S., Machiels, O., Pirotton, M., and Archambeau, P., 2023. Recent advances in piano key weir hydraulic performance. Journal of Hydraulic Research, 61(4), pp.567–582. https://doi.org/10.1080/00221686.2023.2173941.
 
7.    Autah, M., and De Freitas, M. H., 2017. Piano key weirs—A revolutionary type of spillway for large dams. Journal of Hydraulic Engineering, 143(12), 04017083. https://doi.org/10.1061/(ASCE)HY.1943-7900.0001391
 
8.    Fatahi-Alkouhi, R., Afaridegan, E., and Amanian, N., 2024. Discharge coefficient estimation of modified semi-cylindrical weirs using machine learning approaches. Stochastic Environmental Research and Risk Assessment, 38(8), pp.3177-3198. https://doi.org/10.1007/s00477-024-02685-z
 
9.    García, D., López, M., and Gutierrez, J., 2024. Hydraulic performance of piano key weirs under high-head flood conditions. Engineering Applications of Computational Fluid Mechanics, 18(1), pp.1123–1141. https://doi.org/10.1080/19942060.2024.2361298
 
10. Gharehbaghi, A., Ghasemlounia, R., Afaridegan, E., Haghiabi, A., Mandala, V., Azamathulla, H. M., and Parsaie, A., 2023. A comparison of artificial intelligence approaches in predicting discharge coefficient of streamlined weirs. Journal of Hydroinformatics, 25(4), pp.1513-1530. https://doi.org/10.2166/hydro.2023.185
 
11. Hashimoto, R., and Tani, K., 2025. Performance of stepped spillways under climate-enhanced floods. Water Resources Management, 39(2), pp.434–449. https://doi.org/10.1007/s11269-024-03782-4
 
12. Hosseini, S., Khosravi, V., and Kisi, O., 2024. Predicting discharge coefficient of weirs using XGBoost and Random Forest models. Journal of Hydraulic Engineering, 150(3), 04024015. https://doi.org/10.1061/(ASCE)HY.1943-7900.0002202
 
13. Izadinia, E., and Omidvar, M., 2021. Experimental evaluation of discharge coefficient of the combined culvert-piano key weir. Iranian Water Research Journal, 15(3), pp.25-36.[In Persian]
 
14. Johari, A., and Kisi, O., 2023. Hybrid ML models for prediction of discharge coefficients in non-linear weirs. Journal of Hydroinformatics, 25(3), pp.455–470. https://doi.org/10.2166/hydro.2023.051
 
15. Kabiri‑Samani, A., and Javaheri, A., 2012. Discharge coefficients for free and submerged flow over piano key weirs. Journal of Hydraulic Research, 50(1),  pp.114–120. https://doi.org/10.1080/00221686.2011.637021
 
16. Kim, S., and Park, J., 2023. Impact of sidewall inclination on flow separation in open channels. Journal of Hydraulic Research, 61(2), pp.224–240. https://doi.org/10.1080/00221686.2022.2141937
 
17. Kumar, R., and Chandra, R., 2024. ANN‑based prediction of flow over labyrinth and piano key weirs. Applied Water Science, 14(2), 221. https://doi.org/10.1007/s13201‑023‑01821‑9
 
18. Lempérière, F., and Ouamane, A., 2003. The Piano Keys weir: a new cost-effective solution for spillways. International Journal on Hydropower & Dams, 10(5), pp.144-149.
19. Li, Y., Tullis, B., and Erpicum, S., 2025. State‑of‑the‑art review of piano key weir research: 2015–2025. Water Research, 257, 120500. https://doi.org/10.1016/j.watres.2024.120500
 
20. Machiels, O., Erpicum, S., Archambeau, P., Dewals, B., and Pirotton, M., 2011. Experimental observation of flow characteristics over a piano key weir. In Labyrinth and Piano Key Weirs – PKW 2011, pp. 13–20. https://doi.org/10.1201/b11455-3
 
21. Machiels, O., Erpicum,‌ S., Pirotton,‌ M., Archambeau, P., and Dewals,‌ B.,  2014. Scale effects on the discharge capacity of piano key weirs. Journal of Hydraulic Research, 52(3),  pp.375–381. https://doi.org/10.1080/00221686.2014.888441
 
22. Pfister, M., and Schleiss, A.‌ J., 2013. Head–discharge relationships for piano key weirs. Journal of Hydraulic Engineering, 139(5),  pp.523–532. https://doi.org/10.1061/(ASCE)HY.1943‑7900.0000699
 
23. Rahmanian, M., and Poursharifi, M., 2024. Influence of side-wall inclination on the flow pattern and discharge coefficient of trapezoidal piano key weirs. Water Science and Engineering, 17(1), pp.45–60. https://doi.org/10.1016/j.wse.2023.11.003
 
24. Romero,‌ H., and López,‌ A.,  2020. Optimization of piano key weir geometry using CFD. Water Resources and Hydraulic Engineering, 11(2),  pp.124–135. https://doi.org/10.1061/JWRHEE.2020.0022
 
25. Salmasi,‌ F., and Kabiri‑Samani,‌ A.,  2013. Experimental study of flow over triangular piano key weirs. Iranian Journal of Science and Technology –‌ Transactions of Civil Engineering, 37(C1), pp. 67–75. https://doi.org/10.1007/s40996‑013‑0012‑x
 
26. Shokri, M. and Gholami, A., 2026. In press. Experimental evaluation of discharge coefficient and performance of sloped and non‑sloped rectangular and trapezoidal piano key weirs. Journal of Applied Research in Water and Wastewater. https://doi.org/10.22126/arww.2026.11468.1350
 
27. Zhang, R., Liu, C., and Chen, Y., 2023. Numerical investigation of flow characteristics and discharge efficiency of piano key weirs. Water, 15(7), 1298. https://doi.org/10.3390/w15071298
 
Volume 20, Issue 2 - Serial Number 61
(Is completing ...)
Summer 2026
Pages 19-34

  • Receive Date 12 February 2026
  • Revise Date 14 March 2026
  • Accept Date 14 March 2026
  • Publish Date 22 June 2026