# Considerations in the Calculation of Vertical Velocity in Three-Dimensional Circulation Models

Richard A. Luettich Jr. Institute of Marine Sciences, University of North Carolina at Chapel Hill, Morehead City, North Carolina

Search for other papers by Richard A. Luettich Jr. in
Current site
PubMed
Close
,
Julia C. Muccino Department of Civil and Environmental Engineering, Arizona State University, Tempe, Arizona

Search for other papers by Julia C. Muccino in
Current site
PubMed
Close
, and
Michael G. G. Foreman Department of Fisheries and Oceans, Institute of Ocean Sciences, Sidney, British Columbia, Canada

Search for other papers by Michael G. G. Foreman in
Current site
PubMed
Close
Full access

## Abstract

The vertical velocity, w, in three-dimensional circulation models is typically computed from the three-dimensional continuity equation given the free-surface elevation and depth-varying horizontal velocity. This problem appears to be overdetermined, since the continuity equation is first order, yet w must satisfy boundary conditions at both the free surface and the bottom. At least three methods have been previously proposed to compute w: (i) a “traditional” method that solves the continuity equation using only the bottom boundary condition, (ii) a “vertical derivative” method that solves the vertical derivative of the continuity equation using both boundary conditions, and (iii) an “adjoint” method that solves the continuity equation and both boundary conditions in a least squares sense. The latter solution is equivalent to the traditional solution plus a correction that varies linearly over the depth.

It is shown here that the vertical derivative method is mathematically and physically inconsistent if discretized as previously proposed. However, if properly discretized it is equivalent to the adjoint method if the boundary conditions are weighted so that they are satisfied exactly. Furthermore, if the surface elevation and horizontal velocity fields satisfy the depth-integrated continuity equation locally, one of the boundary conditions is redundant. In this case, the traditional, adjoint, and properly discretized vertical derivative approaches yield the same results for w. If the elevation and horizontal velocity are not locally mass conserving, the mass error is transferred into w. This is important for models that do not guarantee local mass conservation, such as some finite element models.

Corresponding author address: Dr. Julia C. Muccino, Dept. of Civil and Environmental Engineering, P.O. Box 875306, Arizona State University, Tempe, AZ 85287-5306. Email: jcm@asu.edu

## Abstract

The vertical velocity, w, in three-dimensional circulation models is typically computed from the three-dimensional continuity equation given the free-surface elevation and depth-varying horizontal velocity. This problem appears to be overdetermined, since the continuity equation is first order, yet w must satisfy boundary conditions at both the free surface and the bottom. At least three methods have been previously proposed to compute w: (i) a “traditional” method that solves the continuity equation using only the bottom boundary condition, (ii) a “vertical derivative” method that solves the vertical derivative of the continuity equation using both boundary conditions, and (iii) an “adjoint” method that solves the continuity equation and both boundary conditions in a least squares sense. The latter solution is equivalent to the traditional solution plus a correction that varies linearly over the depth.

It is shown here that the vertical derivative method is mathematically and physically inconsistent if discretized as previously proposed. However, if properly discretized it is equivalent to the adjoint method if the boundary conditions are weighted so that they are satisfied exactly. Furthermore, if the surface elevation and horizontal velocity fields satisfy the depth-integrated continuity equation locally, one of the boundary conditions is redundant. In this case, the traditional, adjoint, and properly discretized vertical derivative approaches yield the same results for w. If the elevation and horizontal velocity are not locally mass conserving, the mass error is transferred into w. This is important for models that do not guarantee local mass conservation, such as some finite element models.

Corresponding author address: Dr. Julia C. Muccino, Dept. of Civil and Environmental Engineering, P.O. Box 875306, Arizona State University, Tempe, AZ 85287-5306. Email: jcm@asu.edu

## 1. Introduction

This paper investigates the merits of different approaches for calculating vertical velocity fields by solving the three-dimensional continuity equation, assuming the free-surface elevation and horizontal velocity fields are known.

