# TransPyREnd: a code for modelling the transport of radionuclides on geological timescales

### Christoph Behrens

### Elco Luijendijk

### Phillip Kreye

### Florian Panitz

### Merle Bjorge

### Marlene Gelleszun

### Alexander Renz

### Shorash Miro

The German site selection procedure for a high-level nuclear waste repository is entering a stage in which preliminary safety assessments have to be conducted and the release of radionuclides has to be estimated for a large number of potential sites.

Here, we present TransPyREnd, a 1D finite-differences code for modeling the transport of radionuclides in the subsurface at geological timescales. The code simulates the processes advection, diffusion, equilibrium sorption, decay of radionuclides, and the build-up of daughter nuclides. We summarize the modeled physical processes, their mathematical description and our numerical approach to solve the governing equations. Finally, two simple tests are shown, one considering diffusion, sorption, and radioactive decay, the other involving diffusion and a radioactive decay chain. In both tests, the code shows good agreement with the reference solutions. Caveats of the model and future additions are discussed.

- Article
(1508 KB) - Full-text XML
- BibTeX
- EndNote

In the German site selection procedure for a high-level nuclear waste repository preliminary safety assessments have to be evaluated in three consecutive phases.
In the first phase (starting 2020) representative preliminary safety assessments have to be carried out for a large number of potential sites (Hoyer et al., 2021; StandAG, 2017), with three different types of host rock considered (clay rock, rock salt, crystalline rock). The legal requirements include strict criteria on both the maximum mass and the maximum amount of radionuclides that are allowed to be released from the repository or its surroundings over one million years (10^{−4} of the total mass and amount initially disposed), and a maximum rate of release (10^{−9} yr^{−1} of the total mass and amount initially disposed). These criteria need to be evaluated individually for each potential site. The detailed legal requirements can be found in EndlSiAnfV (2020) (Disposal Safety Requirements Ordinance) and StandAG (2017) (Repository Site Selection Act).

In general, the large number of radionuclides to consider (several hundreds up to a thousand) make such evaluations difficult. Apart from the complexity of considering three different types of host rock, the particular challenge in the German site selection procedure is two-fold: First, the number (and area) of potential sites is large, with 54 % of the area of Germany being a potential site after the initial stage of the site selection procedure (BGE, 2020). Secondly, data for parametrizing transport/reaction models is both heterogeneous and scarce. Some geological information and basic parameters such as porosity may be available site-specific from different sources. However, other parameters governing the details of the transport process are widely unavailable from local measurements and need to be estimated in a systematic way, as on-site exploration/measurements will only begin in subsequent stages of the site selection procedure. Given the sparse data, it is beneficial to employ a computationally efficient 1D code that can be used to run large sets of models in order to capture the uncertainties in the governing parameters.

At present, a workflow for estimating the transport parameters is set up, which is inspired by the one developed by Nagra for the Swiss site selection procedure (Van Loon, 2014, note that these authors focus on clay formations only). Details can be found in BGE (2022a).

In the literature, several models and codes for assessing the migration of radionuclides out of a deposit exist, e.g. Norman and Kjellbert (1990), Reiche (2016), Nagra (2013), Garibay-Rodriguez et al. (2022), Trinchero et al. (2020). For the safety assessments in the German site selection procedure, one constraint was the desire to be able to publish the code as open-source. Additional requirements for the code include simplicity, ease of use, and performance. The code should be light-weight and should not rely on large third-party tools to reduce the complexity. In the version presented here, the code focuses on porous media and does not include a treatment of fractured media, which could be important for transport in crystalline rocks.

Our transport model for the representative preliminary safety assessments and its implementation is named TransPyREnd (“*Trans*portmodell in *Py*thon für *R*adionuklide aus einem *End*lager”, English translation “Transport model in Python for radionuclides in a nuclear waste repository”). It will be released as an open-source project in early 2023, and will provide a unique opportunity for the community and public to assess the model, test and/or modify it. This will both help in assuring quality of the tools used in the site selection procedure, and aid in trust-building for the general public.

## Model approach

A number of choices have to be made to develop a model for the transport of radionuclides. Here only one spatial dimension (1D) is considered, that is, we model transport along a line, e.g. in the vertical, horizontal, or any other meaningful direction. Given the limited available data and the large number of potential sites, this is a justified approximation also applied in other safety assessments, e.g. Nagra (2002). A 1D model also has advantages in terms of the low computational effort needed. Hence, uncertainties can easily be incorporated in the parametrization by evaluating ensembles of model runs, i.e. sets of models in which uncertainties are accounted for by varying the parameters within a distinct range. The general concept of dealing with uncertainties in the preliminary safety assessments can be found in BGE (2022b). In short, the workflows used for generating the model parameters are also used to estimate the uncertainties in these parameters. Sensitivity analyses are used to assess which parameters are important: the combined uncertainties in sensitive parameters are then evaluated using Monte-Carlo simulations.

Furthermore, the scope of the model is limited to the transport through the geological barriers far from the emplacement area (also termed as the “far-field” in contrast to the “near-field” that would include the technical barriers near the emplacement area). The transport along e.g. mining shafts or other technical elements is currently not included in the model.

