Large-scale and high-resolution groundwater models are currently becoming increasingly important in order to clarify the extent to which climate trends and extreme weather affect the groundwater balance regionally. As a result, the parameterization of groundwater models is becoming more detailed and more complex, making conventional calibration methods too time-consuming. Moderating the computational demand to find optimal solutions for the resulting potentially multi-modal objective function requires intelligent and efficient global optimization methods. Moreover, the increasing use of modern scripting languages R and Python to craft environmental analysis workflows calls to integrate groundwater flow simulators in such. Here we introduce and exemplify r2ogs5, a tool that integrates version 5 of the open-source simulation software OpenGeoSys into the programming language R. r2ogs5 allows for calibration of numerical groundwater flow models with a sequential model-based optimization approach that combines Bayesian optimization (BO) with surrogate modeling. Here, we describe the structure and function of r2ogs5 as well as the implemented calibration method. We then demonstrate the calibration method by calibrating 4 and 12 parameters of two simple groundwater flow models. The results indicate that this method needs fewer runs of the groundwater flow model than conventional gradient search and Latin hypercube sampling in case of the 12 parameter model. We believe that our method offers the potential to calibrate computationally expensive groundwater flow models. r2ogs5 supports groundwater flow modelers to access the statistical analysis and visualization capabilities of the R language and is a valuable tool for geoscientists already using R.
Read full abstract