In typical three-dimensional circulation models, including the Dartmouth circulation models FUNDY (Lynch and Werner 1987) and QUODDY (Lynch and Werner 1991; Lynch and Naimie 1993), the Princeton Ocean Model (POM; Blumberg and Mellor 1987), and the Regional Ocean Model System (ROMS) (Haidvogel and Beckmann 1999), the vertical velocity is determined from the three-dimensional continuity equation: where V(x, y, z, t) is the horizontal velocity with components [u(x, y, z, t), υ(x, y, z, t)], and w(x, y, z, t) is the vertical velocity. Here (x, y) are the horizontal coordinates, z is the vertical coordinate (positive upward, z = 0 at the mean water surface), t is time, and ∇ is the horizontal gradient operator. The kinematic boundary condition on vertical velocity at the bottom is where h(x, y) is the mean water depth. The analogous condition at the surface is where η(x, y, t) is the free-surface elevation. (Note, for future reference, that wb has been defined as the vertical velocity at the bottom as determined from the boundary condition, and ws has been defined as the vertical velocity at the surface as determined from the boundary condition.) Equations (1) and (2) are solved for w assuming that the horizontal velocity and surface elevations are known from a previous step in the model solution. The primary difficulty of solving these equations is that, together, they constitute an overdetermined system of equations for the most general case; that is, (1) is a first-order equation that must be solved subject to two boundary conditions. As will be shown, in numerical schemes that are locally mass conserving, one of the boundary conditions becomes redundant and, thus, the system is not overdetermined in that case.

We will consider here two approaches to solving the overdetermined system:

1. Solution of the vertical derivative of the continuity equation: where wvdc indicates vertical velocity computed using this approach (henceforth, VDC). This is a second-order differential equation, so both boundary conditions can be satisfied (Lynch and Naimie 1993).
2. Solution of the overdetermined system in a “best fit” sense by admitting residuals in the first-order continuity equation and both boundary conditions. An optimal solution is then sought that minimizes those residuals in a weighted least squares sense. Because this approach involves the adjoint of the continuity equation, we call it the “adjoint” approach (henceforth, ADJ). It will be described in more detail in section 3.

A third approach, called the “traditional” approach (TRAD) simply neglects one of the boundary conditions; this approach will be shown here to be a component of ADJ.

Muccino et al. (1997) found that VDC and ADJ provide different vertical velocity fields regardless of resolution in the vertical or horizontal and that ADJ better approximates the analytic solution in a simple test problem than does VDC. The objectives of this paper are to reconcile the numerical differences between VDC and ADJ and to make overall recommendations for the computation of vertical velocity in three-dimensional circulation models. Results are provided for tidally forced circulation in a quarter annular test case and a wind-, density-, and boundary-forced circulation off the southwest coast of Vancouver Island.

## 2. A summary of the adjoint approach

ADJ admits residuals in the continuity equation (1) and the boundary conditions (2) at each horizontal node: A cost functional, which is formed from the squares of these residuals, is defined: where Wf, Wb, and Ws are constant weights, and H(x, y, t) = h(x, y) + η(x, y, t) is the total water depth, included in the denominator of the first term to normalize the vertical integral and also to maintain dimensional consistency. The weights are defined as the inverses of the covariances of the residuals: where the covariances are defined as and 〈 〉 indicates expected value. Thus, the dimensions of Wf, Wb, and Ws are T2, T2/L2, and T2/L2, respectively. We will assume that Wb = Ws. Additionally, given that only the relative values of the weights are significant (not the absolute values of the weights themselves), we set Wb = Ws = 1 without further loss of generality. Thus, (5) can be written The adjoint solution, wadj, minimizes I and can be shown to be where wtrad is the “traditional solution” to the governing equation (1) and the bottom boundary condition (2a). [For mathematical details leading to (9) see Muccino et al. (1997); for a similar derivation using “representers,” see, e.g., Muccino and Bennett (2002), their appendix A] Thus, the adjoint solution is a sum of wtrad and a correction that is linear in z and proportional to the misfit between the traditional solution evaluated at the surface and the surface boundary condition. In the limit of Wf/H2 = 0 (i.e., no weight given to the three-dimensional continuity equation in I), the correction reduces to In this case, the correction is zero at the bottom and equal to the surface boundary condition misfit of the traditional solution at the surface. Consequently, the correction causes the adjoint solution to satisfy both boundary conditions exactly, although it may diminish the mass-conserving properties of the solution. In the limit of Wf/H2 → ∞ (i.e., no weight given to the boundary conditions in I), (9) reduces to In this case, the correction approaches a constant (half of the misfit between the traditional solution evaluated at the surface and the surface boundary condition) over the depth. This distributes any error evenly between the surface and bottom boundary conditions but has no impact on the mass-conserving property of the solution. Clearly, intermediate values of Wf/H2 generate corrections that fall between these limits. These observations are illustrated in Fig. 1, which shows the correction, normalized by the surface boundary condition misfit for various values of Wf/H2.

## 3. Numerical implementation

Two approaches to determining the vertical velocity have been described and will now be tested numerically. A vertical sequence of three nodes indicated by subscripts i − 1, i, and i + 1 will be used, as shown in Fig. 2. Superscripts − and + indicate quantities evaluated over the intervals {i − 1, i} and {i, i + 1}, respectively (e.g., Δz+ = zi+1zi). In each case, we assume that the vertical velocity is computed at the same nodes as the horizontal velocity.

