Hybrid FEM–PINN Framework for 2D Shallow-Water Flow Simulation and Error Analysis

preprint OA: closed
Full text JSON View at publisher

Abstract

Abstract Accurate and efficient simulation of shallow water dynamics remains one of the most challenging tasks in computational hydraulics due to the inherent trade-off between physical conservation and numerical stability. Conventional finite element methods (FEM) are known for their strong adherence to conservation principles, particularly mass balance, yet they frequently suffer from excessive diffusion, oscillations, and limited adaptability when dealing with highly nonlinear or data-sparse environments. In contrast, physics-informed neural networks (PINNs) have emerged as powerful tools that embed governing equations into the training of deep learning models, thereby providing smooth, data-driven solutions even in the absence of dense measurements. However, the standalone application of PINNs is restricted by weak enforcement of physical invariants, accumulation of errors over long-time horizons, and difficulties in achieving robust convergence. This methodological gap highlights the urgent need for a hybrid framework that can combine the complementary strengths of FEM and PINNs. The present study introduces an innovative hybrid FEM+PINN framework designed to close this gap. FEM is first employed to generate high-fidelity snapshots of the shallow water system, which serve as structured training data to guide the PINN component. The PINN simultaneously incorporates the shallow water governing equations, conservation constraints, and boundary conditions, ensuring that physical laws are respected during learning. By merging the conservation properties of FEM with the flexibility and adaptivity of PINNs, the proposed model achieves a balance between accuracy, robustness, and generalization. The training strategy further implements collocation sampling, gradient clipping, and dynamic weighting of data and PDE losses to enhance stability across epochs. The results confirm the clear advantages of the hybrid approach. Quantitatively, the water depth h achieves a root mean square error (RMSE) of 0.0461 and mean absolute error (MAE) of 0.0403, while the momentum components hu and hv exhibit RMSE values of 0.1265 and 0.1, respectively. Mass conservation is preserved with deviations limited to 3.55%, whereas energy conservation, although not exact, demonstrates controlled systematic accumulation rather than instability. The training loss decreases rapidly from an initial value of 6.0×105 to below 2.0×104 within 60 epochs, confirming convergence without oscillatory artifacts. Spatial error distributions remain smooth and symmetric, error histograms demonstrate strong clustering near zero, and flow field visualizations highlight coherent structures without noise. This study fills a crucial methodological gap by demonstrating that neither FEM nor PINNs alone can fully meet the requirements of accuracy, conservation, and stability in shallow water modeling. The hybrid FEM+PINN framework provides a novel, physically consistent, and computationally efficient solution. Its ability to integrate classical numerical rigor with machine learning adaptability marks a significant advancement for data-driven hydraulics and paves the way for next-generation models in environmental and engineering fluid dynamics.
Full text 34,836 characters · extracted from preprint-html · click to expand
Hybrid FEM–PINN Framework for 2D Shallow-Water Flow Simulation and Error Analysis | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Hybrid FEM–PINN Framework for 2D Shallow-Water Flow Simulation and Error Analysis Hamid Ebrahimi, Atefe Morovati This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7796717/v1 This work is licensed under a CC BY 4.0 License Status: Under Review Version 1 posted 5 You are reading this latest preprint version Abstract Accurate and efficient simulation of shallow water dynamics remains one of the most challenging tasks in computational hydraulics due to the inherent trade-off between physical conservation and numerical stability. Conventional finite element methods (FEM) are known for their strong adherence to conservation principles, particularly mass balance, yet they frequently suffer from excessive diffusion, oscillations, and limited adaptability when dealing with highly nonlinear or data-sparse environments. In contrast, physics-informed neural networks (PINNs) have emerged as powerful tools that embed governing equations into the training of deep learning models, thereby providing smooth, data-driven solutions even in the absence of dense measurements. However, the standalone application of PINNs is restricted by weak enforcement of physical invariants, accumulation of errors over long-time horizons, and difficulties in achieving robust convergence. This methodological gap highlights the urgent need for a hybrid framework that can combine the complementary strengths of FEM and PINNs. The present study introduces an innovative hybrid FEM+PINN framework designed to close this gap. FEM is first employed to generate high-fidelity snapshots of the shallow water system, which serve as structured training data to guide the PINN component. The PINN simultaneously incorporates the shallow water governing equations, conservation constraints, and boundary conditions, ensuring that physical laws are respected during learning. By merging the conservation properties of FEM with the flexibility and adaptivity of PINNs, the proposed model achieves a balance between accuracy, robustness, and generalization. The training strategy further implements collocation sampling, gradient clipping, and dynamic weighting of data and PDE losses to enhance stability across epochs. The results confirm the clear advantages of the hybrid approach. Quantitatively, the water depth h achieves a root mean square error (RMSE) of 0.0461 and mean absolute error (MAE) of 0.0403, while the momentum components hu and hv exhibit RMSE values of 0.1265 and 0.1, respectively. Mass conservation is preserved with deviations limited to 3.55%, whereas energy conservation, although not exact, demonstrates controlled systematic accumulation rather than instability. The training loss decreases rapidly from an initial value of 6.0×105 to below 2.0×104 within 60 epochs, confirming convergence without oscillatory artifacts. Spatial error distributions remain smooth and symmetric, error histograms demonstrate strong clustering near zero, and flow field visualizations highlight coherent structures without noise. This study fills a crucial methodological gap by demonstrating that neither FEM nor PINNs alone can fully meet the requirements of accuracy, conservation, and stability in shallow water modeling. The hybrid FEM+PINN framework provides a novel, physically consistent, and computationally efficient solution. Its ability to integrate classical numerical rigor with machine learning adaptability marks a significant advancement for data-driven hydraulics and paves the way for next-generation models in environmental and engineering fluid dynamics. Shallow Water Equations Physics-Informed Neural Networks (PINN) Finite Element Method (FEM) Hybrid Modeling Data-Driven Simulation Hydrodynamics Full Text Cite Share Download PDF Status: Under Review Version 1 posted Editor invited by journal 26 Feb, 2026 Reviewers agreed at journal 08 Oct, 2025 Reviewers invited by journal 08 Oct, 2025 Editor assigned by journal 08 Oct, 2025 First submitted to journal 07 Oct, 2025 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-7796717","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":526599524,"identity":"8bdb894f-ad6e-46fe-bac1-28335a66ebaf","order_by":0,"name":"Hamid Ebrahimi","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABHUlEQVRIie2RMUvEMBiG39DBpaVrBzn/QsThEI/7LQ0H59IWocttZrKL4NpB9C9UXG5M/QYHo10PnNx7oDgdHGhauUXb09EhD2QIycP7Jh9gsfxDuFnKBULAhQIfCek4Ekx+Has/KNNUOux3BRvFQKft/Y3SxXDnQagao2SYPZZ3i5MqvsiYZKs5wc8Uo9lP5fA8LspLTNNdnYQU8ec4JyYdTxMCHaLUHcVUXJALEjki3iqyUdgZAQug7CjIq2WjfIjcrxvlSVxTU8woe33Kok1RIg/aFCUKo8AzCu9VluYtfJIGQZsyETdGIU8fu/tayO5i8e1rPRsngR8dvEfrsbiqqHxZzY8Gg3uit97P5t/2Cu2Ytk3HYrFYLNv4BBBbenHpREJoAAAAAElFTkSuQmCC","orcid":"https://orcid.org/0009-0009-8020-492X","institution":"Shahid Beheshti University","correspondingAuthor":true,"prefix":"","firstName":"Hamid","middleName":"","lastName":"Ebrahimi","suffix":""},{"id":526599525,"identity":"34df6ee1-0779-410b-a7a3-e3d5ca4d1d46","order_by":1,"name":"Atefe Morovati","email":"","orcid":"","institution":"Shahid Beheshti University","correspondingAuthor":false,"prefix":"","firstName":"Atefe","middleName":"","lastName":"Morovati","suffix":""}],"badges":[],"createdAt":"2025-10-07 07:12:14","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7796717/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7796717/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":93983127,"identity":"97456b6d-43e3-468b-acc1-65c8f676cc6d","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"xml","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":8967,"visible":true,"origin":"","legend":"","description":"","filename":"warmWARMD2503001.xml","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/69c669f727bc76e21c729015.xml"},{"id":93983863,"identity":"91a0897a-2629-45ea-b82b-2e41aee4b3a2","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"xml","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":926,"visible":true,"origin":"","legend":"","description":"","filename":"WARMD250300145024.go.xml","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/b02ce6ae1a3aaa6ab5008191.xml"},{"id":93983126,"identity":"23b3815b-0057-4f26-9d4a-1e369bfb2b92","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"xml","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":854,"visible":true,"origin":"","legend":"","description":"","filename":"WARMD2503001Import.xml","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/bdbcdfd235c4501b00bd040e.xml"},{"id":93983133,"identity":"0a6cc79f-1d60-4c17-895d-8984c97f5fb5","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"xml","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":182764,"visible":true,"origin":"","legend":"","description":"","filename":"WARMD25030010enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/7a71188f0751291a71e460aa.xml"},{"id":93983783,"identity":"945746ab-3853-4e5d-ace9-e992039a5179","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":239088,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/2c016f467b3af1ff82dd6619.png"},{"id":93983862,"identity":"27e375fb-9084-4f19-b931-0b76452cf4d7","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":99632,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/65fc0bd74fff13e80e766d1a.png"},{"id":93983781,"identity":"bb0f2935-673d-4155-a9c1-0838d345aa90","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":30328,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/7f37418cbd7cd0754986c53c.png"},{"id":93983130,"identity":"d7df2692-e4ce-4ff9-be93-c1d9beeaff69","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":34412,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/105cbb6bdfaf23518368d652.png"},{"id":93983136,"identity":"ee2d6dd6-ef39-4a36-bdb0-4b3b46ebafa6","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15003,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage13.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/e272de3cc45a82b8f5e733fd.png"},{"id":93983865,"identity":"e00b0590-4ecc-457d-b3e8-fc8c0bfd1e92","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"png","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15020,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage14.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/ab21a70eaee0d2a22fc4f78a.png"},{"id":93983128,"identity":"6463fa16-a2b5-4f3b-b052-ef8f13948452","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14696,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage15.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/ce98608473b727124ef3c335.png"},{"id":93983137,"identity":"8f067ae3-a1b6-4a02-963e-0a5a03ae2d16","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":17801,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage16.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/74cc54d620323ea1506f428f.png"},{"id":93983864,"identity":"400dd67a-b28f-4fc3-bd59-5e29302fd723","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"png","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":16541,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage17.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/ba450be8c00a22b31ff03907.png"},{"id":93983135,"identity":"e1c81747-dbeb-47fa-9042-88b07af77136","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":36565,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage18.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/353d16c21702902a18071f43.png"},{"id":93984651,"identity":"8964aa11-d442-4b95-b093-27f5ec9a1600","added_by":"auto","created_at":"2025-10-21 03:56:47","extension":"png","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":30671,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage19.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/1a186dbd9fec07f545f1d2a9.png"},{"id":93983147,"identity":"687b01fc-04ac-4218-963b-d2d22f0fa3d7","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":103940,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/128e9c0a7bbedd83aa3f78f1.png"},{"id":93983791,"identity":"91e68bc9-5fce-4b93-a8d2-78653a71f2cb","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":34032,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage20.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/cd930853a673f6e01a7f0914.png"},{"id":93983158,"identity":"2e96f12b-68b2-4b9b-8465-f57bbddddf42","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":48392,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage21.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/a46ae280c4bf5a59c78e5f3a.png"},{"id":93983139,"identity":"382f88bb-e610-483c-9a63-ff4c14ec67bc","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":43356,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/9862b8447c56e6949713e697.png"},{"id":93983146,"identity":"5a52dec2-1dee-4b3d-904a-0d55ccaff074","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":52978,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/a7fadadb9f304a450bebc6e9.png"},{"id":93983142,"identity":"ce56f7c9-5e95-4400-8c10-cc7d7a6389b5","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":49533,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/7e68a752135e08cf46a16b6c.png"},{"id":93983786,"identity":"03a6affd-4e98-444d-b657-14e605c6ed88","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":41771,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/9a4327e1257b7e8838a6416e.png"},{"id":93983164,"identity":"b78c7613-eb7f-41c1-82ed-c63611f57939","added_by":"auto","created_at":"2025-10-21 03:32:48","extension":"png","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":40030,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/0940a1eaf6be9b661ecde32f.png"},{"id":93983157,"identity":"b48e0ebe-20b2-4321-9151-4307fa1f615f","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":42048,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/cee7b13d26df9a3d5e5fc309.png"},{"id":93983150,"identity":"9f1e5b19-d330-4beb-8aaa-3e22f55c7f96","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":103263,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/effed31abc78458ef1e3812b.png"},{"id":93983866,"identity":"72e188a9-4e70-40e5-a585-6924e59c2266","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"png","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":76037,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/5425d3a91010ac0be4dcde2f.png"},{"id":93983154,"identity":"a17a6ea7-3e63-4d14-bbf5-84e7e0100d39","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":97960,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/ed26ca7547d0df472bf68333.png"},{"id":93983151,"identity":"f0263ff5-3a4a-44ab-8ef7-a912c951c609","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":13955,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/304d7bf38a0d9a824d21cf95.png"},{"id":93983166,"identity":"d4457560-1f9d-41cb-b630-a2e170836238","added_by":"auto","created_at":"2025-10-21 03:32:48","extension":"png","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15574,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/0ea567e7e766c34f3339f71f.png"},{"id":93983787,"identity":"8dfe249c-5334-4cb8-add7-e9aefe3475ed","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15009,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage13.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/a92e06c65b5349fa18495dd3.png"},{"id":93983149,"identity":"3f9bcf3a-321f-494d-9c1e-548afe289d95","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14939,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage14.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/fbd50f12f1fc7868c20bcbc5.png"},{"id":93983152,"identity":"0b115be7-25d6-4bd1-8762-25c5bc090efc","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14630,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage15.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/7f437a81d8c216911bcca0a2.png"},{"id":93983153,"identity":"ba08a530-12bd-4e31-8a45-e61b10db4f56","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":17946,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage16.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/86306410b40f76aac631e929.png"},{"id":93983159,"identity":"11e38708-8e03-4c4a-b8ff-dbd6633aa51a","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":16788,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage17.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/8939c6a0b022699643428c26.png"},{"id":93983792,"identity":"f59e2615-743a-4b4f-92ee-f3e21eb69be9","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"png","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":15719,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage18.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/bb72326c1c5b419f66214d74.png"},{"id":93983156,"identity":"1e293035-e85f-46cd-8963-06008b754b68","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":28081,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage19.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/79f78906325da92cecb61a26.png"},{"id":93983797,"identity":"e5a5cc4f-736d-4a92-af06-54bf2196861b","added_by":"auto","created_at":"2025-10-21 03:40:48","extension":"png","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":67350,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/903bf099d76054d6d3805e10.png"},{"id":93983155,"identity":"db69633c-f03e-494d-8c72-32230242017e","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":14933,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage20.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/e3106ff477f7aa4cb6f69967.png"},{"id":93983163,"identity":"9b1f5040-a1d0-4fae-a99e-d20c683a7624","added_by":"auto","created_at":"2025-10-21 03:32:48","extension":"png","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":44951,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage21.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/c3f666f6435a7fe29823c458.png"},{"id":93983868,"identity":"4ab4bb56-49ca-460d-af57-c65d1a8404c9","added_by":"auto","created_at":"2025-10-21 03:48:47","extension":"png","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":18398,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/6b9141161182847738e40a09.png"},{"id":93983798,"identity":"5424b35b-a7f1-4b0c-8727-978f3496da40","added_by":"auto","created_at":"2025-10-21 03:40:48","extension":"png","order_by":44,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":23234,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/a4b61f1fedd2547adf2cbde1.png"},{"id":93983170,"identity":"97ed2248-51b2-4bdf-8610-e34b8f609ba9","added_by":"auto","created_at":"2025-10-21 03:32:48","extension":"png","order_by":45,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":23661,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/5750de46ba0f8e67fc090c0a.png"},{"id":93983160,"identity":"14eb53ee-ca95-4a88-807e-9c2ed16357f1","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":46,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":18374,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/e111d979c701b33475eabc7c.png"},{"id":93983161,"identity":"3ff2b456-6b14-4656-aea9-cd2e330198e5","added_by":"auto","created_at":"2025-10-21 03:32:47","extension":"png","order_by":47,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":19452,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/75ab3056b6428cf78437449d.png"},{"id":93983795,"identity":"ea31b908-f0db-4944-9e0c-637859ac28d9","added_by":"auto","created_at":"2025-10-21 03:40:48","extension":"png","order_by":48,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":17549,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/a3e1f5674d961616fa07a9d0.png"},{"id":93983173,"identity":"b8b70132-6cb8-4d04-aa96-f2b066271ee7","added_by":"auto","created_at":"2025-10-21 03:32:48","extension":"png","order_by":49,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":100994,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/7838ddf87b802b967c355edd.png"},{"id":93983869,"identity":"40c84a5e-cee1-4b25-9c5b-62e1f11f911e","added_by":"auto","created_at":"2025-10-21 03:48:48","extension":"xml","order_by":50,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":183792,"visible":true,"origin":"","legend":"","description":"","filename":"WARMD25030010structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/0bd6d1aa525442561dfd312e.xml"},{"id":93983793,"identity":"2ac9e1be-87af-4b5f-bd18-039077fcfa87","added_by":"auto","created_at":"2025-10-21 03:40:47","extension":"html","order_by":51,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":202240,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1/84e42b2ffeee6586398b5cab.html"},{"id":93984942,"identity":"baed2c98-a64b-466c-bd3f-73569d83ec5b","added_by":"auto","created_at":"2025-10-21 04:04:50","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1362801,"visible":true,"origin":"","legend":"","description":"","filename":"Manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7796717/v1_covered_02198ad7-2e03-4b00-8ee6-021cdc26d810.pdf"}],"financialInterests":"","formattedTitle":"Hybrid FEM–PINN Framework for 2D Shallow-Water Flow Simulation and Error Analysis","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"water-resources-management","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"warm","sideBox":"Learn more about [Water Resources Management](https://www.springer.com/journal/11269)","snPcode":"11269","submissionUrl":"https://submission.nature.com/new-submission/11269/3","title":"Water Resources Management","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false},"keywords":"Shallow Water Equations, Physics-Informed Neural Networks (PINN), Finite Element Method (FEM), Hybrid Modeling, Data-Driven Simulation, Hydrodynamics","lastPublishedDoi":"10.21203/rs.3.rs-7796717/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7796717/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eAccurate and efficient simulation of shallow water dynamics remains one of the most challenging tasks in computational hydraulics due to the inherent trade-off between physical conservation and numerical stability. Conventional finite element methods (FEM) are known for their strong adherence to conservation principles, particularly mass balance, yet they frequently suffer from excessive diffusion, oscillations, and limited adaptability when dealing with highly nonlinear or data-sparse environments. In contrast, physics-informed neural networks (PINNs) have emerged as powerful tools that embed governing equations into the training of deep learning models, thereby providing smooth, data-driven solutions even in the absence of dense measurements. However, the standalone application of PINNs is restricted by weak enforcement of physical invariants, accumulation of errors over long-time horizons, and difficulties in achieving robust convergence. This methodological gap highlights the urgent need for a hybrid framework that can combine the complementary strengths of FEM and PINNs. The present study introduces an innovative hybrid FEM+PINN framework designed to close this gap. FEM is first employed to generate high-fidelity snapshots of the shallow water system, which serve as structured training data to guide the PINN component. The PINN simultaneously incorporates the shallow water governing equations, conservation constraints, and boundary conditions, ensuring that physical laws are respected during learning. By merging the conservation properties of FEM with the flexibility and adaptivity of PINNs, the proposed model achieves a balance between accuracy, robustness, and generalization. The training strategy further implements collocation sampling, gradient clipping, and dynamic weighting of data and PDE losses to enhance stability across epochs. The results confirm the clear advantages of the hybrid approach. Quantitatively, the water depth h achieves a root mean square error (RMSE) of 0.0461 and mean absolute error (MAE) of 0.0403, while the momentum components hu and hv exhibit RMSE values of 0.1265 and 0.1, respectively. Mass conservation is preserved with deviations limited to 3.55%, whereas energy conservation, although not exact, demonstrates controlled systematic accumulation rather than instability. The training loss decreases rapidly from an initial value of 6.0×105 to below 2.0×104 within 60 epochs, confirming convergence without oscillatory artifacts. Spatial error distributions remain smooth and symmetric, error histograms demonstrate strong clustering near zero, and flow field visualizations highlight coherent structures without noise. This study fills a crucial methodological gap by demonstrating that neither FEM nor PINNs alone can fully meet the requirements of accuracy, conservation, and stability in shallow water modeling. The hybrid FEM+PINN framework provides a novel, physically consistent, and computationally efficient solution. Its ability to integrate classical numerical rigor with machine learning adaptability marks a significant advancement for data-driven hydraulics and paves the way for next-generation models in environmental and engineering fluid dynamics.\u003c/p\u003e","manuscriptTitle":"Hybrid FEM–PINN Framework for 2D Shallow-Water Flow Simulation and Error Analysis","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-10-21 03:32:42","doi":"10.21203/rs.3.rs-7796717/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"editorInvited","content":"Water Resources Management","date":"2026-02-26T14:51:11+00:00","index":"","fulltext":""},{"type":"reviewerAgreed","content":"","date":"2025-10-08T14:57:06+00:00","index":0,"fulltext":""},{"type":"reviewersInvited","content":"","date":"2025-10-08T14:37:47+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2025-10-08T12:53:15+00:00","index":"","fulltext":""},{"type":"submitted","content":"Water Resources Management","date":"2025-10-07T14:41:28+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"water-resources-management","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"warm","sideBox":"Learn more about [Water Resources Management](https://www.springer.com/journal/11269)","snPcode":"11269","submissionUrl":"https://submission.nature.com/new-submission/11269/3","title":"Water Resources Management","twitterHandle":"","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"Springer Hybrid","inReviewEnabled":true,"inReviewRevisionsEnabled":false}}],"origin":"","ownerIdentity":"255cb3fe-e8d8-4d35-8204-e69279925894","owner":[],"postedDate":"October 21st, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"under-review","subjectAreas":[],"tags":[],"updatedAt":"2025-10-21T03:32:42+00:00","versionOfRecord":[],"versionCreatedAt":"2025-10-21 03:32:42","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7796717","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7796717","identity":"rs-7796717","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00