Preprints
https://doi.org/10.5194/egusphere-2022-1262
https://doi.org/10.5194/egusphere-2022-1262
12 Dec 2022
 | 12 Dec 2022

mesas.py v1.0: A flexible Python package for modeling solute transport and transit times using StorAge Selection functions

Ciaran Harman and Esther Xu Fei

Abstract. StorAge Selection transport theory has recently emerged as a framework for representing material transport through a control volume. It can be seen as a generalization of transit time theories and lumped parameter models to allow for arbitrary time-variability of the rate of material flow in and out of the control volume, and in the transport dynamics. SAS is currently the state-of-the-art approach to interpreting tracer transport. Here we present mesas.py, a Python package implementing the SAS framework. mesas.py allows SAS functions to be specified using several built-in common distributions, as a piecewise-linear CDF, or as a weighted sum of any number of such distributions. The distribution parameters and weights used to combine them can be allowed to vary in time, allowing SAS functions of arbitrary complexity to be specified. mesas.py simulates tracer transport using a novel mass tracking scheme and can account for first order reactions and fractionation. We present a number of analytical solutions to the governing equations and use these to validate the code. For a benchmark problem the timestep-averaging approach of the mesas.py implementation provides a 15 × reduction in mass balance errors compared to a previous implementation of SAS.

Ciaran Harman and Esther Xu Fei

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2022-1262', Paolo Benettin, 19 Jan 2023
  • RC2: 'Comment on egusphere-2022-1262', Anonymous Referee #2, 03 Mar 2023
  • AC1: 'Response to reviewers', Ciaran Harman, 30 Jul 2023

Status: closed

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2022-1262', Paolo Benettin, 19 Jan 2023
  • RC2: 'Comment on egusphere-2022-1262', Anonymous Referee #2, 03 Mar 2023
  • AC1: 'Response to reviewers', Ciaran Harman, 30 Jul 2023

Ciaran Harman and Esther Xu Fei

Ciaran Harman and Esther Xu Fei

Viewed

Total article views: 729 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
494 211 24 729 12 12
  • HTML: 494
  • PDF: 211
  • XML: 24
  • Total: 729
  • BibTeX: 12
  • EndNote: 12
Views and downloads (calculated since 12 Dec 2022)
Cumulative views and downloads (calculated since 12 Dec 2022)

Viewed (geographical distribution)

Total article views: 684 (including HTML, PDF, and XML) Thereof 684 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 10 Dec 2023
Download
Short summary
Over the last 10 years scientists have developed a new way of modeling how material is transported through complex systems, called StorAge Selection. Here we present some new code implementing this method that is easy to use, but also flexible and very accurate. We show that for cases where we know exactly what the answer should be, our code gets the right answer. We also show that our code is closer than some other people's code to the right answer in an important way: it conserves mass.