Most three-dimensional circulation models use stretched or terrain-following coordinates in which the vertical dimension is transformed from −h < z < η to b < σ < a, where a and b are arbitrary constants (e.g., a = 1, b = 0): Derivatives in the terrain-following coordinate system are related to derivatives in the level coordinate system using the chain rule: where ∇ indicates horizontal derivatives on a level surface, and ∇σ indicates horizontal derivatives on a stretched surface.

### a. Discretization of VDC

Using centered finite difference, the lhs of (3) can be discretized: and the rhs of (3) can be discretized: Combining (15) and (16) yields where the + and − have been added to the two terms inside the curly brackets of (17) as a reminder that the first group in square brackets is evaluated over the interval {i, i + 1} and the second group is evaluated over the interval {i − 1, i}.
The lhs of (17) is tridiagonal and efficiently solved using a tridiagonal solver like the Thomas algorithm. The rhs of (17) requires the evaluation of the horizontal velocity derivatives on level coordinate surfaces. Using (14a) and (14b) to expand terms on the rhs of (17) gives, in terms of horizontal derivatives on stretched surfaces, Substituting (18a)–(18d) into (17), and recognizing that Δz = HΔσ/(ab), yields In practice, the horizontal derivatives [(∇σ · V)i]+ = [(∇σ · V)i], and therefore (19) reduces to where no ambiguity is introduced by dropping the + and − superscripts on the remaining horizontal velocity gradient terms.
An alternative expression for wvdc is obtained from (17) if it is assumed that the horizontal derivatives [(∇·V)i]+ = [(∇·V)i]. Using (18a) and (18d), and recognizing that Δz = HΔσ/(ab), (17) reduces to Previous investigators (Lynch and Naimie 1993; Muccino et al. 1997) have used an expression for wvdc that is equivalent to (21). However, results from Muccino et al. (1997) show that vertical velocities obtained using this discretization do not agree with analytic values. In section 5, we demonstrate that (20) yields vertical velocity estimates that are essentially identical to the analytic solution, while (21) yields estimates that are significantly inferior. As shown in appendix B, this owes to (20) being mathematically consistent with (3), while (21) is not.

Recall that the adjoint solution (9) consists of the sum of the traditional solution wtrad (the solution of the governing equation using the bottom boundary condition and neglecting the surface boundary condition) plus a correction. Thus, the numerical solution proceeds by first finding wtrad by discretizing (1): Using the chain rule, this becomes The calculation is initiated using the bottom boundary condition, and then marched up the water column; no matrix solver is required. Once wtrad is known, wc is easily computed algebraically and added to wtrad to yield the adjoint solution, wadj.

### c. Comparison of VDC and ADJ

Consider VDC first. The second-order equation should admit, in addition to the solution of the associated first-order equation, terms that are linear and constant in z. For example, suppose the vertical velocity that satisfies the first-order equation (1) is
wzgz
Consider a different vertical velocity field with addition terms, linear and constant in z:
wzgzc1zc2
where c1 and c2 are constants. The second derivatives of both (24a) and (24b) are Thus, the additional terms in (24b) are transparent in VDC. Furthermore, since the VDC solution is forced to satisfy both boundary conditions, these terms take on a form such that w(z) satisfies both boundary conditions.
Now consider ADJ with Wf/H2 = 0. In this case, (9) can be written in the form of (24b): and, therefore, Thus, VDC and ADJ with Wf/H2 = 0 should theoretically yield the same vertical velocity solution. Indeed, this equivalence is found numerically when (20) is used for the VDC solution, although it does not occur when (21) is used for the VDC solution. This is demonstrated below using two different test problems.

## 4. Quarter-annular harbor test case

We begin numerical tests in a quarter-annular harbor with quadratic bathymetry and periodic boundary forcing; the analytic vertical velocity for this problem is given in Muccino et al. (1997) and thus serves as a useful starting point for comparing the accuracy of these approaches. That solution is repeated in appendix A for convenience.

The geometry of the quarter-annular harbor is as in Muccino et al. (1997) and is shown in Fig. 3. The boundaries at r = r1 = 4 × 104 m, θ = 0, and θ = π/2 are no-flow boundaries. The open boundary, located at r = r2 = 1 × 105 m, is forced by an M2 tide with frequency ω = 1.405 × 10−4 s−1 and amplitude η0 = 0.10 m. The bathymetry of the harbor, as shown in Fig. 3b, is quadratic in r and constant in θ, such that h = h0r2, where h0 = 6.25 × 10−9 m−1.

