# US 2026/0134179 A1 · Integrated hydrodynamic and water quality simulation method for water supply systems of water treatment plants, pipe networks, and rivers

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0134179 A1
- Document ID: US20260134179A1
- Status: Published application
- Kind: A1
- Application number: 19/445,647
- Filed: 2026-01-12
- Published: 2026-05-14
- Earliest claimed: 2024-07-12
- Assignees: Tsinghua Shenzhen International Graduate School
- Applicants: Tsinghua Shenzhen International Graduate School
- Inventors: Manjie LI; Zhi Wang
- Web page: https://patentgrep.com/patent/US20260134179A1

## CPC

- G06F 30/28: using fluid dynamics, e.g. using Navier-Stokes equations or computational fluid dynamics [CFD]
- G06F 30/20: Design optimisation, verification or simulation (optimisation, verification or simulation of circuit designs G06F30/30)
- G06F 2111/10: Numerical modelling
- G06F 2113/08: Fluids
- Y02A 20/152: Water filtration
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02A: TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE

## Abstract

An integrated hydrodynamic and water quality simulation method for water supply systems of water treatment plants, pipe networks, and rivers includes steps of river water source simulation, dynamic analysis of water quality at the water intake, construction of a water supply pipe network water quality prediction model, data interface development, one-dimensional pipe network hydrodynamic and water quality simulation, and integrated model integration and automation. The method can utilize open-source software, and through automated scripts and data interfaces, realize the continuous simulation and real-time update of water quality and hydrodynamic parameters from rivers to water supply pipe networks. The model integrates treatment effect of water treatment plants, which are simplified as treatment nodes in the pipeline system, ensuring the authenticity and accuracy of simulation results. This method is not only easy to operate and implement, but also can automatically generate time-series graphs of water quality parameters, significantly improving simulation efficiency.

## Claims

### Claim 1

An integrated hydrodynamic and water quality simulation method for water supply systems of water treatment plants, pipe networks, and rivers, comprising the following steps:
S1: combining collected river topographic data and river shoreline data to construct a two-dimensional (2D) river hydrodynamic and water quality model, the model being configured with boundary hydrodynamic and water quality parameters to simulate the hydrodynamic and water quality conditions of the river water source;
S2: monitoring and analyzing the temporal variation of water quality parameters at the water intake by using the 2D river hydrodynamic and water quality model to provide key data for dynamic water quality assessment;
S3: constructing a water supply pipe network water quality prediction model that integrates multi-water source inputs, the water treatment plant being simplified as a treatment node in the pipeline system to simulate its water quality treatment effects;
S4: establishing a data interface to realize data exchange and synchronization between the 2D river hydrodynamic and water quality model and the water supply pipe network water quality prediction model;
S5: the water supply pipe network water quality prediction model performing one-dimensional (1D) hydrodynamic and water quality simulation of the water supply pipe network based on the data obtained from the 2D river hydrodynamic and water quality model, wherein the water quality and hydrodynamic parameters provided by the 2D river hydrodynamic and water quality model are input into the water supply pipe network water quality prediction model as boundary conditions or initial conditions to predict the water quality changes and hydraulic behaviors in the water supply pipe network;
S6: integrating the river hydrodynamic and water quality model and the water supply pipe network water quality prediction model into a complete numerical model for the integrated water supply system of water treatment plants, pipe networks, and rivers, to automate the entire water quality change simulation process.

### Claim 2 (depends on 1)

The method according to claim 1, wherein in step S1, using OpenFOAM software to construct the 2D river hydrodynamic and water quality model; and in step S2, using the Probe function of OpenFOAM to monitor the changes of water quality parameters at the water intake and obtain the temporal variation data of the water quality parameters.

### Claim 3 (depends on 2)