Transport is included in the host rock layer and in geological layers above and below (if transport is vertical) or next (in case of horizontal transport) to the host rock layer. A sketch of an example model domain for vertical transport is shown in Fig. 1. As the current application is limited to the question of how much of the disposed radionuclides escape from the host rock, following the legal and regulatory demands (EndlSiUntV, 2020), what we extract from the completed model is the amount and mass of radionuclides released from the host rock layer. Nevertheless, the model contains all relevant geological layers, as these have an effect on the release from the host rock.

Regarding the modeled processes, diffusion, advection, mechanical dispersion, and sorption are considered. Diffusion is assumed to be Fick'ian (Tartakovsky and Dentz, 2019), and differing accessible porosities (Van Loon, 2014) for individual nuclides (depending on whether they are present as anions or cations) are taken into account, assuming a fixed speciation. We assume Darcy's law holds for advection, as flow velocities in the host rock are expected to be very small due to the low hydraulic permeability expected in the host rocks (in particular in rock salt and clay). Consequently, the model is not applicable where turbulent flows are expected. All pore space is assumed to be saturated, following e.g. Nagra (2014). Ignoring the unsaturated zone introduces only a small error in most cases. In arid environments, the unsaturated zone might be very large, but even in this case, the assumption will still be conservative: It will lead to an overestimation of the radionuclide release, not to an underestimation. Dispersion can be included as an effectively increased diffusion. Sorption is modeled as linear equilibrium sorption (Freundlich, 1907), i.e. we do not consider competition for sorption sites.

Additionally, we include radioactive decay and the formation of daughter nuclides, as required by the regulatory stipulations. The inventory of nuclear waste that has to be stored contains hundreds of different radionuclides: however, many of them can be shown to be not relevant for the effective release of radionclides. For example, a radionuclide with a half-life of hours will not be transported significantly in the designated host rock before it decays, even in a pessimistic scenario. However, its daughter nuclide might be relevant, if it has a long half-life. At present, a simplified nuclide scheme following this line of argument is employed, taking into account 47 radionuclides (Larue et al., 2013; Fischer-Appelt et al., 2013). It neglects nuclides with small half-lifes, but includes long-lived daughters of short-lived radionuclides. The 47 nuclides in the scheme are shown in Table 1.

Several additional physical processes and their coupling are not taken into account which is discussed together with other simplifications at the end of Sect. 4.

## 2.1 Governing equations

The model computes the evolution of concentration *c*_{i} for each nuclide *i* over time.

The aforementioned processes can be included into a set of coupled differential equations, namely one equation for each of the *n*_{s} radionuclides considered.
The 1D transport equation for the nuclide with the index *i* reads (compare i.e. Bear, 1972; de Marsily, 1986; Kinzelbach, 1992; Clauser, 2003):

Here, *c*_{i} is the amount of nuclide *i* per fluid volume, measured in mol m^{−3}. *R*_{i} is the retardation factor, defined as

and is the factor by which sorption slows down transport due to advection and diffusion.

*K*_{d,i} is the linear equilibrium sorption coefficient, *ρ*_{b} is the bulk density of the rock, and *ϕ*_{i} is the accessible porosity. *D*_{e,i} is the effective diffusion coefficient,

with *D*_{i} being the diffusion coefficient for nuclide *i*. If an additional dispersion term is to be considered, *D*_{e,i} should be replaced by

with *D*_{disp} being the dispersion.
*λ*_{i,j} is the reaction rate for the decay of nuclide *j* to nuclide *i*, and Λ_{i} is the total decay rate of nuclide *i*. The total decay rate Λ_{i} is related to the nuclide's half-life ${t}_{\mathrm{1}/\mathrm{2}}$ by ${\mathrm{\Lambda}}_{i}=\mathrm{log}\mathrm{2}{t}_{\mathrm{1}/\mathrm{2}}^{-\mathrm{1}}$. The individual rates *λ*_{i,j} are connected to this total decay rate by the branching fraction of the relevant decay channel.
Finally, *W*_{i} is a generic source term for radionuclides, that is, it has units of amount of substance per volume and time and measures the inflow of radionuclides from an external source. This can be used, for example, to connect the model to a dedicated near field or canister release model.
*R*_{i} appears on both sides of the equation, but not in front of the advective and diffusive terms, reflecting that it expresses the factor by which both advection and diffusion are reduced due to sorption. The decay term consists of a term with a positive sign, which measures the rate at which other nuclides decay into nuclide *i*, and a term with negative sign, measuring the rate at which nuclide *i* itself decays into other nuclides, including those that are not explicitly tracked in the model (e.g. individual stable nuclides).

Note that we consider transport in various geological layers, so the retardation factor *R*_{i}, effective diffusion coefficient *K*_{d,i}, and porosity *ϕ*_{i} are in general functions of location *x*. *q* is the Darcy velocity.

In the following, we do not consider steady state solutions to the system in Eq. (1). The physical problem we want to solve involves a finite total amout of radioactive waste, meaning that the steady-state solution is the trivial one in which all radionuclides have decayed to stable nuclides. Thus, we focus on the transient solution of the system of equations.

## 2.2 Numerical methods

In order to solve Eq. (1), we resort to a numerical treatment via a finite difference scheme.
The finite difference method is a well established method for solving ordinary and partial differential equations (i.e. Shamir and Harleman, 1967; Marsal, 1989; Clauser, 2003; Rühaak et al., 2008; Luijendijk, 2012).
We divide our domain into *n* nodes at location *x*_{k}. The distance between grid points, ${h}_{k}={x}_{k}-{x}_{k-\mathrm{1}}$ is allowed to vary in space. An illustration of the grid structure is shown in Fig. 2.

