Graphical user interfaces (GUIs) are commonly used to construct and postprocess numerical groundwater flow and transport models. Scripting model development with the programming language Python is presented here as an alternative approach. One advantage of Python is that there are many packages available to facilitate the model development process, including packages for plotting, array manipulation, optimization, and data analysis. For MODFLOW‐based models, the FloPy package was developed by the authors to construct model input files, run the model, and read and plot simulation results. Use of Python with the available scientific packages and FloPy facilitates data exploration, alternative model evaluations, and model analyses that can be difficult to perform with GUIs. Furthermore, Python scripts are a complete, transparent, and repeatable record of the modeling process. The approach is introduced with a simple FloPy example to create and postprocess a MODFLOW model. A more complicated capture‐fraction analysis with a real‐world model is presented to demonstrate the types of analyses that can be performed using Python and FloPy.
Analytical models of the travel time distribution (TTD) from a source area to a sample location are often used to estimate groundwater ages and solute concentration trends. The accuracies of these models are not well known for geologically complex aquifers. In this study, synthetic data sets were used to quantify the accuracy of four analytical TTD models as affected by TTD complexity, observation errors, model selection, and tracer selection. Synthetic TTDs and tracer data were generated from existing numerical models with complex hydrofacies distributions for 1 public‐supply well and 14 monitoring wells in the Central Valley, California. Analytical TTD models were calibrated to synthetic tracer data, and prediction errors were determined for estimates of TTDs and conservative tracer ( ) concentrations. Analytical models included a new, scale‐dependent dispersivity model (SDM) for two‐dimensional transport from the water table to a well and three other established analytical models. The relative influence of the error sources (TTD complexity, observation error, model selection, and tracer selection) depended on the type of prediction. Geological complexity gave rise to complex TTDs in monitoring wells that strongly affected errors of the estimated TTDs. However, prediction errors for and median age depended more on tracer concentration errors. The SDM tended to give the most accurate estimates of the vertical velocity and other predictions, although TTD model selection had minor effects overall. Adding tracers improved predictions if the new tracers had different input histories. Studies using TTD models should focus on the factors that most strongly affect the desired predictions.
Residence time distribution (RTD) is a critically important characteristic of groundwater flow systems; however, it cannot be measured directly. RTD can be inferred from tracer data with analytical models (few parameters) or with numerical models (many parameters). The second approach permits more variation in system properties but is used less frequently than the first because large‐scale numerical models can be resource intensive. Using a novel automated approach, a set of 115 inexpensive general simulation models (GSMs) was used to create RTD metrics (fraction of young groundwater, defined as <65 years old; mean travel time of young fraction; median travel time of old fraction; and mean path length). GSMs captured the general trends in measured tritium concentrations in 431 wells. Boosted Regression Tree metamodels were trained to predict these RTD metrics using available wall‐to‐wall hydrogeographic digital sets as explanatory features. The metamodels produced a three‐dimensional distribution of predictions throughout the glacial system that generally matched with the numerical model RTD metrics. In addition to the expected importance of aquifer thickness and recharge rate in predicting RTD metrics, two new data sets, Multi‐Order Hydrologic Position (MOHP) and hydrogeologic terrane were important predictors. These variables by themselves produced metamodels with Nash‐Sutcliffe efficiency close to the full metamodel. Metamodel predictions showed that the volume of young groundwater stored in the glaciated United States is about 6,000 km3, or about 0.5% of globally stored young groundwater.
Groundwater residence‐time distributions (RTDs) are critical for assessing susceptibility of water resources to degradation. A novel combination of numerical modeling and statistical methods allows estimation of regional RTDs with unprecedented speed. In this method, particle RTDs are generated in 30 type locales in the northeastern glaciated U.S. by using automated generalized finite‐difference groundwater flow and advective transport models. Targets for statistical learning were created from particle RTDs by fitting Weibull, gamma, and inverse Gaussian distributions. Whole‐basin flux‐weighted RTDs were well fit by one‐component Weibull distributions. Flux‐weighted RTDs at stressed receptors such as wells often produced more complicated RTDs that required a two‐component mixture to fit. A Multitask LASSO regression was trained on the parametric RTDs using hydrogeographic features of the modeled areas as explanatory features. In this way, RTDs are regionalized with mappable physical features such as recharge and aquifer volume. The shape, location, and scale parameters of the parametric RTDs are strongly related to the mean exponential age. The shape parameter of the distribution, which controls deviation from exponential, is additionally a function of aquifer heterogeneity and hydrologic features. Regionalized RTDs provide useful metrics with respect to groundwater lag times and solute loading to streams. The lag time between input and output contained in the RTD is critical to understanding the relation between the land surface and human and ecological receptors.