Background

Motivation

dorado was developed to provide an open-source and general method for routing passive tracer particles in a landscape scale flow field. Methods to simulate Lagrangian particle transport exist in adjacent fields and have been developed to solve problems at large scales [1] and at small scales [2]. The popular Delft3D suite of modules contains a method for Lagrangian particle tracking called Delft3D-PART [3], however as part of the larger, complex Delft3D ecosystem, this code is harder to interrogate and understand directly.

By developing dorado as a standalone python package, we hope to simplify the simulation of Lagrangian particle transport so that it may be applied to the results from any hydrodynamic simulation.

Name

The name dorado is inspired by the fish.

Theory

Particle transport is simulated through the use of a weighted random walk framework [4]. In particular, we apply methods similar to those used in the numerical model DeltaRCM [5] [6], to weight the random walk by the local water slopes and the water discharge components.

dorado assumes a rectangular grid and routes particles in a D-8 fashion assuming that the potential future location of a given particle is one of the surrounding 8 cells.

The weights for the random walk are sensitive to 2 parameters, \({\gamma}\) and \({\theta}\).

The routing direction (F) is the estimate of the local downstream of the flow [5]. This direction F is comprised of \({F_{sfc}}\), and \({F_{int}}\), calculated based on the water surface gradient and the discharge respectively. The proportional combination of these directional components is dictated by the parameter \({\gamma}\):

\[F = \gamma F_{sfc} + (1-\gamma) F_{int}\]

In this way, the \({\gamma}\) parameter controls the proportional dependence of water surface slope and water discharge on the downstream direction. A \({\gamma}\) of 0 means that the water slope is ignored when determining the downstream flow direction, and a \({\gamma}\) of 1 means that the discharge values (the flow field) is ignored.

The second weighting parameter, \({\theta}\) modifies the routing weight for the random walk based on the local water depth value. The routing weights for each neighboring cell are calculated per [5], using the following equation:

\[w_i = \frac{ \text{max} \left(0, F \cdot d_i \right)}{R_i \Delta_i}\]

The resistance value (\({R_i}\)) is computed using the local water depth (\({h_i}\)) and the parameter \({\theta}\):

\[R_i = \frac{1}{h_i^\theta}\]

When \({\theta}\) is 0, then the local depth values are not impacting the weighting factor associated with each cell. As \({\theta}\) gets larger, the local routing weights have an increasingly large dependence on the water depth of the neighboring cells.

To measure the travel times associated with the particles as they move through the flow field, both the flow velocity and the direction of the flow are taken into account. As the particles are routed on a grid, there is a loss of accuracy due to the assumption that particles are located in the center of grid cells. To account for this ‘lost time’, a diffusive coefficient (\({dc}\)) is applied to introduce some diffusivity to the travel time values.

The travel time calculation is based on the effective distance the particle travels in the orientation of the mean flow at the particle’s location. This effective or projected distance (\({d_{eq}}\)) is computed using the definition of a vector projection based on the actual distance being traveled (\({\Delta}\)) and the orientation of travel relative to the mean flow vector (\({\phi}\)):

\[d_{eq} = \Delta \times \cos{\phi}\]

The travel time (\({T_t}\)) is then calculated based on this effective distance (\({d_{eq}}\)) and the average of the inverted velocity values at the origin cell location (\({o}\)) and the new cell location (\({i}\)) for the particle. To re-introduce diffusivity lost due to the gridded scheme used in dorado, the travel time is also modulated by a user-specified diffusivity coefficient (\({dc}\)) which is multiplied by a sample from a uniform distribution centered at 0:

\[T_t = \frac{1}{2} \times d_{eq} \times \left(\frac{1}{v_o} + \frac{1}{v_i}\right) \times \left(1 + \left[dc \times U(-0.5,0.5)\right]\right)\]

When \({dc}\) is 0, then the travel time calculation is based solely on the velocity field and deviation in particle path trajectory from the mean flow path. As the diffusivity coefficient is increased, the diffusivity present in travel time distributions will increase as well.

References