Accordingly, the transient problem in the time domain is split into specific time-steps.

The solution of transient partial differential equations requires initial and boundary conditions.

### 2.2.1 Discretization of derivatives

We begin by writing down discretized approximations of the right hand side of Eq. (1).
As mentioned before we assume *D*_{e} to vary with location, whereas *q* is assumed to be constant.
In the following, we use the index *k* to denote the node at which we evaluate a quantity. As expected, special treatment of the boundary nodes (*k*=0, $k=n-\mathrm{1}$) is necessary.

For the diffusive term, we use the following central difference scheme (e.g. LeVeque, 2007):

Here, the index $k\pm \frac{\mathrm{1}}{\mathrm{2}}$ denotes the location half-way between node *k* and node *k*±1, ${x}_{k\pm \mathrm{1}/\mathrm{2}}$. The diffusion coefficient at these interfaces is evaluated using a harmonic mean (Huysmans and Dassargues, 2007). Clearly, in the case of a homogeneous diffusion coefficient and a constant grid spacing *h*_{k}=*h*, Eq. (5) reduces to the familiar second order central difference.

The advection term is also approximated using central differences:

Evaluation of the decay and source term in Eq. (1) is straight-forward, as they do not include derivatives.

### 2.2.2 Time-evolution scheme

To solve the equation, we need to choose a time-evolution scheme. We use a semi-implicit scheme governed by a meta parameter $\mathrm{0}\le \mathit{\theta}\le \mathrm{1}$ sometimes called the *θ*-method as it is robust and relatively fast.

The *θ*-method is a one-step scheme and a combination of the Euler forwards and backwards schemes. For *θ*=0.5 it becomes the second-order accurate Crank-Nicolson scheme (Crank and Nicolson, 1947). Schematically, for a given differential equation of the form

the *θ*-scheme yields

where *F* is an appropriate discretization of *f*, and where we use the index *m* to denote the discrete time step *m* at which a quantity is evaluated. For *θ*=0, this becomes the Euler-forwards scheme which is prone to numerical instability. For *θ*=1, it becomes the Euler-backwards scheme which is unconditionally stable, and for *θ*=0.5 we recover the Crank-Nicolson scheme which is second order accurate and unconditionally stable as well.

Inserting our discretizations from Eqs. (5) and (6), as well as the decay and source term into Eq. (8), we obtain:

Where we have defined

As can be seen from Eq. (9), the decay terms are evaluated at time step *m* and not *m*+1, like the additional external source term. This is necessary to deal with the dependency of *c*_{i} on potentially all other *c*_{j} with *j*≠*i* that could decay into *c*_{i}. As the currently used nuclide chains are relatively simple, it would be possible to sort the equations in a way that allows including the decay term in an implicit fashion. We leave this to future work.
By defining

and rearranging the terms in Eq. (9) such that unknown terms are on the left, we find

### 2.2.3 Matrix equation

Identifying the right hand side with a vector ** b**, this can be represented as a matrix equation, ${\mathbf{M}}_{i}{\mathit{c}}_{i}^{m+\mathrm{1}}={\mathit{b}}_{i}$, for each nuclide

*i*.

**M**

_{i}is a tridiagonal matrix with the structure:

The terms *B*_{l,0}, *B*_{l,1}, ${B}_{\mathrm{r},\mathrm{n}-\mathrm{2}}$, ${B}_{\mathrm{r},\mathrm{n}-\mathrm{1}}$ control how the boundary nodes – the nodes on the left and right edge of the model domain – evolve and are set by the boundary conditions.

Again, it becomes evident here why we treat the decay terms as an external source term evaluated at time step *m*: otherwise, we could not write the equation as system of linear equations, because the decay term couples the concentration of different species with each other.

### 2.2.4 Boundary conditions

Dirichlet boundary conditions are used to fix the concentration at the outer edges of the domain (here termed left and right) to a constant value, i.e. ${c}_{i,\mathrm{0}}^{m}={c}_{i,\mathrm{0}}^{m+\mathrm{1}}={C}_{i,\mathrm{left}},\phantom{\rule{0.25em}{0ex}}{c}_{i,\mathrm{n}-\mathrm{1}}^{m}={c}_{i,\mathrm{n}-\mathrm{1}}^{m+\mathrm{1}}={C}_{i,\mathrm{right}}$ yielding:

and the vector entries are set to the specified concentrations, ${b}_{\mathrm{0}}={C}_{i,\mathrm{left}}$ or ${b}_{\mathrm{n}-\mathrm{1}}={C}_{i,\mathrm{right}}$.

Neumann boundary conditions can be considered as well. For the left boundary at *k*=0, they are defined by

where we have applied a central differencing scheme on the right hand side. The node at $k=-\mathrm{1}$ is a fictitious grid point outside of the domain, and we set *h*_{0}=*h*_{1}. Furthermore, we assume ${D}_{{k}_{-}\frac{\mathrm{1}}{\mathrm{2}}}={D}_{{k}_{+}\frac{\mathrm{1}}{\mathrm{2}}}$.

We can use Eq. (23) to eliminate the fictitious grid point from the transport equation for the boundary, which results in