The free-surface elevation and horizontal velocity are calculated using the analytic solution in Lynch and Officer (1985); these are calculated analytically, rather than numerically, so that any deviations of the numerical vertical velocity solution from the analytic vertical velocity solution are due entirely to the vertical velocity solution technique.

However, evaluation of horizontal velocity derivatives is considered to be a component of the vertical velocity calculation procedure. Thus (20), (21), and (23) are discretized in the horizontal using Galerkin finite elements with linear basis functions. The solution is evaluated using the grid shown in Fig. 3a. The grid has 825 nodes and 1536 elements in the horizontal and 32 evenly spaced sigma layers in the vertical. Results are presented here for the two representative nodes shown in the figure: node S is shallow (h = 11.29 m) and node D is deep (h = 56.41 m).

The results in Muccino et al. (1997) are for two sets of parameters and are shown at just one instant in the tidal cycle. Here, we use one set of parameters [consistent with Fig. 4 of Muccino et al. (1997): λ = 6.627 + 6.627i and K = 102.1; see appendix A for the definition of these parameters] and present the vertical velocity as amplitude and phase in Fig. 4. The parameter Wf/H2 is set to zero here; its impact on the ADJ solution is investigated next. In these figures, the analytic, ADJ, and VDC (20) amplitudes and phases are coincident, with the VDC (21) amplitude and phase differing from them. Results for different values of λ, K, and h0 and at other nodes are not shown but are qualitatively similar, indicating that the observations regarding Fig. 4 do not depend upon particular choices of parameters or bathymetry but rather are quite general. These figures clearly show that the VDC (21) solutions have considerable error compared to the other numerical solutions. Results using higher-resolution grids (not shown) gave no indication that the VDC (21) solutions were converging to the analytic solutions, suggesting that this numerical solution is inconsistent with the original differential equation (3). A Taylor series analysis of the VDC (21) equation (appendix B) confirms this inconsistency.

Now we will consider the impact of Wf/H2 on the ADJ solution. Recall the normalized correction profiles for various values of Wf/H2 in Fig. 1; to obtain the actual correction, these profiles are scaled by the surface boundary condition misfit of the traditional solution (9). In the quarter-annular harbor, the magnitude of this misfit is two or three orders of magnitude smaller than wtrad. Thus, the ADJ correction is insignificant, regardless of the value of Wf/H2, and ADJ essentially collapses to the traditional approach.

## 5. Application to the Pacific Coast of southwest Vancouver Island

The summer circulation off the western continental margin of Vancouver Island is characterized by a moderately intense upwelling of nutrients that supports high biological productivity and a lucrative commercial fishery. Circulation models (e.g., Foreman et al. 2000) have been developed to better understand both spatial and temporal variations in this upwelling, and these physical models are now being coupled to biological models in order to simulate specific components of the food chain. The accuracy of these models is highly dependent on both their adherence to mass conservation (so that nutrients are not falsely depleted or created) and the accuracy of the vertical velocities that move nutrients and biota up the water column. A circulation model for this region is thus a useful test for the vertical velocity calculations described here.

The model used here is the pseudo-nonlinear FUNDY5 (Lynch and Werner 1987) that incorporates root-mean-square tidal velocities in the bottom friction and vertical viscosity coefficients [see Foreman et al. (2000) for further details]. This model solves the three-dimensional, harmonic shallow-water equations in a sequential manner using linear triangular finite elements. In this test application we consider only the steady-state solution resulting from steady forcing. Combined wind- and buoyancy-driven flows are forced with average winds measured at a meteorological buoy near the middle of the model domain and a three-dimensional density field that was constructed through kriging of temperature and conductivity measurements taken in late July 1998. Boundary conditions for these calculations were computed through a combination of geostrophic radiation conditions and adjustments to the surface elevations so that the vertically integrated flows passed through the boundary without any reflection. Analogous to the inversion described in Foreman et al. (2000), further boundary condition adjustments were also made to introduce a California Undercurrent consistent with observations at two current meter moorings lying along the continental slope.

The bathymetry and the horizontal discretization of the region are shown in Fig. 5. The computational grid comprises 9767 nodes horizontally and 41 evenly spaced sigma surfaces vertically. Several nodes are highlighted in the figure for future reference; each of these nodes is representative of certain regions in the domain, as detailed in Table 1. Vertical velocity profiles for nodes A–E calculated with ADJ using a range of Wf/H2 values and VDC (21) are shown in Fig. 6. Since, the VDC (20) solution is coincident with the ADJ solution when Wf/H2 = 0, it is not distinct in Fig. 6. Several observations may be made regarding these figures:

1. In all cases, the VDC (21) solution is substantially different than the ADJ solutions for any value of Wf/H2.

2. In the deep ocean (node A), on the continental shelf (node B), and near the coast (node C), the vertical velocities are very small (order 1 × 10−5 m s−1).

3. Along the sides of Barkley Canyon (nodes D and E), the vertical velocities are one to two orders of magnitude greater than at nodes A, B, and C. The ability to predict the patterns of vertical velocity in regions such as Barkley Canyon is important in understanding biological productivity (Allen et al. 2001). Of particular concern here is the fact that VDC (21) and ADJ predict opposite vertical velocity trends. On the south side of Barkley Canyon, VDC (21) predicts upwelling while ADJ predicts downwelling, and on the north side of the same canyon, VDC (21) predicts downwelling while ADJ predicts upwelling. Further insight into the vertical velocity behavior may be gained by examining the horizontal velocity field in that region at z = −300 m [(z + h)/H ≈ 0.4 at nodes D and E] as illustrated in Fig. 7; this figure shows a California Undercurrent that generally follows the bathymetry toward the northwest. However, the flow cuts across the deepest parts of the canyon, suggesting downwelling on the south side of the canyon and upwelling on the north side of the canyon. This is the vertical velocity behavior predicted by ADJ for all values of Wf/H2; VDC (21) predicts the opposite.

4. Unlike results presented for the quarter-annular harbor, there is considerable dependence here of the ADJ solution on Wf/H2 for all nodes except near the coast, at node C. This dependence indicates that the surface boundary condition misfit of the traditional solution is relatively large.

5. As shown in Fig. 1, there is not much change in the vertical velocity solution obtained with values of Wf/H2 = 10 and Wf/H2 = 100, and thus we consider these values of Wf/H2 to be “large,” in the sense that larger values will not substantially change the solution. Likewise, there is little difference in the solution obtained with values of Wf/H2 = 0 and Wf/H2 = 0.1, and thus we consider these values of Wf/H2 to be “small.”

## 6. Effects of local mass conservation

The previous sections have shown that the traditional, adjoint, and vertical derivative (20) solutions for vertical velocity give essentially identical results when the surface boundary condition misfit of the traditional solution is equal to zero. This misfit is readily identified as owing to errors in the horizontal solution. Integrating (1) from the bottom upward and applying the bottom boundary condition (2a) yields Applying Liebnitz's rule to the integral in (28) yields In the interior of the water column, ∇z = 0 and the vertical velocity is simply the horizontal divergence of the horizontal velocity field integrated up from the bottom. At the free surface, (29) becomes Using the surface boundary condition (2b) to replace the final term in (30) and rearranging gives The rhs of (31) is the vertically integrated continuity equation. Consequently, (31) shows that the misfit between the traditional solution evaluated at the surface and the surface boundary condition is nonzero anywhere in the domain that the horizontal velocity field does not conserve mass in the vertically integrated sense. Since numerical models solve discrete rather than continuous governing equations, discretization of the vertically integrated continuity equation in (31) must match that used to evaluate (1) and (2). Thus, local mass conservation, on the same numerical stencil used to determine w, is required if the misfit on the lhs of (31) is to be zero. If mass is not locally conserved, error is introduced into the computed vertical velocity field as it is integrated up the water column.

The quarter-annular test problem presented in section 5 uses horizontal velocities obtained from the analytical solution, and thus these velocities satisfy the vertically integrated continuity equation exactly; the surface misfit is insignificant, and VDC (20) and ADJ with any value of the parameter Wf/H2 give essentially identical results throughout the domain.

While finite-difference models using Arikawa C grids conserve mass on each computational cell, Galerkin finite element models are guaranteed to conserve mass only globally (Lynch 1985; Lynch and Holboke 1997) and therefore allow for nonzero local residuals in the vertically integrated continuity equation. Figure 8 illustrates the surface misfits for the Vancouver Island test problem; by (31), this plot also represents local vertically integrated continuity residuals. Considerable surface misfits are observed; regions having large misfits (and thus poor vertically integrated mass conservation) typically correspond to areas of steep bathymetric gradients. Plots of surface misfits or vertically integrated mass error such as this are easy to construct and provide a useful diagnostic tool for identifying areas where local mass conservation is relatively poor and, therefore, where significant errors are likely to exist in the vertical velocity solution.