The method according to claim 2, wherein step S2 specifically comprises:
S2.1: establishing a geometric model of the river shoreline and exporting it in a format suitable for mesh generation software;
S2.2: using mesh generation software to draw a 2D mesh adapted to the river morphology according to the characteristics of the river and outputting it in a format suitable for the Computational Fluid Dynamics (CFD) software OpenFOAM;
S2.3: converting the exported mesh file into a format recognizable by OpenFOAM software and storing it as a standard mesh file in the case folder;
S2.4: setting the properties of the mesh in OpenFOAM software, and for 2D simulation, specifying the upper and lower boundary conditions and setting the dimension in the vertical direction;
S2.5: using the built-in tools of OpenFOAM software to extract the coordinate data of the mesh centers;
S2.6: performing topographic data interpolation by combining the topographic data with the mesh data, using interpolation technology to obtain the topographic depth information at the mesh centers and exporting the data;
S2.7: integrating the interpolated topographic data into the model of OpenFOAM software to provide accurate topographic conditions for the simulation;
S2.8: defining model parameters by setting the simulation parameters of OpenFOAM software, including time step, total simulation time, physical model settings, boundary conditions, and the diffusion and attenuation characteristics of pollutants;
S2.9: setting monitoring points in OpenFOAM software to track and record the temporal changes of water quality parameters at specific locations.

### Claim 4 (depends on 2)

The method according to claim 2, wherein in step S3, using EPANET-MSX software to establish the water supply pipe network water quality prediction model based on the collected data of pipe network topology, pipe segment characteristics, node characteristics and boundary conditions.

### Claim 5 (depends on 4)

The method according to claim 4, wherein step S3 specifically comprises:
S3.1: collecting data such as the topology of the water supply pipe network, pipe segment characteristics, node characteristics and boundary conditions;
S3.2: creating point objects and line objects in the water supply pipe network, the point objects including nodes, reservoirs and water tanks, and the line objects including pipe segments, valves and pumps;
S3.3: defining attribute fields for the point objects and line objects respectively;
S3.4: setting simulation parameters to provide time control for the simulation process;
S3.5: defining the hydrodynamic conditions of the pipe network and setting the hydrodynamic states of all nodes and pipe segments;
S3.6: adding corresponding chemical species according to the simulation requirements and setting their chemical properties and kinetic parameters;
S3.7: configuring the initial state of water quality components in the pipe network;
S3.8: simulating the water treatment plant process by adding a Source module to the model.

### Claim 6 (depends on 4)

The method according to claim 4, wherein in step S4, constructing a data interface by writing Python scripts to realize data exchange between OpenFOAM software and EPANET-MSX software and converting the water quality and hydrodynamic parameters output by OpenFOAM into the input format required by EPANET-MSX software.

### Claim 7 (depends on 6)

The method according to claim 6, wherein step S4 specifically comprises:
S4.1: determining the storage path of the CSV file recording the temporal variation of water quality parameters at the water intake, the CSV file being exported by the probe function of OpenFOAM software;
S4.2: developing a Python function to read water quality parameter data from OpenFOAM software, the water quality parameter data including water quality concentration data;
S4.3: converting the read water quality concentration data into relative coefficients and realizing standardization by dividing each value in the concentration column by the first value of the column;
S4.4: determining the storage path of the input file of EPANET-MSX software;
S4.5: using Python code to automatically update the calculated relative coefficients to the PATTERNS section in the EPANET-MSX model file;
S4.6: replacing the original time pattern with the newly calculated relative coefficients in the EPANET-MSX model file to reflect the temporal variation of water quality parameters.

### Claim 8 (depends on 4)

The method according to claim 4, wherein step S6 specifically comprises:
S6.1: creating a Python script, using the subprocess module in the Python script to specify the path and name of the OpenFOAM case and call the OpenFOAM solver to run the simulation;
S6.2: running the Python data transmission interface through the Python script to realize data synchronization between different software;
S6.3: calling the EPANET-MSX library through the Python script to execute the water quality simulation of the water supply pipe network;
S6.4: parsing the water quality parameter information of specific nodes and pipe segments from the output file of EPANET-MSX;
S6.6: converting the parsed time data into floating-point numbers in hours to meet the plotting requirements;
S6.7: defining a plotting function in Python, setting the image format to prepare for generating the time-series curve graph;
S6.8: using the defined plotting function to generate the time-series curve graph of water quality parameters for specific nodes and pipe segments.

### Claim 9 (depends on 1)

A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the integrated hydrodynamic and water quality simulation method for water supply systems of water treatment plants, pipe networks, and rivers according to claim 1.

### Claim 10 (depends on 1)

A computer program product including a computer program, wherein when the computer program is executed by a processor, it implements the integrated hydrodynamic and water quality simulation method for water supply systems of water treatment plants, pipe networks, and rivers according to claim 1.