where we have omitted the decay and source terms for brevity. Consequently, the boundary terms for Neumann boundary conditions on the left boundary read:

A similar derivation can be made for Neumann boundaries on the right boundary of the model.

### 2.2.5 Initial conditions

We assume instantaneous release of the radionuclides from canisters and the emplacement area and neglect solubility limits. Thus, the initial conditions are simply given by the total amount of each radionuclide in the repository and the volume of the repository. Future development will be focused on overcoming this simplification, see Sect. 4.

### 2.2.6 Implementation

The matrix Eq. (21) can be solved using standard methods. Our implementation is based on the PyBasin model (Luijendijk, 2020).

Given the sparse structure of the matrix, we employ the *spsolve* solver in the Python package scipy (Virtanen et al., 2020), which in our case uses the SuperLU (Li, 2005) library to perform an LU decomposition followed by Gaussian elimination.
For testing purposes and benchmarking, we also implemented an interface for external solvers, namely scipy's *solve_ivp*, that operate directly on the right hand side of Eq. (9).

Since the nuclide scheme with its 47 nuclides contains a few linear decay chains and many activation or fission products that directly decay to a stable nuclide, many of the nuclides can be solved for in parallel. For example, all of the activation and fission products (see Table 1) in our model decay directly to stable nuclides. As in our model, they do not interact with each other nor with other nuclides, we can as well run the model for each nuclide individually on a different CPU, parallelizing the work. For the nuclide chains, this is not possible, as the different nuclides' concentrations are coupled: however, one model can be run for each of the (four) chains in parallel.

To exploit this, we make use of the pathos (McKerns et al., 2012) package and run the model in parallel for appropriate chunks of the nuclide scheme. To further speed up the calculation, we use just-in-time compilation through Numba (Lam et al., 2015).

### 2.2.7 Choice of time step size

Predefined time steps can be used with an initial “ramping up” of the time step size from a small initial value to a specified size Δ*t*_{max}.
There are three timescales determining Δ*t*_{max}, namely the typical timescales of advection ${t}_{\mathrm{a}}=\frac{\mathrm{\Delta}x}{{v}_{\mathrm{max}}}$, diffusion ${t}_{\mathrm{diff}}=\frac{\mathrm{\Delta}{x}^{\mathrm{2}}}{{D}_{\mathrm{max}}}$, and decay *t*_{d}; *v*_{max} is the maximum groundwater velocity in the setup, and *D*_{max} is the maximum diffusion coefficient in the setup.

In the given geological context, the timescale associated with radioactive decay or advection is usually the shortest. The selection of $\mathrm{\Delta}{t}_{\mathrm{max}}=\mathit{\alpha}min({t}_{\mathrm{a}},{t}_{\mathrm{d}})$ ensures stability and physical correctness, with *α*<1.

### 2.2.8 Radioactive decay and convergence

As the time step is usually determined by the radioactive decay of the shortest-lived radionuclide in question, a large number of time steps might be required to reach the designated accuracy. For some nuclides, this can become very expensive in terms of computational effort. It is possible to increase both accuracy and performance by applying operator splitting (i.e. Geiser, 2004) between the transport problem on the one hand (advection, diffusion, sorption) and radioactive decay on the other hand. The idea here is to evaluate the decay with smaller time steps than the employed global time step, and feed the result back into the transport scheme at every global time step. Generally, this could be done e.g. by employing a higher-order Runge-Kutta (e.g. LeVeque, 2007) solver for the sub-time steps. As we currently only consider linear decay chains with few convergent branches, we instead use the analytic solution given by Bateman (1910).

Consider an ordered, linear decay chain with *R* members in which each species *r* directly decays into species *r*+1. Assume that initially, only species *r*=0 is present at a concentration *c*_{0}=*C*_{0}, whereas as *c*_{r}=0 mol m^{−3} for all other *r*. Then, the Bateman solution reads (Pressyanov, 2002):

To include the more general case in which all *c*_{r} are non-zero initially, the above equation is employed multiple times on the subchains and the results are summed.

For illustration, consider a chain with three members, *R*=3. It can be decomposed into three subchains, containing the species ($\mathrm{0},\mathrm{1},\mathrm{2}$), (1,2), and (2). We can employ Eq. (26) on the three subchains, with the initial conditions (${C}_{\mathrm{0}},\mathrm{0},\mathrm{0}$), (*C*_{1},0), (*C*_{2}) and the indices shifted appropriately. Branched decay chains can be implemented in the same fashion, as long as the chain can be cut into linear subchains.
We write the resulting Bateman solution as ${\stackrel{\mathrm{\u0303}}{c}}_{i}^{\phantom{\rule{0.25em}{0ex}}m+\mathrm{1}}={f}_{\mathrm{Bateman}}({c}_{i}^{m},\mathrm{\Delta}t)$, where ${c}_{i}^{m}$ is the concentration at time step *m* and Δ*t* is the size of the time step. We put a tilde on the result, ${\stackrel{\mathrm{\u0303}}{c}}_{i}^{\phantom{\rule{0.25em}{0ex}}m+\mathrm{1}}$, as a reminder that the outcome concerns only the decay-part of the problem. Note that in this case, Δ*t*_{max} becomes independent of the half-life of the nuclides, resulting in larger allowed time steps.

To employ this operator splitting scheme in the transport model, we drop the original decay terms in Eq. (20), and instead introduce the Bateman solution averaged over the time step:

Currently, the user has to decide if the operator splitting is to be used or not before starting a program run.

Testing TransPyREnd is an on-going effort that will be continuously documented. Here, we briefly show first tests on analytic or semi-numeric solutions.

## 3.1 Comparison with Van Genuchten (1982)

First, we show a comparison of TransPyREnd with an analytic solution for the transport of nuclides in porous media given by Van Genuchten (1981, 1982), Javandel et al. (1984). The solution includes decay, diffusion, sorption, and advection in a homogeneous geological layer. We choose the parameter values stated in Table 2 and use operator splitting for the radioactive decay as detailed in Sect. 2.2.8. The result is shown for various output times between 10^{3} and 10^{6} years in Fig. 3.

We find a good agreement with the analytic solution: The root mean square error (RMSE) is $\mathrm{6}\times {\mathrm{10}}^{-\mathrm{5}}$ mol m^{−3}. The total run time is about 17 s on a normal desktop machine. Note that the analytical solution is derived under the assumption of a semi-infinite domain, with the concentration gradient vanishing at infinity. Since we cannot exactly reproduce this boundary condition in a finite domain, we instead chose a no-flow boundary condition on the right edge and made the domain considerably larger than the region where we compare with the analytic solution.

In Fig. 4, we show how the RMSE changes when varying both the time step size Δ*t* and the grid spacing Δ*x*. In the left panel, we vary the grid spacing and keep the time step size fixed, while in the right panel we vary the time step size and keep the grid spacing constant. In general, both methods perform similarly well for reasonable parameter choices. The advantage of the operator splitting, namely allowing for time step sizes larger than the half-life of the relevant nuclide, is not in play in this test, as the half-life is very large compared to the timescale for advection and diffusion. As can be seen in the right panel, the error made by treating the processes of diffusion/advection on the one hand and decay on the other hand quickly rises with growing time step size.

## 3.2 Testing Decay Chains

Secondly, we show a test involving both the radioactive decay in a decay chain and diffusion to test the mass conservation of our scheme. We arbitrarily place 1 mol of Cm-245 in the center of a domain with a total length of 1000 m and let the system evolve under decay and diffusion for 10^{6} years. The boundaries are held fixed at a concentration of 0 mol m^{−3}. All species in the chain have the same effective diffusion coefficient of 10^{−12} m^{2} s^{−1}, the porosity is 0.05. The spatial resolution for this test is 1 m. We use the simplified Neptunium chain from Larue et al. (2013) here; the chain and the half-lifes are shown in Table 3, and show results both with and without operator splitting.

Figure 5 shows the total amount of each of the chain members, that is, the concentration summed over the spatial domain, compared with the solution to the pure decay problem as calculated with the Python package radioactivedecay (Malins and Lemoine, 2022). Again, we are in good agreement, with an RMSE of $\mathrm{2}\times {\mathrm{10}}^{-\mathrm{6}}$ mol m^{−3} both for the run with operator splitting and $\mathrm{5}\times {\mathrm{10}}^{-\mathrm{4}}$ mol m^{−3} for the run without. The execution times differ as well: with operator splitting, the test takes about 4 s on a Desktop machine. Without operator splitting, the test takes about 10 s, due to the stronger constraint on the timestep. In this specific case, we use a timestep of 1000 years for the operator splitting case, and 216 years for the case without operator splitting. We also show a run without the operator splitting scheme for which we enforced a time step of 1000 years. In this case, the RMSE increases to 10^{−2} mol m^{−3}. The deviations in the short-lived radionuclides become visible towards the end of the simulation time.

Naturally, the performance gain grows as the minimum half-life in the problem goes down. For example, for the Actinium decay chain, the allowed time step is of the order of 10 years, resulting in a runtime of 36 s without operator splitting, and 4 s with operator splitting. Enforcing the same time step as before will render the system unstable in this case. Thus, depending on the details of the decay chains in question, the operator splitting scheme can provide a relevant improvement in performance.

In this paper, we have presented the radionuclide transport code TransPyREnd, developed specifically for application in the representative preliminary safety assessments of the German site selection procedure for high-level radioactive waste. The 1D model includes the processes diffusion, advection, sorption, and radioactive decay in the geological barrier. For the model we use a nuclide scheme (Larue et al., 2013) from the literature, pending updates from current BGE research projects. We have summarized the mathematical description of the model, the discretization steps required and our strategy to solve the equations numerically. The code is undergoing rigorous testing and comparison e.g. to OpenGeoSys (Bilke et al., 2022). The benchmarks will be part of a forthcoming paper. TransPyREnd will be made public under an Open-Source license for the community and the interested public in early 2023.

As noted in Sect. 1.1, we have reduced the complexity of the problem by neglecting, in particular, hydraulic, geochemical, mechanical, and thermal processes as well as their coupling. As an example for the possible effect of these additional coupled processes, consider the heating from high-level radioactive waste in the first few hundred years, peaking at up to a few kW per fuel element. The heating has a potential effect on the mechanical state of the deposit and its surroundings (due to thermal expansion) which in turn can affect e.g. the fluid pressure and the porosity of the host rock layer. Both parameters affect the migration of radionuclides.

Our current approach of neglecting these effects is justified by the degree of knowledge about the parameters governing these processes at the current stage of the site selection procedure. However, it is clear that in later stages, these processes need to be carefully addressed to assess their importance to radionuclide migration.

