Technical Papers
Sep 5, 2023

A Surrogate Model for Shallow Water Equations Solvers with Deep Learning

Publication: Journal of Hydraulic Engineering
Volume 149, Issue 11

Abstract

Physics-based models (PBMs), such as shallow water equations (SWEs) solvers, have been widely used in flood simulation and river hydraulics analysis. However, they are usually computationally expensive and unsuitable for parameter optimizations that need many runs. An alternative is the machine learning (ML) method, which can be used to construct computationally efficient surrogates for PBMs that can approximate their input-output dynamics. Among many ML techniques, convolutional neural network (CNN) is a prevalent method for image-to-image regressions on structured or regular meshes (e.g., mapping from the boundary conditions to flow solutions of SWEs). However, CNN-based methods have significant limitations because of their raster-image nature. Such methods cannot precisely capture the boundary geometry of obstacles and near-field flow features, which are of paramount importance to fluid dynamics. We introduced an efficient, accurate, and flexible neural network (NN) surrogate model [which is based on deep learning and can make point-to-point (p2p) predictions on unstructured meshes] called NN-p2p. The new method was evaluated and compared against CNN-based methods. NN-p2p improves the accuracy of the near-field flow prediction with a mean relative error of 0.56% for the velocity magnitude around piers with unseen length/width ratios. It also respects conservation laws more strictly than the CNN-based models and performs reasonably well for spatial extrapolation. The surrogate reduces computing time by almost 3-orders of magnitude in comparison with its corresponding PBM. Moreover, as a demonstration of the NN-p2p model’s practical applicability, we calculated drag coefficient using NN-p2p for piers of varying length-to-width ratios and obtained a novel linear relationship between the drag coefficient and the logarithmic transformation of the pier’s geometry.

Get full access to this article

View all available purchase options and get full access to this article.

Data Availability Statement