As outlined earlier, most oceanic circulation models follow a sequential solution procedure in which the vertical velocity solution occurs separately from and with minimal feed back to the free-surface elevation and horizontal velocity solutions. Since mass-conservation error in the free-surface elevation and horizontal velocity solutions is the cause of the vertical velocity solution error identified above, it seems inadvisable to sacrifice the boundary condition information in favor of stricter adherence to the three-dimensional continuity equation when determining the vertical velocity. Consequently, we suggest a small value of the ADJ weighting parameter Wf/H2 (Wf/H2 < 0.1) as preferable to a high value (Wf/H2 > 10).

## 7. Conclusions

The results presented in this paper help reconcile past uncertainty in the vertical velocity solution in three-dimensional circulation models. Specifically, we have found the following.

1. Most three-dimensional circulation models use a sequential solution procedure to solve for the free-surface elevation and velocity fields. That is, the vertically integrated continuity and the three-dimensional momentum equations are solved first for the free-surface elevation and the horizontal velocity fields; then the three-dimensional continuity equation is solved for the vertical velocity field. Solving the three-dimensional continuity equation (a first-order differential equation in the vertical coordinate) for the vertical velocity would appear to be problematic given the need to satisfy boundary conditions at both the bottom and at the free surface. However, the “traditional” (TRAD) vertical velocity solution, obtained by integrating the three-dimensional continuity equation upward using the bottom boundary condition, will match the surface boundary condition if the elevation and horizontal velocity fields exactly satisfy the vertically integrated continuity equation on the same numerical stencil used to determine w. In this case, the surface boundary condition is redundant. If the elevation and horizontal velocity fields are not locally mass conserving, the misfit between the TRAD solution and the surface boundary condition is equal to the local error in the vertically integrated continuity equation.

2. The VDC approach proposed by Lynch and Naimie (1993), in which the vertical velocity is computed from the vertical derivative of the three-dimensional continuity equation, is equivalent to an optimal, adjoint solution (ADJ) of the three-dimensional continuity equation (Muccino et al. 1997) in which the boundary conditions are preserved in lieu of stricter adherence to the continuity equation. VDC requires the solution of a tridiagonal matrix problem over the vertical while ADJ requires no matrix solution. Thus ADJ is more computationally efficient than VDC.

3. The discretization of VDC used in previous work (21) is mathematically inconsistent with the underlying differential equation (3) and, consequently, yields less accurate results than the other vertical velocity solutions we considered. This was demonstrated mathematically using Taylor series truncation error analysis and numerically in the quarter-annular harbor and Vancouver Island test cases. In the latter case, in some areas, the VDC (21) vertical velocity solutions appear to be inconsistent in both magnitude and direction with the horizontal flow field. It is important that, if VDC is used, the discretization presented in (20) be used rather than the discretization presented in (21).

4. The ADJ solution minimizes the cost functional (5), which penalizes misfits to the three-dimensional continuity equation and to the bottom and surface boundary conditions. The ADJ solution can be shown to be the sum of the TRAD solution and a linear correction. In the limit of satisfying both the bottom and free-surface boundary conditions (Wf/H2 = 0) the correction is zero at the bottom and equal to the misfit of the TRAD solution and the free-surface boundary condition at the surface. In the limit of maximizing adherence to the three-dimensional continuity equation (Wf/H2 > 10) the correction is a constant over the entire water column and equal to one-half of the misfit of the TRAD solution and the free-surface boundary condition.

5. If there is no misfit between the TRAD solution and the free-surface boundary condition, TRAD, ADJ, and VDC (20) give identical solutions for the vertical velocity.

6. Results from models that do not enforce strict local mass conservation, such as finite element models, will be susceptible to the vertical velocity errors described in conclusion 1. We recommend plotting maps of the error in the vertically integrated continuity equation as a diagnostic tool for determining areas in the domain that may be subject to significant vertical velocity errors. The first choice for improving the computed vertical velocity is to reduce errors in vertically integrated mass conservation, either by improved grid resolution or by smoothing the bathymetry (Oliveira et al. 2000). Mass conservation may also be improved in Generalized Wave Continuity Equation–based finite element models by increasing the primitive continuity equation weighting parameter (known as τ0 or G) (Kolar et al. 1992, 1994). If local mass conservation cannot be achieved, we suggest use of ADJ with the weighting coefficient set to preferentially favor the surface and bottom boundary conditions (Wf/H2 < 0.1).

## Acknowledgments