Also, the one-dimensional approach might become less appropriate at later stages, in particular to assess effects arising from complex geometries. While the latter is generally not expected to lead to an increased discharge of radionuclides in the model, the former might have effects in both directions, lowering or enhancing the release of radionuclides in the geosphere/biosphere. At the current stage, the arising uncertainties (i.e. Bjorge et al., 2022) could be considered by systematically varying the model parameters, in particular the diffusion and sorption coefficients. Apart from these considerations, it should be noted that decay processes could also be solved in a semi-implicit fashion by taking advantage of the simple, linear decay chains in our nuclide scheme. The performance of the code could be be imprived by the implementation of a more specialized solving method like the Thomas algorithm (Thomas, 1949). We leave this to future work. Additionally, a near-field model which could consider for instance retention by backfill material is planned for the future.

In the next phases of the site-selection procedure more complex 3D numerical models will be computed. For this aim the OpenWorkFlow project was initiated by BGE (e.g. see https://www.ufz.de/index.php?en=48378, last access: 13 January 2023).

TransPyREnd will be made public under an Open-Source license.

CB and EL developed the model code, contributed to writing, conceptualizing the manuscript, ran the calculations and created the plots. EL reviewed the manuscript. SM contributed to writing, calculations, and review. MG contributed to writing, review, and created Fig. 1. FP and PK contributed to writing and review. MB and AR reviewed the paper. WR contributed to conceptualizing, writing, and reviewing the manuscript, and did supervision.

The contact author has declared that none of the authors has any competing interests.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article is part of the special issue “European Geosciences Union General Assembly 2022, EGU Division Energy, Resources & Environment (ERE)”. It is a result of the EGU General Assembly 2022, Vienna, Austria, 23–27 May 2022.

We would like to thank Olaf Kolditz, Haibing Shao and Renchao Lu for fruitful discussions of the validation strategy. TransPyREnd makes use of Python (Van Rossum and Drake, 1995), IPython (Pérez and Granger, 2007), (Virtanen et al., 2020), Numpy (Harris et al., 2020), Numba (Lam et al., 2015), Matplotlib (Hunter, 2007), Pandas (Pandas development team, 2020), Pathos (McKerns et al., 2012), and radioactivedecay (Malins and Lemoine, 2022).

This paper was edited by Michael Kühn and reviewed by two anonymous referees.

Bateman, H.: The solution of a system of differential equations occurring in the theory of radioactive transformations, Proc. Cambridge Philos. Soc., 15, 423–427, 1910. a

Bear, J.: Dynamics of Fluids in Porous Media, Dover Publications, Inc., New York, ISBN13 9780486656755, 1972. a

BGE: Zwischenbericht Teilgebiete gemäß § 13 StandAG, https://www.bge.de/fileadmin/user_upload/Standortsuche/Wesentliche_Unterlagen/Zwischenbericht_Teilgebiete/Zwischenbericht_Teilgebiete_barrierefrei.pdf (last access: 13 January 2023), 2020. a

BGE: Konzept zur Durchführung der repräsentativen vorläufigen Sicherheitsuntersuchungen gemäß Endlagersicherheitsuntersuchungsverordnung, Tech. rep., BGE mbH, https://www.bge.de/fileadmin/user_upload/Standortsuche/Wesentliche_Unterlagen/Methodik/Phase_I_Schritt_2/rvSU-Methodik/20220328_Konzept_zur_Durchfuehrung_der_rvSU_barrierefrei.pdf (last access: 13 January 2023), 2022a. a

BGE: Methodenbeschreibung zur Durchführung der repräsentativen vorläufigen Sicherheitsuntersuchungen gemäß Endlagersicherheitsuntersuchungsverordnung, Tech. rep., BGE mbH, https://www.bge.de/fileadmin/user_upload/Standortsuche/Wesentliche_Unterlagen/Methodik/Phase_I_Schritt_2/rvSU-Methodik/20220328_Anlage_zu_rvSU_Konzept_Methodenbeschreibung_barrierefrei.pdf (last access: 13 January 2023), 2022b. a

Bilke, L., Fischer, T., Naumov, D., Lehmann, C., Wang, W., Lu, R., Meng, B., Rink, K., Grunwald, N., Buchwald, J., Silbermann, C., Habel, R., Günther, L., Mollaali, M., Meisel, T., Randow, J., Einspänner, S., Shao, H., Kurgyis, K., Kolditz, O., and Garibay, J.: OpenGeoSys, Zenodo [code], https://doi.org/10.5281/zenodo.7092676, 2022. a

Bjorge, M., Kreye, P., Heim, E., Wellmann, F., and Rühaak, W.: The role of geological models and uncertainties in safety assessments, Environ. Earth Sci., 81, 190, https://doi.org/10.1007/s12665-022-10305-z, 2022. a

Clauser, C.: SHEMAT and Processing SHEMAT – Numerical Simulation of Reactive Flow in Hot Aquifers, Springer, Heidelberg-Berlin, Berlin, Heidelberg, https://doi.org/10.1007/978-3-642-55684-5, 2003. a, b

Crank, J. and Nicolson, P.: A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type, Math. Proc. Cambridge, 43, 50–67, https://doi.org/10.1017/S0305004100023197, 1947. a

de Marsily, G.: Quantitative Hydrogeology, Academic Press, San Diego, ISBN 9780122089169, 1986. a

EndlSiAnfV: Endlagersicherheitsanforderungsverordnung vom 6. Oktober 2020 (BGBl. I S. 2094), Bundesanzeiger Verl.-Ges., ISSN 0341-1095, 2020. a

EndlSiUntV: Endlagersicherheitsuntersuchungsverordnung vom 6. Oktober 2020 (BGBl. I S. 2094, 2130), Bundesanzeiger Verl.-Ges., ISSN 0341-1095, 2020. a

Fischer-Appelt, K., Baltes, B., Buhmann, D., Larue, J., and Mönig, J.: Synthesebericht für die VSG: Bericht zum Arbeitspaket 13. Vorläufige Sicherheitsanalyse für den Standort Gorleben, GRS-290, Tech. rep., Gesellschaft für Anlagen-und Reaktorsicherheit (GRS) mbH, Köln, ISBN 978-3-939355-66-3, 2013. a, b

Freundlich, H.: Über die Adsorption in Lösungen, Z. Phys. Chem., 57U, 385–470, https://doi.org/10.1515/zpch-1907-5723, 1907. a

Garibay-Rodriguez, J., Chen, C., Shao, H., Bilke, L., Kolditz, O., Montoya, V., and Lu, R.: Computational Framework for Radionuclide Migration Assessment in Clay Rocks, Front. Nucl. Eng., 1, https://doi.org/10.3389/fnuen.2022.919541, 2022. a

Geiser, J.: Diskretisierungsverfahren für Systeme von Konvektions-Diffusions-Dispersions-Reaktions-Gleichungen und Anwendungen, PhD Thesis, Naturwissenschaftlichen-Mathematischen Gesamtfakultät der Ruprecht-Karls-Universität Heidelberg, Heidelberg, https://archiv.ub.uni-heidelberg.de/volltextserver/4326/1/haupt.pdf (last access: 13 January 2023), 2004. a

Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., Gérard-Marchant, P., Sheppard, K., Reddy, T., Weckesser, W., Abbasi, H., Gohlke, C., and Oliphant, T. E.: Array programming with NumPy, Nature, 585, 357–362, https://doi.org/10.1038/s41586-020-2649-2, 2020. a

Hoyer, E.-M., Luijendijk, E., Müller, P., Kreye, P., Panitz, F., Gawletta, D., and Rühaak, W.: Preliminary safety analyses in the high-level radioactive waste site selection procedure in Germany, Adv. Geosci., 56, 67–75, https://doi.org/10.5194/adgeo-56-67-2021, 2021. a

Hunter, J. D.: Matplotlib: A 2D graphics environment, Comput. Sci. Eng., 9, 90–95, https://doi.org/10.1109/MCSE.2007.55, 2007. a

Huysmans, M. and Dassargues, A.: Equivalent diffusion coefficient and equivalent diffusion accessible porosity of a stratified porous medium, Transport Porous Med., 66, 421–438, https://doi.org/10.1007/s11242-006-0028-6, 2007. a

Javandel, I., Doughty, C., and Tsang, C. F.: Groundwater Transport: Handbook of Mathematical Models, vol. 10 of Water Resources Monograph, AGU, ISBN 9780875903132, 1984. a

Kinzelbach, W.: Numerische Methoden zur Modellierung des Transports von Schadstoffen im Grundwasser, 2nd Edn., Oldenbourg, ISBN 9783486263473, 1992. a

Lam, S. K., Pitrou, A., and Seibert, S.: Numba: A LLVM-Based Python JIT Compiler, in: Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in: HPC, LLVM '15, Association for Computing Machinery, New York, NY, USA, https://doi.org/10.1145/2833157.2833162, 2015. a, b

Larue, J., Baltes, B., Fischer, H., Frieling, G., Kock, I., Navarro, M., and Seher, H.: Radiologische Konsequenzenanalyse, GRS-289, Tech. rep., Gesellschaft für Anlagen-und Reaktorsicherheit (GRS) mbH, Köln, ISBN 9783939355656, 2013. a, b, c, d, e

LeVeque, R. J.: Finite difference methods for ordinary and partial differential equations: steady-state and time-dependent problems, SIAM, ISBN 9780898716290 ,2007. a, b

Li, X. S.: An Overview of SuperLU: Algorithms, Implementation, and User Interface, ACM T. Math. Software, 31, 302–325, 2005. a

Luijendijk, E.: The role of fluid flow in the thermal history of sedimentary basins: Inferences from thermochronology and numerical modeling in the Roer Valley Graben, southern Netherlands, PhD thesis, Vrije Universiteit Amsterdam, 2012. a

Luijendijk, E.: PyBasin: Numerical model of basin history, heat flow and thermochronology, Zenodo [code], https://doi.org/10.5281/zenodo.4263427, 2020. a

Malins, A. and Lemoine, T.: radioactivedecay: A Python package for radioactive decay calculations, J. Open Source Softw., 7, 3318, https://doi.org/10.21105/joss.03318, 2022. a, b, c

Marsal, D.: Finite Differenzen und Elemente, Numerische Lösung von Variationsproblemen und partiellen Differentialgleichungen, Springer-Verlag, Berlin, ISBN 978-3540501923, 1989. a

McKerns, M. M., Strand, L., Sullivan, T., Fang, A., and Aivazis, M. A. G.: Building a Framework for Predictive Science, arXiv [preprint], https://doi.org/10.48550/arXiv.1202.1056, 2012. a, b

Nagra: Project Opalinus Clay, Technical Report 02-05, ISSN 1015-2636, 2002. a

Nagra: PICNIC-TD, User Guide for Version 1.4, Arbeitsbericht NAB 13-21, 2013. a

Nagra: Provisional Safety Analyses for SGT Stage 2: Models, Codes and General Modelling Approach, Technical Report 14-09, ISSN 1015-2636, 2014. a

Norman, S. and Kjellbert, N.: FARF31 – a far field radionuclide migration code for use with the PROPER package, Tech. rep., Report Number SKB-TR-90-01, Svensk Kärnbränslehantering AB, https://www.skb.com/publication/2525/TR90-01webb.pdf (last access: 13 January 2023), 1990. a

Pandas development team: pandas-dev/pandas: Pandas, Zenodo [code], https://doi.org/10.5281/zenodo.3509134, 2020. a

Pérez, F. and Granger, B. E.: IPython: a System for Interactive Scientific Computing, Comput. Sci. Eng., 9, 21–29, https://doi.org/10.1109/MCSE.2007.53, 2007. a

Pressyanov, D. S.: Short solution of the radioactive decay chain equations, Am. J. Phys., 70, 444–445, https://doi.org/10.1119/1.1427084, 2002. a

Reiche, T.: RepoTREND Das Programmpaket zur integrierten Langzeitsicherheitsanalyse von Endlagersystemen, GRS-413, Tech. rep., Gesellschaft für Anlagen-und Reaktorsicherheit (GRS) mbH, ISBN 9783944161952, 2016. a

Rühaak, W., Rath, V., Wolf, A., and Clauser, C.: 3D finite volume groundwater and heat transport modeling with non-orthogonal grids, using a coordinate transformation method, Adv. Water Resour., 31, 513–524, https://doi.org/10.1016/j.advwatres.2007.11.002, 2008. a

Shamir, U. Y. and Harleman, D. R. F.: Numerical solutions for dispersion in porous mediums, Water Resour. Res., 3, 557–581, https://doi.org/10.1029/WR003i002p00557, 1967. a

StandAG: Standortauswahlgesetz vom 5. Mai 2017 (BGBl. I S. 1074) (das zuletzt durch Artikel 1 des Gesetzes vom 7. Dezember 2020 (BGBl. I S. 2760) geändert worden ist), Bundesanzeiger Verl.-Ges., ISSN 0341-1095, 2017 (updated 2020). a, b

Tartakovsky, D. M. and Dentz, M.: Diffusion in Porous Media: Phenomena and Mechanisms, Transport Porous Med., 130, 105–127, https://doi.org//10.1007/s11242-019-01262-6, 2019. a

Thomas, L. H.: Elliptic problems in linear difference equations over a network, Watson Sci. Comput. Lab. Rept., Columbia University, New York, 1, 71 pp., 1949. a

Trinchero, P., Cvetkovic, V., Selroos, J.-O., Bosbach, D., and Deissmann, G.: Upscaling of radionuclide transport and retention in crystalline rocks exhibiting micro-scale heterogeneity of the rock matrix, Adv. Water Resour., 142, 103644, https://doi.org/10.1016/j.advwatres.2020.103644, 2020. a

Van Genuchten, M.: Analytical solutions for chemical transport with simultaneous, zero-order production and first-order decay, J. Hydrol., 49, 213–233, https://doi.org/10.1016/0022-1694(81)90214-6, 1981. a, b, c, d

Van Genuchten, M. T.: One-dimensional analytical transport modeling, in: Symposium on Unsaturated How and Transport Modeling, Rep. PNL-SA-10325, Pacific Northwest Lab., Richland, Wash., also available as U.S. Nuc./Regul. Comm. Rep. NUREG/CP-0030, 231–248, 1982. a, b

Van Loon, L.: Effective diffusion coefficients and porosity values for argillaceous rocks and bentonite: measured and estimated values for the provisional safety analyses for SGT-E2, Tech. Rep. 1015-2636, ISSN 1015-2636, http://inis.iaea.org/search/search.aspx?orig_q=RN:48088310 (last access: 13 January 2023), 2014. a, b

Van Rossum, G. and Drake Jr., F. L.: Python tutorial, Centrum voor Wiskunde en Informatica Amsterdam, Rep. No. CS-R9526, ISSN 0169-118X, Amsterdam, Netherlands https://ir.cwi.nl/pub/5007/05007D.pdf (last access: 13 January 2023), 1995. a

Virtanen, P., Gommers, R., Oliphant, T. E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S. J., Brett, M., Wilson, J., Millman, K. J., Mayorov, N., Nelson, A. R. J., Jones, E., Kern, R., Larson, E., Carey, C. J., Polat, İ., Feng, Y., Moore, E. W., VanderPlas, J., Laxalde, D., Perktold, J., Cimrman, R., Henriksen, I., Quintero, E. A., Harris, C. R., Archibald, A. M., Ribeiro, A. H., Pedregosa, F., van Mulbregt, P., and SciPy 1.0 Contributors: SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python, Nat. Methods, 17, 261–272, https://doi.org/10.1038/s41592-019-0686-2, 2020. a, b