All model source code, case setup, and result data generated or used during the study are available in a repository hosted on GitHub (https://github.com/psu-efd/Surrogate_Modeling_SWEs). The source code for pyHMT2D can be found on GitHub at (https://github.com/psu-efd/pyHMT2D).

Acknowledgments

This work is supported by a seed grant from the Institute of Computational and Data Sciences at the Pennsylvania State University.

References

Abadi, M., A. Agarwal, P. Barham, E. Brevdo, Z. Chen, C. Citro, and G. S. Corrado. 2015. “TensorFlow: Large-scale machine learning on heterogeneous systems.” Accessed May 1, 2023. https://www.tensorflow.org/.
Aboelyazeed, D., C. Xu, F. M. Hoffman, J. Liu, A. W. Jones, C. Rackauckas, K. E. Lawson, and C. Shen. 2023. “A differentiable, physics-informed ecosystem modeling and learning framework for large-scale inverse problems: Demonstration with photosynthesis simulations.” Biogeosciences 20 (13): 2671–2692. https://doi.org/10.5194/bg-20-2671-2023.
Almasri, A., and S. Moqbel. 2017. “Numerical evaluation of AASHTO drag force coefficients of water flow around bridge piers.” J. Eng. Mater. Technol. 139 (2): 021001. https://doi.org/10.1115/1.4035253.
Amsallem, D., M. Zahr, Y. Choi, and C. Farhat. 2015. “Design optimization using hyper-reduced-order models.” Struct. Multidiscip. Optim. 51 (4): 919–940. https://doi.org/10.1007/s00158-014-1183-y.
Bhatnagar, S., Y. Afshar, S. Pan, K. Duraisamy, and S. Kaushik. 2019. “Prediction of aerodynamic flow fields using convolutional neural networks.” Comput. Mech. 64 (2): 525–545. https://doi.org/10.1007/s00466-019-01740-0.
Bihlo, A., and R. O. Popovych. 2021. “Physics-informed neural networks for the shallow-water equations on the sphere.” Preprint, submitted April 21, 2021. https://arxiv.org/abs/2104.00615.
Bilionis, I., and N. Zabaras. 2012. “Multi-output local gaussian process regression: Applications to uncertainty quantification.” J. Comput. Phys. 231 (17): 5718–5746. https://doi.org/10.1016/j.jcp.2012.04.047.
Bilionis, I., N. Zabaras, B. A. Konomi, and G. Lin. 2013. “Multi-output separable Gaussian process: Towards an efficient, fully Bayesian paradigm for uncertainty quantification.” J. Comput. Phys. 241 (May): 212–239. https://doi.org/10.1016/j.jcp.2013.01.011.
Brown, P. P., and D. F. Lawler. 2003. “Sphere drag and settling velocity revisited.” J. Environ. Eng. 129 (3): 222–231. https://doi.org/10.1061/(ASCE)0733-9372(2003)129:3(222).
Chollet, F. 2015. “Keras.” Accessed May 1, 2023. https://github.com/fchollet/keras.
Cigler, B. A. 2017. “US floods: The necessity of mitigation.” State Local Gov. Rev. 49 (2): 127–139. https://doi.org/10.1177/0160323X17731890.
Coppedè, A., S. Gaggero, G. Vernengo, and D. Villa. 2019. “Hydrodynamic shape optimization by high fidelity CFD solver and Gaussian process based response surface method.” Appl. Ocean Res. 90 (Sep): 101841. https://doi.org/10.1016/j.apor.2019.05.026.
Cuomo, S., V. S. Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Piccialli. 2022. “Scientific machine learning through physics–informed neural networks: Where we are and what’s next.” J. Sci. Comput. 92 (3): 88. https://doi.org/10.1007/s10915-022-01939-z.
Duraisamy, K. 2021. “Perspectives on machine learning-augmented Reynolds-averaged and large eddy simulation models of turbulence.” Phys. Rev. Fluids 6 (5): 050504. https://doi.org/10.1103/PhysRevFluids.6.050504.
Feng, D., H. Beck, K. Lawson, and C. Shen. 2023. “The suitability of differentiable, physics-informed machine learning hydrologic models for ungauged regions and climate change impact assessment.” Hydrol. Earth Syst. Sci. Discuss. 27 (12): 2357–2373. https://doi.org/10.5194/hess-27-2357-2023.
Feng, D., J. Liu, K. Lawson, and C. Shen. 2022. “Differentiable, learnable, regionalized process-based models with multiphysical outputs can approach state-of-the-art hydrologic prediction accuracy.” Water Resour. Res. 58 (10): e2022WR032404. https://doi.org/10.1029/2022WR032404.
Forghani, M., Y. Qian, J. Lee, M. W. Farthing, T. Hesser, P. K. Kitanidis, and E. F. Darve. 2021. “Application of deep learning to large scale riverine flow velocity estimation.” Stochastic Environ. Res. Risk Assess. 35 (5): 1069–1088. https://doi.org/10.1007/s00477-021-01988-0.
Ghorbanidehno, H., J. Lee, M. Farthing, T. Hesser, E. F. Darve, and P. K. Kitanidis. 2021. “Deep learning technique for fast inference of large-scale riverine bathymetry.” Adv. Water Resour. 147 (Jan): 103715. https://doi.org/10.1016/j.advwatres.2020.103715.
Guo, X., W. Li, and F. Iorio. 2016. “Convolutional neural networks for steady flow approximation.” In Proc., 22nd ACM SIGKDD Int. Conf. on Knowledge Discovery and Data Mining, 481–490. New York: Association for Computing Machinery.
Kingma, D., and J. Ba. 2014. “Adam: A method for stochastic optimization.” Preprint, submitted July 25, 2019. https://arxiv.org/abs/1412.6980.
Kurz, M., and A. Beck. 2020. “A machine learning framework for LES closure terms.” Preprint, submitted January 10, 2022. https://arxiv.org/abs/1412.6980.
Lai, Y. G. 2008. “SRH-2D version 2: Theory and user’s manual.” In Sedimentation and river hydraulics–two-dimensional river flow modeling. Washington, DC: US Dept. of Interior.
Lai, Y. G. 2010. “Two-dimensional depth-averaged flow modeling with an unstructured hybrid mesh.” J. Hydraul. Eng. 136 (1): 12–23. https://doi.org/10.1061/(ASCE)HY.1943-7900.0000134.
Lang, Y. D., A. Malacina, L. T. Biegler, S. Munteanu, J. I. Madsen, and S. E. Zitney. 2009. “Reduced order model based on principal component analysis for process simulation and optimization.” Energy Fuels 23 (3): 1695–1706. https://doi.org/10.1021/ef800984v.
Lapeyre, C. J., N. Cazard, P. T. Roy, S. Ricci, and F. Zaoui. 2020. “Reconstruction of hydraulic data by machine learning.” In Advances in hydroinformatics, 701–715. New York: Springer.
LeCun, Y., Y. Bengio, and G. Hinton. 2015. “Deep learning.” Nature 521 (7553): 436–444. https://doi.org/10.1038/nature14539.
Lee, J., H. Ghorbanidehno, M. W. Farthing, T. J. Hesser, E. F. Darve, and P. K. Kitanidis. 2018. “Riverine bathymetry imaging with indirect observations.” Water Resour. Res. 54 (5): 3704–3727. https://doi.org/10.1029/2017WR021649.
Liu, X. 2021. “pyHMT2D user guide.” Accessed May 1, 2023. https://github.com/psu-efd/pyHMT2D.
Liu, X., B. J. Landry, and M. H. Garcia. 2008. “Coupled two-dimensional model for scour based on shallow water equations with unstructured mesh.” Coastal Eng. 55 (10): 800–810. https://doi.org/10.1016/j.coastaleng.2008.02.012.
Liu, X., Y. Song, and C. Shen. 2022. “Bathymetry inversion using a deep-learning-based surrogate for shallow water equations solvers.” Preprint, submitted March 5, 2022. https://arxiv.org/abs/2203.02821.
Mao, Z., A. D. Jagtap, and G. E. Karniadakis. 2020. “Physics-informed neural networks for high-speed flows.” Comput. Methods Appl. Mech. Eng. 360 (Mar): 112789. https://doi.org/10.1016/j.cma.2019.112789.
NWS (National Weather Service). 2020. “Billion-dollar weather and climate disasters.” Accessed May 1, 2023. https://www.ncdc.noaa.gov/billions/.
Papanicolaou, A., M. Elhakeem, and B. Wardman. 2011. “Calibration and verification of a 2D hydrodynamic model for simulating flow around emergent Bendway weir structures.” J. Hydraul. Eng. 137 (1): 75–89. https://doi.org/10.1061/(ASCE)HY.1943-7900.0000280.
Qian, K., A. Mohamed, and C. Claudel. 2019. “Physics informed data driven model for flood prediction: Application of deep learning in prediction of urban flood development.” Preprint, submitted August 28, 2019. https://arxiv.org/abs/1908.10312.
Raissi, M., and G. E. Karniadakis. 2018. “Hidden physics models: Machine learning of nonlinear partial differential equations.” J. Comput. Phys. 357 (Mar): 125–141. https://doi.org/10.1016/j.jcp.2017.11.039.
Raissi, M., P. Perdikaris, and G. E. Karniadakis. 2019. “Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations.” J. Comput. Phys. 378 (Feb): 686–707. https://doi.org/10.1016/j.jcp.2018.10.045.
Rao, C., H. Sun, and Y. Liu. 2020. “Physics-informed deep learning for incompressible laminar flows.” Theor. Appl. Mech. Lett. 10 (3): 207–212. https://doi.org/10.1016/j.taml.2020.01.039.
Ribeiro, M. D., A. Rehman, S. Ahmed, and A. Dengel. 2020. “DeepCFD: Efficient steady-state laminar flow approximation with deep convolutional neural networks.” Preprint, submitted April 21, 2020. https://arxiv.org/abs/2004.08826.
Rodi, W. 1993. Turbulence models and their application in hydraulics. Boca Raton, FL: CRC Press.
Sekar, V., Q. Jiang, C. Shu, and B. C. Khoo. 2019. “Fast flow field prediction over airfoils using deep learning approach.” Phys. Fluids 31 (5): 057103. https://doi.org/10.1063/1.5094943.
Seyoum, S. D., Z. Vojinovic, R. K. Price, and S. Weesakul. 2012. “Coupled 1D and noninertia 2D flood inundation model for simulation of urban flooding.” J. Hydraul. Eng. 138 (1): 23–34. https://doi.org/10.1061/(ASCE)HY.1943-7900.0000485.
Shen, C. 2018. “A transdisciplinary review of deep learning research and its relevance for water resources scientists.” Water Resour. Res. 54 (11): 8558–8593. https://doi.org/10.1029/2018WR022643.
Shen, C., et al. 2023. “Differentiable modeling to unify machine learning and physical models and advance geosciences.” Preprint, submitted June 6, 2023. https://arxiv.org/abs/2301.04027.
Subedi, A. S., S. Sharma, A. Islam, and N. Lamichhane. 2019. “Quantification of the effect of bridge pier encasement on headwater elevation using HEC-RAS.” Hydrology 6 (1): 25. https://doi.org/10.3390/hydrology6010025.
Suribabu, C., R. Sabarish, R. Narasimhan, and A. Chandhru. 2011. “Backwater rise and drag characteristics of bridge piers under subcritical flow conditions.” Eur. Water 36: 27–35.
Tompson, J., K. Schlachter, P. Sprechmann, and K. Perlin. 2017. “Accelerating Eulerian fluid simulation with convolutional networks.” In Vol. 70 of Proc., Int. Conf. on Machine Learning, 3424–3433. Pittsburgh: International Conference on Machine Learning.
Tracey, B. D., K. Duraisamy, and J. J. Alonso. 2015. “A machine learning strategy to assist turbulence model development.” In Proc., 53rd AIAA Aerospace Sciences Meeting, 1287. Reston, VA: American Institute of Aeronautics and Astronautics.
Tsai, W. P., D. Feng, M. Pan, H. Beck, K. Lawson, Y. Yang, J. Liu, and C. Shen. 2021. “From calibration to parameter learning: Harnessing the scaling effects of big data in geoscientific modeling.” Nat. Commun. 12 (1): 1–13. https://doi.org/10.1038/s41467-021-26107-z.
Wu, J. L., H. Xiao, and E. Paterson. 2018. “Physics-informed machine learning approach for augmenting turbulence models: A comprehensive framework.” Phys. Rev. Fluids 3 (7): 074602. https://doi.org/10.1103/PhysRevFluids.3.074602.
Zhu, L., W. Zhang, J. Kou, and Y. Liu. 2019. “Machine learning methods for turbulence modeling in subsonic flows around airfoils.” Phys. Fluids 31 (1): 015105. https://doi.org/10.1063/1.5061693.
Zhu, Y., and N. Zabaras. 2018. “Bayesian deep convolutional encoder–decoder networks for surrogate modeling and uncertainty quantification.” J. Comput. Phys. 366 (Aug): 415–447. https://doi.org/10.1016/j.jcp.2018.04.018.

Information & Authors

Information

Published In

Go to Journal of Hydraulic Engineering
Journal of Hydraulic Engineering
Volume 149Issue 11November 2023

History

Received: Dec 28, 2021
Accepted: Jun 13, 2023
Published online: Sep 5, 2023
Published in print: Nov 1, 2023
Discussion open until: Feb 5, 2024

Permissions

Request permissions for this article.

ASCE Technical Topics:

Authors

Affiliations

Research Assistant Professor, Dept. of Civil and Environmental Engineering, Pennsylvania State Univ., State College, PA 16802. Email: [email protected]
Chaopeng Shen [email protected]
Associate Professor, Dept. of Civil and Environmental Engineering, Pennsylvania State Univ., State College, PA 16802. Email: [email protected]
Associate Professor, Dept. of Civil and Environmental Engineering, Institute of Computational and Data Sciences, Pennsylvania State Univ., 223B Sackett, State College, PA 16802 (corresponding author). ORCID: https://orcid.org/0000-0002-8296-7076. Email: [email protected]

Metrics & Citations

Metrics

Citations

Download citation

If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download.

View Options

Get Access

Access content

Please select your options to get access

Log in/Register Log in via your institution (Shibboleth)
ASCE Members: Please log in to see member pricing

Purchase

Save for later Information on ASCE Library Cards
ASCE Library Cards let you download journal articles, proceedings papers, and available book chapters across the entire ASCE Library platform. ASCE Library Cards remain active for 24 months or until all downloads are used. Note: This content will be debited as one download at time of checkout.

Terms of Use: ASCE Library Cards are for individual, personal use only. Reselling, republishing, or forwarding the materials to libraries or reading rooms is prohibited.
ASCE Library Card (5 downloads)
$105.00
Add to cart
ASCE Library Card (20 downloads)
$280.00
Add to cart
Buy Single Article
$35.00
Add to cart

Get Access

Access content

Please select your options to get access

Log in/Register Log in via your institution (Shibboleth)
ASCE Members: Please log in to see member pricing

Purchase

Save for later Information on ASCE Library Cards
ASCE Library Cards let you download journal articles, proceedings papers, and available book chapters across the entire ASCE Library platform. ASCE Library Cards remain active for 24 months or until all downloads are used. Note: This content will be debited as one download at time of checkout.

Terms of Use: ASCE Library Cards are for individual, personal use only. Reselling, republishing, or forwarding the materials to libraries or reading rooms is prohibited.
ASCE Library Card (5 downloads)
$105.00
Add to cart
ASCE Library Card (20 downloads)
$280.00
Add to cart
Buy Single Article
$35.00
Add to cart

Media

Figures

Other

Tables

Share

Share

Copy the content Link

Share with email

Email a colleague

Share