Water Quality Model
1. Overview
HydroPol2D simulates pollutant transport using a build-up and wash-off formulation coupled to the hydrodynamic model.
The model tracks:
- pollutant mass stored on the surface,
- pollutant removal due to flow (wash-off),
- redistribution between neighboring cells,
- export through outlet boundaries.
The governing variable is:
where:
- = pollutant mass per cell
The model is fully mass conservative and dynamically coupled to flow routing.
2. Pollutant storage
Each cell stores a pollutant mass:
The corresponding areal concentration is:
where:
- = cell area
Minimum and maximum thresholds are defined:
- → minimum active pollutant mass
- → saturation limit
Below a threshold:
3. Hydrodynamic coupling
The water quality model uses hydrodynamic outflows:
with units:
These are converted internally to volumetric flow:
4. Wash-off formulation
Two wash-off formulations are implemented.
4.1 Rating-curve wash-off model
When flag_wq_model = 1, the wash-off is:
where:
- = pollutant mass flux
- = empirical coefficients
- = flow rate
The storage correction factor is:
where:
- = residual pollutant mass threshold
This formulation ensures that:
- wash-off increases with flow,
- wash-off increases with available pollutant mass.
4.2 Mass-based wash-off model
When flag_wq_model = 0, the formulation becomes:
This formulation assumes:
- wash-off is proportional to available pollutant mass,
- transport increases with flow magnitude.
5. Directional pollutant fluxes
Pollutant fluxes are computed for each direction:
- left
- right
- up
- down
- outlet
The total pollutant outflow from a cell is:
Incoming pollutant fluxes are computed from neighboring cells:
6. Net pollutant balance
The net pollutant rate is:
The mass balance equation is:
This formulation accounts for:
- pollutant removal due to wash-off,
- pollutant redistribution across the grid.
7. Adaptive time stepping (critical feature)
To ensure stability and avoid negative mass, HydroPol2D computes a minimum admissible time step:
where:
- only cells losing mass are considered,
- very small values are excluded.
If:
the model splits the time step into sub-steps:
and updates pollutant mass iteratively:
This ensures:
- no negative pollutant mass,
- numerical stability,
- accurate mass conservation.
8. Mass conservation and corrections
After updating:
- negative values are removed:
- rounding is applied to avoid numerical noise.
Mass lost due to numerical corrections is tracked:
9. Pollutant concentration
Pollutant concentration is computed as:
where:
- = total water outflow
10. Outlet concentration
The outlet concentration is computed as:
11. Total washed mass
The cumulative washed pollutant mass is:
12. Numerical constraints
The model enforces:
- minimum pollutant threshold:
- minimum flow threshold:
to avoid numerical instability.
Summary
The HydroPol2D water quality model:
- tracks pollutant mass per cell,
- computes wash-off as a function of flow and storage,
- redistributes pollutants across the domain,
- ensures strict mass conservation,
- uses adaptive time stepping to maintain stability.
It provides a robust and flexible framework for simulating pollutant transport coupled with hydrologic and hydrodynamic processes.