The authors thank Chris Naimie for independently confirming that the results presented here are consistent with FUNDY5, and the two anonymous reviewers for their comments. The authors also thank Rick Thomson, Susan Allen, Dave Mackas, and the crew of the CCGS John P. Tully for collecting the salinity, temperature, and velocity data that were used in this study. These observations were taken during a GLOBEC Canada cruise that was cosponsored by the Natural Sciences and Engineering Research Council of Canada and the Department of Fisheries and Oceans. R. Luettich would like to acknowledge funding for this work by the Office of Naval Research award N00014-97-C-6010 and the U. S. Army Corps of Engineers Research Development Center, Coastal Inlets Research Program, award DACW 42-00-C-006. J. Muccino would like to acknowledge partial funding for this work by the National Science Foundation under OCE-9520956 and OCE-0121315.

## REFERENCES

• Allen, S. E., Vindeirinho C. , Thomson R. E. , Foreman M. G. G. , and Mackas D. L. , 2001: Physical and biological processes over a submarine canyon during an upwelling event. Can. J. Fish. Aquat. Sci., 59 , 671684.

• Export Citation
• Blumberg, A. F., and Mellor G. L. , 1987: A description of a three-dimensional coastal ocean circulation model. Three-dimensional Coastal Ocean Models, C. N. K. Mooers, Ed., Coastal and Estuarine Sciences, Vol. 4, Amer. Geophys. Union, 1–16.

• Export Citation
• Foreman, M. G. G., Thomson R. E. , and Smith C. L. , 2000: Seasonal current simulations for the western continental margin of Vancouver Island. J. Geophys. Res., 105 (C8) 1966519698.

• Crossref
• Export Citation
• Haidvogel, D. B., and Beckmann A. , 1999: Three-dimensional ocean models. Numerical Ocean Circulation Modeling, Imperial College Press, 121–162.

• Export Citation
• Kolar, R. L., Gray W. G. , and Westerink J. J. , 1992: An analysis of the mass conserving properties of the generalized wave continuity equation. Computational Methods in Water Resources IX, Vol. 2, T. Russell et al., Eds., Computational Mechanics Publications, 537–544.

• Export Citation
• Kolar, R. L., Gray W. G. , Westerink J. J. , and Luettich R. A. Jr.,, 1994: Shallow water modeling in spherical coordinates: Equation formulation, numerical implementation and application. J. Hydraul. Res., 32 , 324.

• Crossref
• Export Citation
• Lynch, D. R., 1985: Mass balance in shallow water simulations. Commun. Appl. Numer. Methods, 1 , 153159.

• Lynch, D. R., and Officer C. B. , 1985: Analytic test cases for three-dimensional hydrodynamic models. Int. J. Numer. Methods Fluids, 5 , 529543.

• Crossref
• Export Citation
• Lynch, D. R., and Werner F. E. , 1987: Three-dimensional hydrodynamics on finite elements. Part II: Linearized harmonic model. Int. J. Numer. Methods Fluids, 7 , 871909.

• Crossref
• Export Citation
• Lynch, D. R., and Werner F. E. , 1991: Three-dimensional hydrodynamics on finite elements. Part I: Nonlinear time-stepping model. Int. J. Numer. Methods Fluids, 12 , 507533.

• Crossref
• Export Citation
• Lynch, D. R., and Naimie C. E. , 1993: The M2 tide and its residual on the outer banks of the Gulf of Maine. J. Phys. Oceanogr., 23 , 22222253.

• Crossref
• Export Citation
• Lynch, D. R., and Holboke M. J. , 1997: Normal flow boundary conditions in 3D circulation models. Int. J. Numer. Methods Fluids, 25 , 11851205.

• Crossref
• Export Citation
• Muccino, J. C., and Bennett A. F. , 2002: Generalized inversion of the Korteweg–de Vries equation. Dyn. Atmos. Oceans, 35 , 227263.

• Muccino, J. C., Gray W. G. , and Foreman M. G. G. , 1997: Calculation of vertical velocity in three-dimensional, shallow water equation, finite element models. Int. J. Numer. Methods Fluids, 25 , 779802.

• Crossref
• Export Citation
• Oliveira, A., Fortunato A. B. , and Baptista A. M. , 2000: Mass balance in Eulerian–Lagrangian transport simulations in estuaries. J. Hydraul. Eng., 126 , 605614.

• Crossref
• Export Citation

## APPENDIX A

### Analytic Solution for Quarter-Annular Harbor

Consider a quarter-annular harbor with no-flow boundaries at r = r1, θ = 0, and θ = π/2 and an open boundary at r = r2. The open boundary is subject to periodic forcing η = Re{η0eiωt}. The bathymetry of the harbor is quadratic in r and constant in θ, such that h = h0r2. The eddy viscosity, N, and bottom friction, k, vary such that are constant. The analytic solutions for surface elevation and horizontal velocity (Lynch and Officer 1985) are where and g is the gravitational constant and i = −1. The vertical velocity is (Muccino et al. 1997) where ## APPENDIX B

