Skip to content

Particle Tracking Algorithm

The original particle tracking algorithm in CE-QUAL-W2 was developed by Goodwin et al. (2001) for use in a smart-particle tracking algorithm predicting movement of fish in a southern reservoir in the USA. A description from Goodwin et al. (2001) of the algorithm is reproduced below:

The particle-tracking algorithm used was developed by Chapman et al. (1994) to predict transport and fate of floatables and suspended and dissolved materials in three dimensions. The algorithm was simplified for use in CE-QUAL-W2 by deleting portions of the model relating to surface transport of floatables and suspended and dissolved materials. In addition, transport equations for lateral movement were also deleted because CE-QUAL-W2 computes forcing functions only in the longitudinal and vertical directions. The following equations are used for particle tracking in CE-QUAL-W2 based on velocity:

\[ X^{t+1} = X^{t} + U^{t}(Z^{t}, X^{t}) \cdot \Delta t \tag{3-1} \]
\[ Z^{t+1} = Z^{t} + W^{t}(Z^{t}, X^{t}) \cdot \Delta t \tag{3-2} \]

Variable Definitions

The variables in the transport equations are defined as follows:

Variable Definition
Node(k,i) Node above, upstream, and closest to the particle's position, defined as the upper-left node of the rectangular cell formed by intersection of vertical layer k and longitudinal segment i
\(x_{\text{Node}(k,i)}\) Longitudinal position of Node(k,i) (m)
\(\Delta x\) Offset (downstream) from Node(k,i) to the particle's position (m)
\(z_{\text{Node}(k,i)}\) Vertical position of Node(k,i) (m)
\(\Delta z\) Offset (below) from Node(k,i) to the particle's position (m)
\(X^{t+1}\) Longitudinal position of particle at time \(t+1\) (m); defined as \(x_{\text{Node}(k,i)} + \Delta x\) at time \(t+1\)
\(Z^{t+1}\) Vertical position of particle at time \(t+1\) (m); defined as \(z_{\text{Node}(k,i)} + \Delta z\) at time \(t+1\)
\(X^{t}\) Longitudinal position of particle at time \(t\) (m); defined as \(x_{\text{Node}(k,i)} + \Delta x\) at time \(t\)
\(Z^{t}\) Vertical position of particle at time \(t\) (m); defined as \(z_{\text{Node}(k,i)} + \Delta z\) at time \(t\)
\(U^{t}(Z^{t}, X^{t})\) Interpolated horizontal flow velocity (m/s) at location \((Z^{t}, X^{t})\)
\(W^{t}(Z^{t}, X^{t})\) Interpolated vertical flow velocity (m/s) at location \((Z^{t}, X^{t})\)
\(\Delta t\) Time interval between time \(t\) and time \(t+1\) (seconds)
Particle transport through the CE-QUAL-W2 grid
Figure 44. From Goodwin et al. (2001) illustrating the particle transport through the CE-QUAL-W2 grid.

Boundary Checks

After \(X^{t+1}\) and \(Z^{t+1}\) are calculated, boundary checks are performed to determine if the particle's new position exceeds either the longitudinal or vertical boundaries of the cell containing \(X^{t}\) and \(Z^{t}\), or any system boundary. An algorithm is activated to determine the appropriate cell in which to place the particle if the particle's new position exceeds the boundaries of its cell from the previous time step. Once the appropriate cell is found, the values of k, i, Node(k,i), \(x_{\text{Node}(k,i)}\), \(z_{\text{Node}(k,i)}\), \(\Delta x\), and \(\Delta z\) are updated for the particle at \(t+1\) and stored.

Since the displacement of a particle is proportional to the time step used, the displacement calculated in Equations 3-1 and/or 3-2 could position the particle outside system boundaries. To correct for this, the model places a particle near the boundary at a user-specified distance if \(X^{t+1}\) or \(Z^{t+1}\) exceeds the system boundaries.

Turbulent Diffusion

In addition, a random movement of the particle is added to the velocity movement. The randomness added to the particle movement is based on the intensity of turbulence in a system. Following the work of Dunsbergen and Stalling (1993) and Chapman et al. (1994), the transport in x and z including the translation by velocity and random turbulent transport are shown below:

\[ X^{t+1} = X^{t} + U \Delta t + R\sqrt{6 D_x \Delta t} \tag{3-3} \]
\[ Z^{t+1} = Z^{t} + W \Delta t + R\sqrt{6 D_z \Delta t} \tag{3-4} \]

where:

  • \(R\) = a random number having a uniform distribution with zero mean and unit variance
  • \(D_x\) = longitudinal mass/heat dispersion coefficient
  • \(D_z\) = vertical mass/heat dispersion coefficient

