The {RMT3DMS} R package provides a set of tools for solute transport modelling with MT3DMS & MT3D-USGS. It is closely related to the {RMODFLOW} package for groundwater flow modelling. The functionality is targeted at feature-parity with that of the ModelMuse GUI and friends, albeit restricted to the MODFLOW-2005 family of codes.
You can install the latest version of {RMT3DMS} with any of the following:
renv::install("rogiersbart/RMT3DMS")
pak::pkg_install("rogiersbart/RMT3DMS")
remotes::install_github("rogiersbart/RMT3DMS")
If you don’t have {renv}, {pak}, or {remotes} installed, try this instead:
install.packages("remotes")
remotes::install_github("rogiersbart/RMT3DMS")
Similar to {RMODFLOW}, the {RMT3DMS} package provides a set of functions to work on a file-by-file basis, and another to work with complete models. If you have an existing MT3D model, a good place to start is trying to read it in completely with:
And looking at the resulting object’s structure:
str(my_model)
You can install the solute transport codes in the default location with:
And check if this went fine:
To run your model, try:
rmt_execute("my-model.mt_nam")