### Consistency of VDC Eqs. (20) and (21)

Taylor series expansion yields Substituting appropriate Taylor series expansions into the discretized lhs of both (20) and (21) yields Explicitly retaining only the leading order term and using (14b) yields Substituting appropriate Taylor series expansions into the discretized rhs of (20) and consolidating terms yields Explicitly retaining only the leading-order terms yields Using the chain rule on the second and third terms and regrouping yields Upon implementation of (14), (41) becomes Setting lhs(20) equal to rhs(20) yields which is consistent with the original differential equation (3). If Δσ+ = Δσ, this discretization is second order in the stretched vertical coordinate, while if Δσ+ ≠ Δσ, it is first order.
Similar Taylor series substitutions on the rhs of (21) yield Performing the same sequence of manipulations described above yields Setting lhs(21), (38), equal to rhs(21) yields which is clearly not consistent with the original differential equation (3).
Table 1.

Description of representative nodes in the southwestern Vancouver Island domain Save
• Allen, S. E., Vindeirinho C. , Thomson R. E. , Foreman M. G. G. , and Mackas D. L. , 2001: Physical and biological processes over a submarine canyon during an upwelling event. Can. J. Fish. Aquat. Sci., 59 , 671684.

• Export Citation
• Blumberg, A. F., and Mellor G. L. , 1987: A description of a three-dimensional coastal ocean circulation model. Three-dimensional Coastal Ocean Models, C. N. K. Mooers, Ed., Coastal and Estuarine Sciences, Vol. 4, Amer. Geophys. Union, 1–16.

• Export Citation
• Foreman, M. G. G., Thomson R. E. , and Smith C. L. , 2000: Seasonal current simulations for the western continental margin of Vancouver Island. J. Geophys. Res., 105 (C8) 1966519698.

• Crossref
• Export Citation
• Haidvogel, D. B., and Beckmann A. , 1999: Three-dimensional ocean models. Numerical Ocean Circulation Modeling, Imperial College Press, 121–162.

• Export Citation
• Kolar, R. L., Gray W. G. , and Westerink J. J. , 1992: An analysis of the mass conserving properties of the generalized wave continuity equation. Computational Methods in Water Resources IX, Vol. 2, T. Russell et al., Eds., Computational Mechanics Publications, 537–544.

• Export Citation
• Kolar, R. L., Gray W. G. , Westerink J. J. , and Luettich R. A. Jr.,, 1994: Shallow water modeling in spherical coordinates: Equation formulation, numerical implementation and application. J. Hydraul. Res., 32 , 324.

• Crossref
• Export Citation
• Lynch, D. R., 1985: Mass balance in shallow water simulations. Commun. Appl. Numer. Methods, 1 , 153159.

• Lynch, D. R., and Officer C. B. , 1985: Analytic test cases for three-dimensional hydrodynamic models. Int. J. Numer. Methods Fluids, 5 , 529543.

• Crossref
• Export Citation
• Lynch, D. R., and Werner F. E. , 1987: Three-dimensional hydrodynamics on finite elements. Part II: Linearized harmonic model. Int. J. Numer. Methods Fluids, 7 , 871909.

• Crossref
• Export Citation
• Lynch, D. R., and Werner F. E. , 1991: Three-dimensional hydrodynamics on finite elements. Part I: Nonlinear time-stepping model. Int. J. Numer. Methods Fluids, 12 , 507533.

• Crossref
• Export Citation
• Lynch, D. R., and Naimie C. E. , 1993: The M2 tide and its residual on the outer banks of the Gulf of Maine. J. Phys. Oceanogr., 23 , 22222253.

• Crossref
• Export Citation
• Lynch, D. R., and Holboke M. J. , 1997: Normal flow boundary conditions in 3D circulation models. Int. J. Numer. Methods Fluids, 25 , 11851205.

• Crossref
• Export Citation
• Muccino, J. C., and Bennett A. F. , 2002: Generalized inversion of the Korteweg–de Vries equation. Dyn. Atmos. Oceans, 35 , 227263.

• Muccino, J. C., Gray W. G. , and Foreman M. G. G. , 1997: Calculation of vertical velocity in three-dimensional, shallow water equation, finite element models. Int. J. Numer. Methods Fluids, 25 , 779802.

• Crossref
• Export Citation
• Oliveira, A., Fortunato A. B. , and Baptista A. M. , 2000: Mass balance in Eulerian–Lagrangian transport simulations in estuaries. J. Hydraul. Eng., 126 , 605614.

• Crossref