The use of the uniform distribution rather than a Gaussian distribution saves computational time and does not affect the resulting random distribution (Hathhorn, 1997).

Dispersion Coefficient Specification

The value of \(D_x\) is specified in the control file w2_con.npt, whereas the value of \(D_z\) is computed based on the turbulence closure model used, such as the k-ε turbulence model (for example in w2_con.npt the user can set AZC=TKE). The choice of \(D_x\) can lead to high values of random movement in x if \(D_x\) is high. In all cases the maximum movement of a particle is constrained by the grid cell height, \(\Delta z\), and segment length, \(\Delta x\).

High Dispersion Coefficient Values

Setting \(D_x\) to a high value can cause excessive random movement of particles. The maximum particle movement per time step is bounded by the grid cell dimensions (\(\Delta z\) and \(\Delta x\)).

Lateral Transport

Particles also move in the lateral direction based on the following equation, assuming that the lateral dispersion coefficient is the same as the longitudinal coefficient:

\[ Y^{t+1} = Y^{t} + V \Delta t + R\sqrt{6 D_x \Delta t} \tag{3-5} \]

The value of \(V\) is based on any lateral inflows or outflows at a segment.

Particle Location in the Grid

The location of the particles in the grid is identified by segment (I) and layer (K) location as well as X, Y, and Z coordinates within each layer. Figure 45 and Figure 46 show the x, y, and z coordinate reference locations within the cells for the particle algorithm for the plan view and side view, respectively. Figure 47 shows the definition sketch for lateral velocities in a layer. The standard CE-QUAL-W2 designation for longitudinal (positive downstream or increasing segment number) and vertical velocities (positive downward) is followed in this algorithm. Initial x, y, and z are given for each particle released into a segment and layer. The user specifies x and z, but y is chosen as the middle of a layer, i.e., \(y = B/2\) where \(B\) is the layer width.

Plan View Coordinates

Plan view of x and y coordinates within a layer and segment
Figure 45. Plan view of x and y coordinates within a layer (K) and segment (I). DLX is the segment length and B is the segment width at the given layer K.

Within a given layer K and segment I, the coordinate system for the plan view is defined as follows:

  • X-coordinate: Ranges from 0 at the right (looking downstream) to DLX at the left, with DLX\(/2\) at the center.
  • Y-coordinate: Ranges from 0 at the left bank (looking upstream) to \(B\) at the right bank, with \(B/2\) at the center.

Side View Coordinates

Side view of z and y coordinates within a layer and segment
Figure 46. Side view of z and y coordinates within a layer (K) and segment (I). DZ is the layer thickness and B is the layer width.

Within a given layer K and segment I, the coordinate system for the side view is defined as follows:

  • Z-coordinate: Ranges from 0 at the top of the layer to DZ at the bottom, with DZ\(/2\) at the midpoint.
  • Y-coordinate: Same convention as the plan view (0 to \(B\)).

Lateral and Longitudinal Velocities

Definition sketch for lateral and longitudinal velocities
Figure 47. Definition sketch for lateral and longitudinal velocities within the cells. Withdrawals are always assumed to be on the LHS (left-hand side) of the segment.

The velocity sign conventions within each cell are:

  • Longitudinal velocity: Positive in the downstream direction (toward segment I+1), negative in the upstream direction.
  • Lateral velocity: Positive to the right (looking downstream), negative to the left.
  • Withdrawals: Always assumed to be on the left-hand side (LHS) of the segment.
  • Side branches: Can connect on either the left-hand side (LHS) or right-hand side (RHS) of a segment.

References

  • Chapman, R.S., Johnson, B.H., and Vemulakonda, S.R. (1994). User's Guide for the Sigma Stretched Version of CH3D-WES; a Three-Dimensional Numerical Hydrodynamic, Salinity, and Temperature Model. Technical Report HL-96-21, U.S. Army Engineer Waterways Experiment Station, Vicksburg, MS.
  • Dunsbergen, D.W., and Stalling, G.S. (1993). The Application of a Particle Model to Coastal and Estuarine Problems. Delft University of Technology, Dept. of Civil Engineering, Delft, The Netherlands.
  • Goodwin, R.A., Nestler, J.M., Anderson, J.J., Weber, L.J., and Loucks, D.P. (2001). A New Tool to Forecast Fish Movement and Passage. Hydro Review, 25(4), 74--82.
  • Hathhorn, W.E. (1997). A Second Look at the Method of Random Walks. Stochastic Hydrology and Hydraulics, 11(4), 319--329.