2.1 CFD Simulation
Numerical simulation is widely used for studying spoiler control laws in fluid flow research24–26. In this study, CFD was employed to examine the effects of installing leading-edge spoilers at the dead-end cavity. The entire CFD simulation process consisted of the following steps: mathematical model development, geometric model setup, solution, and result post-processing.
2.1.1 Mathematical Model Development
The diffusion of contaminants at dead-ends is governed by three core principles: the conservation of mass, momentum, and energy.
Using Eq. (1) to model the conservation of mass ensures the conservation of mass in a transient, three-dimensional, and incompressible fluid flow.
$$\:\frac{\partial\:u}{\partial\:x}+\frac{\partial\:\nu\:}{\partial\:y}+\frac{\partial\:w}{\partial\:x}=0$$
1
Where u, v, and w denote the velocity vector components in the x, y, and z directions.
Additionally, using the Navier-Stokes equation to capture the conservation of momentum is shown as Eq. (2).
$$\:\begin{array}{c}\frac{\partial\:\left(\rho\:u\right)}{\partial\:t}+di\nu\:\left(\rho\:uu\right)=-\frac{\partial\:p}{\partial\:x}+\frac{\partial\:{\tau\:}_{xx}}{\partial\:x}+\frac{\partial\:{\tau\:}_{yx}}{\partial\:y}+\frac{\partial\:{\tau\:}_{zx}}{\partial\:z}+{F}_{x}\\\:\frac{\partial\:\left(\rho\:\nu\:\right)}{\partial\:t}+di\nu\:\left(\rho\:\nu\:u\right)=-\frac{\partial\:p}{\partial\:y}+\frac{\partial\:{\tau\:}_{xy}}{\partial\:x}+\frac{\partial\:{\tau\:}_{yy}}{\partial\:y}+\frac{\partial\:{\tau\:}_{zy}}{\partial\:z}+{F}_{y}\\\:\frac{\partial\:\left(\rho\:w\right)}{\partial\:t}+di\nu\:\left(\rho\:wu\right)=-\frac{\partial\:p}{\partial\:z}+\frac{\partial\:{\tau\:}_{xz}}{\partial\:x}+\frac{\partial\:{\tau\:}_{yz}}{\partial\:y}+\frac{\partial\:{\tau\:}_{zz}}{\partial\:z}+{F}_{z}\end{array}$$
2
Where ρ represents the fluid density, p represents the pressure on the fluid element, τ denotes the viscous stress, and F is the force acting on the fluid element.
Considering an incompressible fluid and the fact that heat exchange is negligible during contaminant diffusion, this study omitted the conservation of energy equation.
Furthermore, the transport of contaminants necessitates adherence to specific equations for component transport. In cases where the fluid system exhibits turbulence, the diffusion flux of a given substance, referred to as the ith substance, is described by Eq. (3).
$$\:{\overrightarrow{J}}_{i}=-(\rho\:{D}_{i,m}+\frac{{\mu\:}_{t}}{S{c}_{t}})\nabla\:{Y}_{i}-{D}_{T,i}\frac{\nabla\:T}{T}$$
3
Where \(\:{\overrightarrow{J}}_{i}\) is the diffusive flux of the ith substance due to the concentration gradient and temperature gradient, Di,m is the mass diffusion coefficient of substance i in the mixture, µt is the turbulent viscosity, Sct is the turbulent Schmidt number, Yi is the mass partition coefficient of substance i, DT, i is the thermal diffusion coefficient, and T is the temperature. This study used a default value of 0.7 for the turbulent Schmidt number.
2.1.2 Geometric Model Setup
Designing geometric models replicating real-world conditions is essential for obtaining realistic numerical simulation results. The geometric model included the dead-end, the main pipe, and the leading-edge spoiler, as depicted in Fig. 1. The main pipe was modeled with a length of 1,000 mm and a diameter of 200 mm, while the dead-end extended 500 mm with a diameter of 100 mm. The variables H and θ represent the spoiler's height and tilt angle. To develop these models using Creo CAD, a sophisticated 3D design software27.
H was specifically designed based on the boundary layer thickness. The boundary layer thickness was calculated using Eq. (4).
$$\:\delta\:=0.37l\cdot\:R{e}^{-0.2}$$
4
Where δ donates the boundary layer thickness, l represents the cavity’s leading edge length. In this study, l determined to be 450 mm. This measurement was calculated by subtracting half of the pipe diameter at the dead-end (50 mm, as the diameter is 100 mm) from half of the total length of the geometric model of the main pipe (500 mm, as the total length is 1,000 mm).
Previous studies have varied the height and tilt angle of the spoiler to investigate the fluid flow control of spoilers with different design parameters18,20. The study varied these two control parameters across 15 different conditions, including θ, set at 30°, 45°, and 60°, and H, set at 0.3δ, 0.5δ, δ, 1.5δ, and 2δ.
Utilizing ICEM CFD to generate the computational grid for the simulations28. The density of the grid is a crucial factor that influences both the accuracy and the computational efficiency of the numerical calculations29. Grid independence analysis is a crucial first step in defining grids in CFD analysis, with the aim of making simulation results independent of grids30,31. Grid independence analysis was conducted to ensure the results were reliable and computationally feasible, and a grid of 134,435 cells was selected for the final simulations.
2.1.3 Solution
Using Ansys Fluent to carry out the CFD simulations is well-suited for modeling and analyzing fluid flow and related phenomena32. The boundary conditions were meticulously set to mimic realistic scenarios in water distribution systems.
Inlet Boundary
Configured as a velocity inlet where the flow direction was perpendicular to the boundary. The inlet was defined as contaminant-free to simulate the introduction of clean water into the system. This study considered two inflow velocities scenarios. The first was a nearly stagnant lower velocity, typical of daily conditions at dead-ends, set at 0.03 m/s. The second was a higher velocity of 1.2 m/s, often used during flushing operations to clear out accumulated contaminants 11,33.
Outlet Boundary
Set as a pressure outlet to allow the fluid to exit the system under controlled pressure conditions.
Wall Boundaries
The pipe inner walls and the surfaces of the spoilers were treated as no-slip stationary walls, which means that the velocity of the fluid at these boundaries is zero, simulating the physical behavior of the fluid at solid boundaries.
Initial Concentration of Contaminants
Represented by iron ions, was uniformly set at 1 mol/m3 in the dead-end.
For the solver settings, a transient calculation method was chosen to capture the time-dependent behavior of the fluid flow and contaminant dispersion. The turbulence model employed was the Large Eddy Simulation (LES), which effectively predicts the larger energy-containing eddies in turbulent flows while modeling the minor scales34. The SIMPLE algorithm provided more robust and faster convergence to manage pressure-velocity coupling. Transient discretization was set to First Order Implicit to ensure stability in the time-stepping process. Spatial discretization utilized a second-order upwind scheme, which balances accuracy and computational cost well. The subgrid-scale stress model was the Wall-Adapting Local Eddy-viscosity (WALE) model, which is particularly effective in near-wall turbulence modeling 35.
2.1.4 Result post-processing
The data concerning the distribution of contaminant concentration and velocity fields were processed to analyze and visualize the results. The results were visualized using plots, which provide a clear and intuitive understanding of how contaminants disperse and how effectively the spoilers modify the flow to reduce contaminant levels. To quantitatively assess the effectiveness of the spoilers in controlling contaminants, a contaminant control rate, denoted as α, was introduced. This rate is defined by Eq. (5).
$$\:\alpha\:=\frac{C-{C}^{{\prime\:}}}{C}$$
5
Where C is the contaminant concentration at the outlet of the main pipe before installing the spoiler, and C’ is the concentration after installation.
2.2 Predictive Modelling of Contaminants
Predictive models with and without implementing a spoiler were developed to enhance the understanding and control of contaminant diffusion in water distribution systems. The numerical simulation experiments under various working conditions provided data to support the development of contaminant diffusion prediction models. The spoiler used in the simulations was set with an θ of 30° and an H of 1.5δ. These models aimed to predict the concentration of contaminants at the main pipe, considering several independent variables: initial concentration of contaminants within the dead-end, hydrodynamic pressure at the cavity, water velocity at the cavity entrance, and the dead-end's diameter. The variables were varied across multiple gradients, as outlined in Table 1.
Table 1
Gradient of the Respective Variables
Variable | Gradient |
The initial concentration of contaminants within the dead-end (mol/m3) | 0.1, 0.5, 1, 2, 4 |
Hydrodynamic pressure at the cavity (MPa) | 0.1, 0.2, 0.3, 0.4, 0.5 |
Water velocity at the cavity entrance (m/s) | 0.03, 0.1, 0.4, 0.8, 1.2 |
Dead-end’s diameter (mm) | 50, 100, 150 |
This setup resulted in a total of 5 × 5 × 5 × 3 = 375 unique conditions for each model scenario (with and without spoiler), leading to 750 simulations. These simulations provided a comprehensive dataset that reflects a wide range of possible real-world conditions. The numerical results were fitted using linear regression and analyzed using the SPSS statistic for F-tests36.
2.3 Case Profile
YC town's WDN is extensive, covering approximately 280 km and serving an area of about 43 km². It supports a population of around 36,000. The network includes 3,667 pipes and 3,616 nodes, as depicted in Fig. 2. Water is supplied from a single reservoir located in the north, and the system primarily relies on gravity flow for water distribution.
The predictive model developed was integrated into EPANET 2 37. This integration allowed the evaluation of the spoiler's control effects under realistic hydraulic conditions.
Nodes with a primary water demand of less than 0.001 L/s were preliminarily identified as dead-ends. After excluding non-terminal nodes, 533 nodes were deemed eligible for further analysis regarding the impact of spoilers.
In the simulations, tracer particles were used to model the movement of contaminants within the network. These particles did not undergo chemical reactions, and their concentration did not influence reaction rates. Consequently, the main reaction order was set to 0.
The pipe wall reaction coefficient was 0, indicating no interaction between the tracer particles and the pipe walls. Both decay and growth rates for chemical reactions were set to 0, focusing solely on the physical transport of contaminants without chemical alterations. The total duration for the simulation was set to 240 hours to observe the long-term effects of spoilers. Hydraulic time steps were set at 1 hour, and water quality time steps at 6 minutes, starting at 0:00 am.