The paper presents an evaluation of the combined use of the HYDRUS and SWI2 packages for MODFLOW as a potential tool for modeling recharge in coastal aquifers subject to saltwater intrusion. The HYDRUS package for MODFLOW solves numerically the one-dimensional form of the Richards equation describing water flow in variablysaturated media. The code computes groundwater recharge to or capillary rise from the groundwater table while considering weather, vegetation, and soil hydraulic property data. The SWI2 package represents in a simplified way variable-density flow associated with saltwater intrusion in coastal aquifers. Combining these two packages within the MODFLOW framework provides a more accurate description of vadose zone processes in subsurface systems with shallow aquifers, which strongly depend upon infiltration. The two packages were applied to a two-dimensional problem of recharge of a freshwater lens in a sandy peninsula, which is a typical geomorphologic form along the Baltic and the North Sea coasts, among other places. Results highlighted the sensitivity of calculated recharge rates to the temporal resolution of weather data. Using daily values of precipitation and potential evapotranspiration produced average recharge rates more than 20% larger than those obtained with weekly or monthly averaged weather data, leading to different trends in the evolution of freshwater-saltwater interfaces. Root water uptake significantly influenced both the recharge rate and the position of the freshwater-saltwater interface. The results were less sensitive to changes in soil hydraulic parameters, which in our study were found to affect average yearly recharge rates by up to 13%.
HPx is a multicomponent reactive transport model which uses HYDRUS as the flow and transport solver and PHREEQC-3 as the biogeochemical solver. Some recent adaptations have significantly increased the flexibility of the software for different environmental and engineering applications. This paper gives an overview of the most significant changes of HPx, such as coupling transport properties to geochemical state variables, gas diffusion, and transport in two and three dimensions. OpenMP allows for parallel computing using shared memory. Enhancements for scripting may eventually simplify input definitions and create possibilities for defining templates for generic (sub)problems. We included a discussion of root solute uptake and colloid-affected solute transport to show that most or all of the comprehensive features of HYDRUS can be extended with geochemical information. Finally, an example is used to demonstrate how HPx, and similar reactive transport models, can be helpful in implementing different factors relevant for soil organic matter dynamics in soils. HPx offers a unique framework to couple spatial-temporal variations in water contents, temperatures, and water fluxes, with dissolved organic matter and CO2 transport, as well as bioturbation processes.