AFAR-WQS: A Quick and Simple Toolbox for Water Quality Simulation
Open Access
Abstract
Water quality management in large basins demands tools that balance scientific rigor with computational efficiency to avoid paralysis by analysis. While traditional models offer detailed insights, their complexity and resource intensity hinder timely decision-making. To address this gap, we present AFAR-WQS, an open-source MATLAB™ toolbox that introduces a novel integration of assimilation factors with graph theory and a Depth-First Search (DFS) algorithm to rapidly simulate 13 water quality determinants across complex topological networks. AFAR-WQS resolves cumulative processes in networks of up to 30,000 segments in just 163 s on standard hardware, enabling real-time scenario evaluations. Its object-oriented architecture ensures scalability, allowing customization for urban drainage systems or macro-basin studies while maintaining computational efficiency. Case studies demonstrate its utility in prioritizing sanitation investments, assessing water quality at the national scale and fostering stakeholder collaboration through participatory workshops. By bridging the gap between simplified and complex models, AFAR-WQS supports adaptive management in contexts of hydrological uncertainty, regulatory compliance, and climate change. The toolbox is freely available at GitHub, offering a transformative approach for integrated water resource management.Keywords
All Related Versions
Funding Information
- Nature for Water Facility (P120989 A111088)
This publication has 33 references indexed in Scilit:
- Integrating water quantity- and quality-related ecosystem services into water scarcity assessment: A multi-scenario analysis in the Taihu Basin of ChinaApplied Geography, 2023
- A review of water quality models and monitoring methods for capabilities of pollutant source identification, classification, and transport simulationReviews in Environmental Science and Bio/Technology, 2023
- Persistent degradation: Global water quality challenges and required actionsOne Earth, 2022
- The CASCADE toolbox for analyzing river sediment connectivity and managementEnvironmental Modelling & Software, 2019
- Editorial overview: Water quality: A new challenge for global scale model development and applicationCurrent Opinion in Environmental Sustainability, 2019
- Conceptual river water quality model with flexible model structureEnvironmental Modelling & Software, 2018
- Development and testing of a fast conceptual river water quality modelWater Research, 2017
- Tracking multiple sediment cascades at the river network scale identifies controls and emerging patterns of sediment connectivityWater Resources Research, 2016
- Evaluating the simulation times and mass balance errors of component-based models: An application of OpenMI 2.0 to an urban stormwater systemEnvironmental Modelling & Software, 2015
- Convention on Biological Diversity: a review of national challenges and opportunities for implementationBiodiversity and Conservation, 2011