A framework for modelling linear surface waves on shear currents in slowly varying waters
Yan Li, Simen {\AA}. Ellingsen

TL;DR
This paper introduces the Direct Integration Method (DIM), a new numerical framework for accurately modeling linear surface waves on shear currents with slowly varying bathymetry and currents, outperforming existing methods in flexibility and precision.
Contribution
The paper presents the DIM, a novel, efficient numerical approach for evaluating surface wave dispersion relations and flow fields on arbitrary shear currents, with improved accuracy and applicability over prior methods.
Findings
DIM accurately evaluates dispersion relations for shear currents.
DIM handles complex velocity profiles, including direction changes and strong shear.
DIM effectively models wave-current interactions in oceanographic scenarios.
Abstract
We present a theoretical and numerical framework -- which we dub the Direct Integration Method (DIM) -- for simple, efficient and accurate evaluation of surface wave models allowing presence of a current of arbitrary depth dependence, and where bathymetry and ambient currents may vary slowly in horizontal directions. On horizontally constant water depth and shear current the DIM numerically evaluates the dispersion relation of linear surface waves to arbitrary accuracy, and we argue that for this purpose it is superior to two existing numerical procedures: the piecewise-linear approximation and a method due to \textit{Dong \& Kirby} [2012]. The DIM moreover yields the full linearized flow field at little extra cost. We implement the DIM numerically with iterations of standard numerical methods. The wide applicability of the DIM in an oceanographic setting in four aspects is shown.…
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8| Max R | ||||||||
| Time, values | init. | init. | ||||||
| N | M | init. | init. | profile 1 | profile 2 | profile 3 | profile 1 | |
| 1 | 0.181 | 0.241 | 0.0242 | 0.0318 | 0.0154 | 6.50E-03 | ||
| 2 | 0.302 | 0.361 | 7.71E-04 | 4.51E-04 | 9.49E-05 | 3.04E-05 | ||
| 7 | 3 | 0.426 | 0.486 | 4.06E-05 | 1.44E-05 | 1.36E-06 | 1.69E-06 | |
| 1 | 0.520 | 0.599 | 0.0245 | 0.0318 | 0.0153 | 1.26E-03 | ||
| 2 | 0.893 | 0.929 | 8.58E-04 | 4.64E-04 | 1.07E-04 | 7.35E-05 | ||
| 16 | 3 | 1.251 | 1.308 | 5.13E-05 | 1.51E-05 | 1.62E-06 | 4.56E-06 | |
| 1 | 1.178 | 1.232 | 0.0244 | 0.0317 | 0.0153 | 1.00E-03 | ||
| 2 | 1.871 | 1.951 | 8.65E-04 | 4.68E-04 | 1.08E-04 | 5.94E-05 | ||
| DIM | 32 | 3 | 2.576 | 2.554 | 5.23E-05 | 1.52E-05 | 1.65E-06 | 3.75E-06 |
| 7 | 0.075 | 0.045 | 0.036 | 0.024 | ||||
| 16 | 0.141 | 0.023 | 0.033 | 0.011 | ||||
| KC1st | 32 | — | 0.282 | 0.022 | 0.031 | 0.010 | ——— | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A framework for modelling linear surface waves on shear currents
in slowly varying waters
Abstract
We present a theoretical and numerical framework – which we dub the Direct Integration Method (DIM) – for simple, efficient and accurate evaluation of surface wave models allowing presence of a current of arbitrary depth dependence, and where bathymetry and ambient currents may vary slowly in horizontal directions. On horizontally constant water depth and shear current the DIM numerically evaluates the dispersion relation of linear surface waves to arbitrary accuracy, and we argue that for this purpose it is superior to two existing numerical procedures: the piecewise-linear approximation and a method due to Dong & Kirby [2012]. The DIM moreover yields the full linearized flow field at little extra cost. We implement the DIM numerically with iterations of standard numerical methods. The wide applicability of the DIM in an oceanographic setting in four aspects is shown. Firstly, we show how the DIM allows practical implementation of the wave action conservation equation recently derived by Quinn et al. [2017]. Secondly, we demonstrate how the DIM handles with ease cases where existing methods struggle, i.e. velocity profiles changing direction with vertical coordinate , and strongly sheared profiles. Thirdly, we use the DIM to calculate and analyse the full linear flow field beneath a 2D ring wave upon a near–surface wind–driven exponential shear current, revealing striking qualitative differences compared to no shear. Finally we demonstrate that the DIM can be a real competitor to analytical dispersion relation approximations such as that of Kirby & Chen [1989] even for wave/ocean modelling.
\draftfalse\journalname
JGR-Oceans
Department of Energy and Process Engineering, Norwegian University of Science and Technology, Trondheim, Norway Department of Engineering Science, University of Oxford, Oxford, United Kingdom
\correspondingauthor
Y. Li [email protected]
{keypoints}
A framework for analysing waves atop currents of arbitrary vertical shear, allowing slow horizontal depth and current variation;
Direct integration method for simple and fast evaluation of dispersion and wave action;
Favourable to existing numerical and analytical approaches for a wide range of practical applications.
1 Introduction
Surface waves in ocean and coastal waters are often affected by currents. Particularly when the current varies with depth — i.e., it has vertical shear — the interactions between surface waves and current can be rich and highly non–trivial even in the linear wave regime. While this has been recognized for a long time (e.g. Peregrine, 1976), it is recently becoming increasingly clear that the effect of shear in the water column must be accounted for in order that environmental waves may be fully understood, and adequately modeled, as emphasized in a recent review of coastal wave modelling (Cavaleri et al., 2018). Several oceanographic models such as Delft-3D (Elias et al., 2012) and ROMS, used for example in the coupled COAWST model (Kumar et al., 2012), now include as an option of the wave–dispersion correction due to a horizontal ambient current which varies with vertical coordinate . Necessary theoretical tools and insights to this end have been developed in recent studies (Banihashemi et al., 2017; Quinn et al., 2017), where it was concluded that wrongly accounting for shear in such wave models, or neglecting it, can lead to serious errors. Failure to include Langmuir turbulence, a direct consequence of wave–shear current interaction (Leibovich, 1983), is a prime suspect for the systematic misprediction in global climate models of the ocean surface temperature and boundary layer depth, particularly in the southern oceans (Belcher et al., 2012). Wave effects moreover greatly influence storm surge inundation as shown by Wu et al. (2018), where strongly sheared currents are present.
Knowledge of the effect of shear on wave dispersion is also necessary in order to remotely measure near–surface currents using X-band of HF/VHF radar (Stewart & Joy, 1974; Teague, 1986; Shrira et al., 2001; Lund et al., 2015; Campana et al., 2017), used inter alia to shed light on exchange of heat, mass and momentum between ocean and atmosphere, and transportation of nutrients and pollutants.
In this article we present a new framework for numerical calculation of wave dispersion on arbitrary shear currents, which compliments the analytical framework developed by Ellingsen & Li (2017), and applied to the case of ship waves by Li et al. (2017). We refer to it as the Direct Integration Method (DIM). The DIM is simple to implement, combining only standard operations for solving linear inhomogeneous differential equations, numerical integration and root–finding, for which any of a number of methods may be used. The implementation tested herein with an iterative scheme which uses very basic procedures: finite differences, Simpson’s method, and Newton’s method, respectively (an example implementation in MATLAB is included in supplementary materials). In the interest of fair comparison the iterative numerical scheme is deliberately simple, and we do not claim it is the universally optimal option for implementation of the DIM.
The DIM has a number of attractive features. It can handle ambient currents (: vertical coordinate) which change direction with depth with the same ease as unidirectional currents. It facilitates estimation of the relative error of the calculated value of at little additional cost (: wave vector in the horizontal plane; : phase velocity). And it may provide the full sub–surface flow field within linear wave theory, without any increase in complexity. The general solutions of the full flow field are the fundamental components of analysing 3D rotational waves of finite amplitude, a question for future studies.
A particular feature of the DIM is its ability to include the effects of slowly varying water depth. A wave action conservation equation for this situation was recently derived by Quinn et al. (2017), but those authors deemed that its application in ocean and climate models was impractical due to computational cost. We believe that with the DIM this could change radically. We present both an analytical framework and an extension of DIM numerics to evaluate the equation of Quinn et al. (2017).
We argue that the DIM is superior to the two existing numerical methods for calculating with arbitrary accuracy over constant water depth that we are aware of, namely the piecewise–linear method (e.g. Zhang, 2005), and a method due to Dong & Kirby (2012). It is considerably simpler to implement than the former and is faster and easier to parallelize than the latter, which also cannot provide the flow field in a straightforward manner. Neither method has been developed to handle changing depth.
The structure of the paper is as follows. In Sec. 2 we define the system under consideration. Sec 3 reviews existing methods for calculating or estimating on a current of arbitrary depth dependence, including numerical procedures of arbitrary accuracy, and widely used analytical approximations. The Direct Integration Method is presented in Sec. 4. We apply it with an iterative scheme to a range of different cases in Sec. 5. In Sec. 6 we compare the DIM to existing numerical and analytical approaches in terms of accuracy and cost, before concluding remarks are provided in Sec. 7. The numerical performance of the iterative scheme is tested in an appendix.
2 Theory formalism
We consider a plane wave running on a horizontal background flow where is the position vector in the horizontal plane and is the vertical axis such that the undisturbed surface is located at , over varying water depth .
A geometry of the system is depicted in Fig. 1. Assume incompressible and inviscid flow, and that the medium above the surface can be neglected. We assume perturbations of the background flow due to the wave motion is small, and work eventually within linear wave theory. A wave in the horizontal plane with wave vector generates perturbations that are understood to be proportional to , where is the wave number, is the phase velocity of the wave along direction , and is the time.
Before proceeding to the governing equations and boundary conditions, we first introduce two key assumptions;
- I
Fast variation of wave phase; the wave phase is of rapid spatial and time variation – – when compared to the slow variation of the shear current, water depth , and wave amplitude in the horizontal plane and time. 2. II
We assume wave motions to be affected by a background current, but not vice versa.
Assumption II allows us to first look at purely non-wave motions (wherein parameters are defined with the superscript ‘(0)’) and then together with wave motions.
2.1 The steady background flow
When there is no wave motion and the time dependence is negligible , the Euler and continuity equations yield after eliminating the horizontal velocity perturbation components and ,
[TABLE]
where a prime denotes the derivative with respect to , is the vertical velocity and is the dynamic pressure, is the grativational acceleration, and the operator . Eqs. (1) assume no variation of density , precluding stratification and internal waves.
Thelinearized boundary conditions are
[TABLE]
where is the surface elevation and is the density of fluid.
The solutions of (1) and (2) work as boundary conditions when additional wave motions are considered.
2.2 Small wave motion in the presence of a shear current
We now proceed to consider wave motion together with a background current. A generic field variable is then expressed , the latter of which is the variable due to wave motion.
The flow of a wave-shear current system is governed by the Euler and continuity equations. Assumption I allows necessary linearisation as follows. After the linearisation with respect to surface steepness ( , is a characteristic wave amplitude) the flow may be expressed as the boundary value problem
[TABLE]
where is the amplitude of the vertical velocity due to wave motion and is the surface tension coefficient. Eq. (3a) is called the Rayleigh equation (or the inviscid Orr–Sommerfeld equation). We are thus faced with an eigenvalue problem with two unknowns, and .
3 Existing approaches for constant
Existing approaches for calculating or estimating the value of when is constant with respect to may be divided into two categories: numerical procedures with arbitrary accuracy, and analytical approximations with theoretical error. In the following we briefly review these wherein constant water depth is assumed and is hence obtained.
3.1 Arbitrary accuracy
Numerical schemes to determine in the past have included, in particular, two very different strategies.
The first, and oldest approach is to divide the water column into artificial layers, and presume to vary as a linear function of within each layer. The linearised Euler equations now permit explicit solutions with undetermined coefficients within each layer. When does not vary in direction there are free coefficients which are determined as zeroes of the system determinant. We refer to this method as the piecewise–linear approximation (PLA). The idea goes back well over a century (Rayleigh, 1892), and has recently been analysed in further detail (Zhang, 2005; Smeltzer & Ellingsen, 2017). The method is tried and trusted, physically intuitive, and reasonably efficient when moderate accuracy is required (4-5 layers are typically sufficient for error ), but has certain drawbacks. The foremost of these is that eigenvalues for are found of which two must be chosen which describe surface wave propagation, the rest being vorticity waves generated by the artificial discontinuities of and should be discarded. This considerably complicates implementation. Secondly, directly generalizing to allow changing direction would double the number of undetermined coefficients, much increasing the cost. A more sophisticated procedure could likely avoid this, but we are not aware of any implementation of the PLA for turning to date.
An alternative procedure was used by Dong & Kirby (2012). They introduce an additional function which transforms the Rayleigh equation into a nonlinear ordinary differential equation for which contains both and , with boundary conditions at the bottom and free surface, respectively. The eigenvalue is thence found using a shooting method. The fact that the system is nonlinear is a disadvantage which increases numerical cost and makes parallelization more cumbersome. We argue in Section 6 that our new method has several advantages over that of Dong & Kirby (2012), perhaps the greatest of which that our new method solves a linear second order differential equation .
3.2 Analytical approximations
An altogether different approach is to find an explicit analytical expression dependent on and which approximates . The most used of these was first presented by Skop (1987) generalizing Stewart & Joy (1974), and was developed to second order accuracy by Kirby & Chen (1989). This relation (generalized to the 3D case of a turning ) we call the 3DKC, and to leading order may be written (see Ellingsen & Li (2017))
[TABLE]
Here, and for later reference, we define
[TABLE]
and . We recently proposed an alternative approximation
[TABLE]
which has certain advantages Ellingsen & Li (2017). Both approximations come with a second order accurate extension providing excellent accuracy at far greater cost.
For typical shear profiles occurring in oceanographic settings, both leading order approximations estimate to within for all , often significantly better. For many practical cases this is quite adequate. However, for strongly sheared flows occurring in other systems, such as fast discharge of a surface jet into quiescent water or fast flow in a thin film, both approximations may become inaccurate and approximation (4) could even become unphysical (Ellingsen & Li, 2017). In a setting where computing cost is important, (4) and (5) would in practice be used “blindly” without any estimation of error, since this would in essence require a far more expensive second order calculation. We show in later sections that our method has an explicit error estimate as a built-in feature. It is moreover more robust than analytical approximations and with some extra iterations is able to tackle even profiles with extremely large shear and curvature where (4) and (5) are poor. For moderately sheared profiles our method is comparable to (4) and (5) also in terms of cost, as discussed in Sec. 6.3.
4 Direct integration method
We now consider the more general situation where water depth is allowed to vary, different from the existing approaches reviewed in Sec. 3. We define
[TABLE]
Here and are amplitudes of the horizontal velocities, is amplitude of the dynamic pressure, and is the surface elevation, all in space. The boundary value problem (3) may then be written following Ellingsen & Li (2017) and Li & Ellingsen (2018) ,
[TABLE]
where
[TABLE]
denotes the contribution from a shear current on wave motion. For the case where for some critical depth , see discussion in section 4.3. The implicit dispersion relation (7b) is found by multiplying (3a) by , integrating with respect to , and using the boundary condition (3b) ; refer to Li & Ellingsen (2018) for details.
For later references, we define
[TABLE]
As is discussed in Ellingsen & Li (2017) for uniform water depth, when we further assume slow current compared to fast wave motion – , (4) is readily obtained from (7); when the depth vertical shear is assumed to be small compared to wave motion, we obtain (5).
The philosophy of the direct integration method (DIM) is to treat Eqs. (7) as two coupled equations with and as the unknowns and then to obtain the solutions of Eqs. (7) with numerical approaches. Indeed, from a numerical point of view the DIM is simple to implement, combining only standard operations for solving linear inhomogeneous differential equations, numerical integration and root–finding, for which any of a number of methods may be used. We introduce an iterative scheme in Sec. 5.1 based on Newton’s method; it is deliberately basic to ensure comparison with other methods be as fair as possible, and we do not claim it is the optimal choice.
4.1 Error estimates
Assume that is an approximation to the exact solution to (7b). A Taylor expansion of (7b) about reads (dependence on is understood)
[TABLE]
where and
[TABLE]
This yields an estimate of the relative error ,
[TABLE]
Since and need to be calculated anyway in order to solve (7a), the error estimate (16) can be calculated with very little additional cost.
4.2 An explicit approximation of the DIM
Based on (16) , we obtain
[TABLE]
which gives a good approximation of if we insert either (4) or (5) as the , as was noted. This is a form of the solution with a single iteration . In principle, this returns the next order approximation of to and the accurate of the input . Compared to the second order corrections to (4) (Kirby & Chen, 1989) and (5) (Ellingsen & Li, 2017), (17) offers much faster computation
4.3 Critical layers
The integrand of the integral in (9) has poles whenever a critical layer exists, i.e. there exists a depth so that . This situation requires careful treatment of the integration path. In this circumstance one should in principle consider how the waves were created, treating the system physically as an initial value problem (Peregrine, 1976). One way to achieve this is to assume that a plane wave of frequency has been created by a disturbance which has grown in time from zero at , in a manner proportional to letting (). Mathematically, this moves the integration path slightly off the real axis, making the integral in (9) well defined. Using the resulting integral, the real part , pertaining to wave propagation, is kept in the limit . (The imaginary part has a bearing on the stability of the critical layer; see e.g. discussion in Velthuizen & van Wijngaarden (1969); Shrira (1993); Ellingsen & Li (2017)).
4.4 Full flow field solution
A useful trait of the DIM is that in addition to the dispersion relation it can calculate the full flow field with little extra cost. Given and , remaining scalar flow fields are given by
[TABLE]
In order to obtain dimensional amplitudes we require the value of . It can most often be readily calculated from the initial conditions of a particular problem. For a plane wave with known amplitude , , following from the kinematic free-surface boundary condition.
4.5 Group velocity from a kinematic approach
Based on a kinematic approach, the group velocity can be readily obtained using the full derivatives on the relation with respect to and , i.e.
[TABLE]
in which the operator . The above relation further yields the group velocity defined
[TABLE]
in which can be calculated via a numerical method and is the group velocity in the absence of a background flow. (20) is applied to verify the group velocity described by (24).
4.6 Conservation equation of wave action
We now proceed to the conservation equation of wave action ( henceforth called the wave action equation, WAE ) first developed by Voronovich (1976) based on a dynamic approach and further developed by Quinn et al. (2017), and show how the DIM can be used for a practical implementation of this equation. The equation is in general applicable for any flow where there is large separation of lengthscales between the wave motion and vertical current variation on the one hand, and the horizontal variation of the current and bathymetry on the other, an approach well known from geometrical optics. This is a very typical situation in ocean and coastal modelling; see Quinn et al. (2017).
The WAE can be derived by retaining terms to to obtain
[TABLE]
in which
[TABLE]
which are based on the notations defined herein and surface tension is considered and for uniform water depth. in (23) is the solution of the boundary value problem described by (3a). Refer to Quinn et al. (2017) for details and discussions.
The DIM can be readily employed in (23). As was noted, in which is the solution of (7) and is the amplitude of slow spatial and time variation, if any. We rewrite (22) and obtain
[TABLE]
wherein
[TABLE]
where , , , and are dimensionless parameters, and are of the same unit as . It is straightforward to find when the current is irrotational, i.e. .
5 Numerical scheme and example applications
In this section we explore the numerical potentials of the DIM and demonstrate and test the DIM with an iterative algorithm for a range of different practical applications. Discussions regarding criterion of convergence and an estimate rate of convergence of the iterative algorithm are presented in Appendix A.
5.1 Iterative algorithm
Indeed, Eq. (7b) is but a nonlinear scalar equation for , as can be seen by noting that for some value of Eq. (7a) determines completely. Naturally a solution for , and consequently , is iterative. The essence of the iterative algorithm is to consider as a function of an approximation of defined implicitly by Eq. (7a) and evaluate with an explicit scheme, as described below in step 1.
We discretize the axis into points . The influence of on the surface wave falls off for increasing as ; For short waves compared to , therefore, contributions from the water column will be negligible for below some threshold which depends on the desired accuracy. We choose the grid points equidistantly so that and we found and to be suitable. The “bottom” condition used is now . This discretization works well for all cases we have tested yet we do not claim that it is the universally optimal choice.
Each iteration consists of three basic steps.
is calculated from Eq. (7a) using the value of from the previous iteration. For the first iteration an initial guess for is required. 2. 2.
An improved estimate of is calculated from Eq. (7b) using from step 1. 3. 3.
The error of the calculated is then estimated as described in section 4.1, and iteration is terminated once a tolerance is reached.
The number of iterations needed depends on the accuracy of the initial guess, yet in cases of moderate shear we shall see that a single iteration with as a naive initial guess, is accurate to within a few percent, sufficient for many purposes. A more accurate but more expensive first guess could be made using e.g. (4) or (5).
A number of standard methods exist for performing the first two steps of each iteration, the choice of which determines the computational cost and accuracy of the scheme of the DIM. In our implementation we have solved Eq. (7a) [step 1] using a finite difference scheme with a 2nd order central difference approximation for , resulting in a tridiagonal linear problem. Updating the value of using (7b) [step 2] we do with a single iteration of Newton’s method, i.e.
[TABLE]
in which denotes the iteration.
All integrals with respect to we calculate using Simpson’s method, all on the same grid of -values.
5.1.1 Computational complexity
The computational complexity of the above three steps is primarily from Step 1 and is of . If we implement ‘blind’ predictions as (4) or (5) do, then one or two iterations (i.e. or in which is the total number of iterations) is sufficient to achieve the same accuracy as (4) and (5), and an error estimate and a good approximation of in all evaluation points along the z-axis are also obtained at little or no extra cost, see Sec. 5.3.
Furthermore, if we use either (4) or (5) as an initial input of the DIM, The accuracy of the DIM from a single iteration is much increased. In most of the tested cases in the present paper, we use as a naive guess to make comparisons of methods as fair as possible. Also calculating group velocity using Eq. (24) incurs no additional complexity, and the overall complexity remains .
Quinn et al. (2017) comment that ”the WAE … is difficult to apply to operational wave models as it is too computationally intensive: it is required to solve the Rayleigh equation for every node, frequency, direction, etc. at every time step” for which reason they derive an approximate (explicit) form of (23) that suffers from a loss of accuracy. However, the DIM can change this picture radically; good accuracy may be achieved with the same complexity as numerical evaluation of the explicit equation of Quinn et al. (2017). As we will demonstrate, is enough for accuracy better than a few percent in typical cases and an example implementation of the DIM for slowly varying water depth is provided in Sec. 5.5.
5.2 Turning profiles
In Ellingsen & Li (2017) approximations (4) and (5) were compared for a spiraling velocity field, but we were not in a position to compare the predictions to the accurate result since this was beyond the capabilities of the PLA, the best numerical method available at the time. With the DIM this task is easily accomplished.
As in Ellingsen & Li (2017) we consider the profile,
[TABLE]
Choosing corresponding to a wavelength , we consider waves propagating in different directions .
As conjectured in Ellingsen & Li (2017) the 3DKC estimate (4) performs relatively poorly for the turning profiles compared to unidirectional examples, particularly in the area in this example. As shown in Fig. 2a-c, where , this holds true even for very weakly turning profiles with and , and worsens with stronger changes of direction. The 3DKC tends to perform well in the vicinity of , yet the approximation (5) appears to be more consistent. The error estimates for the two analytical approximations as functions of and are shown in Fig. 2d,e. For both cases performance is least good for long wavelengths. While one should not draw too strong conclusions based on a single example, Fig. 2 seems to indicate that approximation (5) is preferable for turning profiles. A more careful analysis is beyond the scope of the present Article.
5.3 Strongly sheared profiles
In this section we demonstrate how the DIM can readily handle very strongly sheared profiles, of which we consider two example flows
[TABLE]
For both examples the first–order analytical approximation (4) performs poorly, and even yields unphysical results for some wavelengths. Also approximation (5) is poor for profile (28b) (see further details and discussions in Ellingsen & Li (2017)).
The profiles (28) are too strongly sheared to represent oceanographic flows, but could realistically occur in other flow settings. Eq (28a) could represent, e.g., for a flow of surface velocity m/s of cm depth, for example over a local shallow in a river, or a film flow of cm depth with surface velocity cm/s, which is readily produced. Eq (28b) might represent a surface jet due to discharge of a fast flow into a still water reservoir, e.g. a jet speed of m/s over m depth. An oceanographic situation where shear can be strong is a relatively short period after the onset of wind over the surface Caulliez et al. (1998).
Relative errors for calculations of phase velocity for waves propagating along the direction of the flow as a function of wave number are shown in Fig. 3. It is clear to see that DIM converges quickly, producing accurate results in these cases with only iterations even with a poor initial guess . For the velocity profile of Fig. 3a, approximation (5) is reasonably successful (within 20 % of the true value) and using this as initial guess the accuracy is better than with only one iteration of the DIM.
In a sense, a single iteration of DIM can be interpreted as sibling of the analytical approximations, in that it also constitutes a single integration of a functional of along the axis. Just like (4) and (5) this may be inaccurate for extreme profiles. Unlike these, however, the DIM can simply be iterated whereas the second order extensions of (4) and (5) are far more expensive.
One should note that when the initial guess is very poor, as for example when using in the examples (28), the error estimate (16) is far from its real value. Nevertheless it will produce an estimate that is higher than any realistic error tolerance, ensuring that more iterations are performed, with correspondingly more accurate error estimates.
5.4 Velocity field
Using Eqs. (18), the full flow field is readily obtained by the DIM at little extra cost. As demonstration we calculate the wave–induced velocity field due to an initial surface perturbation in 2 dimensions, on a shear flow with the profile
[TABLE]
representative of a surface drift layer. To our knowledge such a Cauchy–Poisson problem has not been considered before for the velocity field in the presence of a velocity field of non–uniform vorticity.
Fig.4 depicts the velocity field and surface elevation in 2D at two instant times and generated by an initial impulsive pressure . Results in the presence and absence of the sub-surface velocity profile (29) are shown in the right and left columns of Fig.4, respectively. The velocities and pressures plotted are the perturbation fields, i.e., after subtracting their values when no waves are present.
As one would expect in light of previous studies (e.g. Ellingsen (2014); Li et al. (2017)) the surface shape is changed visibly, yet moderately by the shear flow. The velocity and pressure fields, on the other hand, are strikingly different in qualitative appearence. Without shear current the velocity magnitude beneath the surface elevation has slow spatial variation with only the direction changing rapidly. Not so in the presence of the sheared current, in which case there are several highly distinct regions directly beneath the largest surface excitations with far lower absolute velocities. In the present example these regions are near–vertical in shape. The rotating wave motion undergoes a depth–dependent phase shift due to the depth–varying velocity field.
While only a single example, these observations seem to indicate that the velocity field beneath waves can be strongly affected by e.g. a wind–driven shear layer, as (29) might represent. This is a potentially important observation, since the near–surface fluid mechanics of the oceans is crucial for processes in oceanography and climate modelling, in particular transportation of nutrients and algae, and mixing of warmer and colder waters. The effect of shear–modified wave motion on sub-surface turbulence intensity, Reynolds stresses and thermal mixing are all virtually unknown and make for an important as well as intrinsically interesting area of future study. We have demonstrated how the DIM can offer a fast and computationally cheap first insight.
5.5 Wave amplitudes over slowly varying water depth
As noted in section 4.6, the DIM calculates wave rays and amplitudes with computational complexity of order . We now consider as an example, steady wave propagation over a sloping seabed in the presence of a constant wind–induced shear current, as depicted in Fig. 5. Due to waves being steady, the time–dependent term in the wave action equation is zero, hence
[TABLE]
which can be solved numerically using ray theory when information at a point is specified. For more details in the absence of a shear current, one may refer to Mei et al. (2017).
As depicted in Fig. 5, we consider a linearly varying seabed that has a negligible effect on the wind-induced current, implying and where is the characteristic horizontal length; A surface drift is expressed ; is defined where and and . Hence, (30) yields
[TABLE]
where and . For cases with the absence of a shear current, we use the subscript ‘nvs’ to note. Eq. (31) is solved using the DIM wherein the frequency of an incident wave remains constant over the varying water depth.
Fig. 6 compares the amplitude change of waves at different frequencies with and without the shear when and , respectively. It is seen the amplitude change of a wave oscillates at a specific frequency can be over(under) estimated by up to ( ) or to ( ) when a subsurface shear is neglected. This is in keeping with the conclusions drawn by Zippel & Thomson (2017). The DIM offers a viable route to this end.
6 Comparison with other approaches
In this section we will compare the DIM with the iterative scheme to existing approaches for calculating dispersion relation , both numerical methods with arbitrary accuracy, and analytical approximations with theoretical error. These two categories of existing approaches were reviewed in Sec. 3.1 and 3.2, respectively.
6.1 The piecewise–linear approximation
We compare first with the piecewise–linear approximation (PLA, c.f. Sec. 3.1). Having implemented both the PLA (albeit only for unidirectional flow; see Smeltzer & Ellingsen (2017) for full details) and the DIM, we are in a position to directly compare the two methods. While the choice of method will always remain a point of preference of the user, we find it hard to imagine a practical application for which the DIM is not preferable to the PLA.
The one point in favor of the PLA compared to the DIM is its physical transparency. It is very easy to follow all physical quantities explicitly throughout calculations. The rate of convergence of the PLA is typically similar to that of the iterative approach of the DIM employed here, (see Zhang (2005); Smeltzer & Ellingsen (2017) and Fig. 7). The DIM reaches a higher convergence rate if a numerical approach of higher accuracy (than the second-order central difference approximation for ) is used. Both the DIM and PLA can approximate the full flow field with little extra effort.
However, from a numerical point of view the DIM has a number of advantages. Firstly its implementation is significantly simpler. The PLA initially produces solution to the dispersion relation, of which are artifacts of the abrupt change of vorticity at layer interfaces. There are reliable ways to deal with this problem (see Smeltzer & Ellingsen, 2017), but it remains a hurdle. Secondly, and for the same reason, computation is less costly, since detecting the correct eigenvalues of can be the most costly part of the PLA calculation. Thirdly, the DIM can easily handle cases where changes direction with depth, as demonstrated in Sec. 5.2. Short of a more sophisticated PLA implementation than has been developed to date to our knowledge, this would double the number of free coefficients to be determined in the PLA. Fourthly, the DIM comes with a direct estimate of the error with very little extra cost; error estimation using PLA is not straightforward (the obvious solution is by comparing results from different values of ; however we cannot preclude that a more intelligent way can be found).
6.2 Dong & Kirby’s method
Also compared to the method of Dong & Kirby (2012) the DIM definite advantages. Foremost of the advantages of the DIM over Dong & Kirby’s (DK) procedure is that the ordinary differential equation to be solved, (7a), is linear, allowing a fast and cheap solution e.g. with a finite difference scheme. Dong & Kirby’s method (DK), on the other hand solves a nonlinear ordinary differential equation of the function , determining the eigenvalue with a shooting method. For the DIM the linear solution is easily parallelizeable, able to perform all operations for an array of values at once. Should the full flow field be required, the DIM produces this automatically whereas DK produces only , requiring further integration in order to obtain the velocity via . The explicit error estimate of DIM could be a further advantage, although convergence of DK’s shooting scheme can also be used for error estimation. Also compared to the DK procedure it is our opinion that the DIM is superior for all purposes we can think of.
6.3 Analytical approximations
We finally compare the DIM to analytical approximations with theoretical error presented in Sec. 3.2. Obviously such a comparison will be context dependent, since the philosophies behind numerical and analytical approximations are fundamentally different: A numerical implementation of the DIM has arbitrary accuracy while approximations (4) and (5) have finite theoretical error no matter the accuracy with which the associated integrals are evaluated. With this in mind, we have tried to make comparison as fair as possible. We will presume a context which involves calculating for a large range of spanning all directions and several orders of magnitude in terms of wavelengths ranging from very deep to very shallow waves, and that at least a rough notion of the calculation error is desired.
There are obvious advantages to using DIM rather than analytical approximations such as (4) and (5), beyond the mere fact that arbitrary accuracy can be achieved. Firstly, as demonstrated in Fig. 3, DIM can easily handle difficult cases where analytical approximations perform poorly, without greatly increasing computational cost compared to weakly sheared flows. Secondly, the DIM yields the full velocity and pressure fields, whereas (4) and (5) provide only. Perhaps most pertinently, DIM facilitates low-cost error estimation, whereas in a context where computational cost is of importance, first–order analytical approximations must in practice be used “blindly”, without any control of the error made, since an error estimate will essentially involve going to far more costly second–order approximations (refer to Kirby & Chen (1989); Ellingsen & Li (2017)).
We choose a context where neither of these advantages play a role, and where analytical approximations (4) and (5) are routinely in use today, namely for quick estimation of dispersion relations as part of a bigger oceanographic or coastal flow simulation, c.f. e.g. Elias et al. (2012); Kumar et al. (2012). For this purpose the analytical approximations (4) and (5) are very suitable: shear profiles are typically not strongly sheared so that analytical approximations are typically well within accuracy requirements. The analytical approximations are also cheap to calculate compared to numerical schemes reviewed in Sec. 3.1. For fairness, however, we will also employ the iterative DIM algorithm “blindly”, spending no time on error estimation and tolerance comparison. For the iterative algorithm this amounts to a cost reduction of only a few percent for the small number of iterations we consider. Integrals in analytical approximations as well as the iterative algorithm are calculated with the same 2nd order accurate method (Simpson’s method), with the number of grid points as specified. For some , the same discretization is appropriate for both schemes. For analytical approximations, the smallest chosen is just large enough so that calculation of the integral is not the main source of error (naturally this can only be checked a posteriori with an expensive error calculation, hence a somewhat higher should be used in practice). In order not to favour any particular range of wavelengths we calculate values for a grid of values of covering values from to isotropically. The maximum value of from these values is presented. Since calculational times are essentially identical for (4) and (5), and their theoretical errors are similar in magnitude for moderately sheared flows, we include results only for the 3DKC (4) from Skop (1987); Kirby & Chen (1989).
Calculation times are given in Table 1 for the wind-driven profiles shown in Fig. 8a. was calculated using MATLAB for a grid of values of on a standard desktop computer (8 processors: Intel i7-4770 3.4 MHz, 32 GB RAM). Naturally computational cost depends on the choice of methods for calculation of integrals and solution of the boundary value problem (7a) as well as for the analytical approximations. Calculations were parallelized, calculating the full matrix of values simultaneously.
A number of interesting observations can be made. Firstly, discretizing the axis with only points and running a single iteration is sufficient to achieve accuracy at the level of the theoretical error of the 3DKC even though the initial guess is naive and does not make use of any knowledge of . Using instead as initial guess the error is reduced by a factor or more, although calculation is then necessarily more expensive.
Although results show that with , 3DKC gives errors , likely to be adequate in many cases, the error in the integral evaluation is still a significant and uncontrolled contributor to the maximum error, thus without an error estimate a higher value of should be used in practice. Using , the calculation time is only slightly lower than the DIM calculation which has essentially the same accuracy. In contrast, increasing for the iterative DIM algorithm
does not significantly improve accuracy, which depends almost exclusively on the number of iterations in the examples shown. Based on this we opine that it is fair to say that the iterative DIM algorithm can realistically compete with analytical approximations even in cases where the latter is particularly suitable and in routine use, and given the advantage of easy control of errors, can be a very viable alternative for implementation in oceanographic models such as detailed in Elias et al. (2012); Kumar et al. (2012).
Including an error estimate for the iterative DIM algorithm only has numerical cost in the last iteration because both integrals calculated to estimate in Eq. (16) are made use of in the next iteration if the latter is performed. Calculating the estimated then incurs approximately half the cost of the next, unevaluated, iteration. Checking the relative error for , for example, increases calculation time to about , an increase of less than . Relative increase in cost is obviously smaller for higher .
Should higher accuracy be required, results in Table 1 also show that additional iterations are significantly cheaper than the first.
7 Conclusions
We have developed a direct integration method (DIM) for linear surface waves travelling at arbitrary angles atop a horizontal background current allowing slowly varying barthymetry; both the magnitude and direction of the current may vary arbitrarily as a function of depth. In particular, when depth is constant the DIM allows efficient evaluation of the dispersion relation over arbitrary shear. We also derive the full approximate flow field solution of the wave-shear current-sloping seabed system and revisit the conservation equation of wave action for which the DIM offers cost-efficient means of numerical evaluation.
We implement the DIM in an iterative procedure using standard constituent methods due to Quinn et al. (2017). The iterative DIM algorithm comes with a built–in error estimate for comparison with a tolerance level and can make the DIM somewhat explicit by limiting the total number of iterations with a reasonable initial guess.
We argue that the DIM is superior to existing calculation methods with arbitrary accuracy with constant depth , namely the piecewise–linear approximation (PLA) in which the water column is divided into artificial layers with linear within each (Zhang, 2005; Smeltzer & Ellingsen, 2017), and a shooting method due to Dong & Kirby (2012) (DK).Compared to the PLA, the DIM is at least as fast at comparable accuracy, considerably easier to implement, and can easily handle turning profiles. The DK solves a non-linear differential equation and is considerably slower, and arguably numerically more complicated, than the DIM.
Compared to analytical approximations such as those of Skop (1987)/Kirby & Chen (1989) (KC) or Ellingsen & Li (2017) (EL), the DIM has some obvious advantages beyond the mere fact that arbitrary accuracy can be achieved; it can easily handle difficult, strongly sheared flow situations where the above analytical approximations perform poorly; it yields the full flow field with little extra effort; and it provides an estimate of the relative error of the intrinsic phase velocity at only slightly increased cost, whereas the analytical approximations must either be used without any control of errors, or a far more expensive 2nd order estimate must be calculated.
The respective importance and relevance of the above advantages will naturally depend on the context in which is required. We argue, however, that the DIM can even compete with analytical approximations like KC and EL in contexts where the latter are particularly well suited and in routine use, e.g. as part of oceanographic models where the KC approximation is currently in use. Making as fair a comparison of these fundamentally different methods as we have been able to, we show that the iterative DIM algorithm predicts for a typical wind–driven shear profile with the same accuracy as the KC (better than ) when the axis is discretized with only points, performing just a single iteration, and using a naive and inaccurate initial value of . The cost involved is of comparable magnitude to that of the analytical approximations whose integrals are evaluated with the same method as those required for the iterative DIM algorithm . This holds true even when including estimation of error during DIM implementation (KC is in practice used “blindly” with no accuracy check). Based on these cost considerations and the mentioned advantages of error control and additional cost–free flow field information it is our opinion that the DIM can compete with analytical approximations even in such applications.
We have applied the DIM to several examples, some of which have not been considered before to our knowledge. We make use of the DIM’s ability to easily handle turning velocity profiles to compare the KC and EL approximations in this case, something which was not done in Ellingsen & Li (2017) due to lack of a suitable computation method. We secondly calculate the velocity and pressure fields beneath a wave created by a short, localized pressure pulse upon a background flow representing a near–surface shear layer, and compare them to the case without shear. Although the surface deformation is only moderately different in the two cases, the sub-surface flow field (when background flow is subtracted) is strikingly different.
We have demonstrated that the DIM can be used for efficient evaluation of the wave-action conservation equation in the presence of shear currents and slowly varying bathymetry (shear-WAC) derived by Quinn et al (2017). These authors themselves commented that this was not practical due to high cost; we argue otherwise. The shear-WAC is re-written in a suitable form, and applied for demonstration to waves above a depth changing linearly between two constant levels, with an exponentially decaying surface shear current. Thus the DIM seems to be a viable way in which the shear-WAC can be applied in oceanographic wave models.
Acknowledgements.
YL is funded by the Faculty of Engineering, Norwegian University of Science and Technology. SÅE acknowledges funding from the Norwegian Research Council (FRINATEK), project number 249740. We have benefited greatly from discussions with Prof Anne Kvernø, and we thank our ‘user panel’ Peter Maxwell and Benjamin K. Smeltzer, for extensive testing and suggesting improvements. No new data was generated for the research reported herein, and all equations necessary to reproduce the results are included.
Appendix A Numerical performance
The DIM, concisely formulated in the coupled equations (7a) and (7b), is, from a numerical point of view, a scalar system with as unknown. For some value of , Eq. (7a) implicitly defines the function . In an iterative scheme at iteration , will depend on and , but depends only on the most recent value of , not on .
The convergence of our iterative implementation of the DIM as a whole thus shares the well known criteria for Newton’s method, in particular that has continuous derivative with respect to at the root. It is obvious from Eqs. (8) and (9) that this is so when there are no critical layers, i.e., when throughout the range of . Also critical layers in the interior of the range pose no problems, since it is well known that is continuous across critical layers. A critical layer cannot occur at the surface. The remaining point of interest is the case where a critical layer occurs at . In this case appears to have a double pole at the lower endpoint of the integral. However, the numerator of Eq. (15) has a factor , and the boundary condition ensures that exists and is continuous also in this case. Convergence is thus assured providing the initial guess for is sufficiently close to the root. We have yet to come across a case where is not an adequate choice for convergence.
We have chosen a simple central difference approximation for from Eq. (7a), which is known to converge at least as . The same rate of convergence is true of Newton’s method (c.f., e.g. Chap.3 & 8 in Isaacson (2012)), so an overall convergence rate of at least is expected, and indeed found in the case considered below.
As with many numerical integration schemes, convergence issues can arise if the grid is too course, i.e., is too small. In this case the numerical evaluation of , and hence and , will have error. Cases with high values of will require a finer grid, although for typical oceanographic profiles such as in Section 6.3, convergence is fast already at . A general criterion for the minimum value of to ensure convergence remains an open question.
To show how the iterative algorithm numerically converges, we make use of a class of special class of shear currents that satisfy constant, analysed by Peregrine (1976) (Section IV.B.2). Assuming the corresponding streamwise wave number can be found exactly. We will do the opposite: given a profile and streamwise wave number for which is the exact solution, we use the DIM to estimate with increasing accuracy by increasing the discretization and the number of iterations, .
We let where
[TABLE]
Assuming (stationay waves in chosen frame of reference), the Rayleigh equation (3a) has the exact solution with . Given parameters and , the streamwise wave number component solves the implicit dispersion relation . We choose , which fixes implicitly. Calculated numerical values for will converge towards zero. We perform calculations for various propagation directions , i.e. different values of and hence .
Convergence is tested for a single iteration and increasing grid refinement in Fig. 7a and for increasing iterations in Fig. 7b. We consider propagation in direction as a representative example and we used a naive initial guess for Fig. 7b. The figure shows that with our implementation the convergence with respect to is better than , and approximately for the level of accuracy required in many practical applications. Even for accuracy becomes limited by , not already after - iterations.
In Fig. 7c we show calculation time on a standard desktop computer (8 processors: Intel i7-4770 3.4 MHz, 32 GB RAM) for and iterations and increasing discretisation . In order to test a range of different wavelengths, each calculation runs through 50 values of (the value of will be the same for all) by choosing equidistant values of in the range of counterstreamwise directions, where stationary wave solutions are possible. In all cases we find that calculation time scales approximately as .
A.1 Wind-induced profiles
In this section our demonstration is for three typical examples of wind–induced surface flows, taken from Swan & James (2000), shown in Fig. 8a. For five different calculation procedures we study the relative error made in the calculation, , where is the fully converged, “exact” value. The five procedures are labelled as follows. K&C: Approximation (4). E&L: Approximation (5). :, calculations using DIM with and iterations, respectively, using as the initial guess. : one iteration of DIM, using approximation (4) as initial guess. (For a careful analysis of the performance of Eqs. (4) and (5) and their extensions, see Ellingsen & Li (2017).) In all methods the DIM as well as numerical integration is performed on appropriate grids of -values with .
Figure 8 shows how a single iteration of DIM with the no–shear velocity as initial guess, gives results that are as good as the analytical approximations (4) and (5). In the discussions in section 6.3 we show that calculation times are also typically similar, although depending on context and exact implementation. In all cases a second iteration of the DIM brings the calculated result to within (much better in most of the cases) of the true value, more than adequate for many practical purposes. The same high accuracy or better is obtained with a single iteration of the DIM if the analytical approximation (4) is used as initial guess. A second iteration of DIM is much faster than including the second order accurate analytical expressions using Kirby & Chen (1989) or (Ellingsen & Li, 2017), which give similarly high accuracy.
\listofchanges
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Banihashemi et al. (2017) Banihashemi, S., Kirby, J. T., and Dong, Z. (2012), Approximation of Wave Action Flux Velocity in Strongly Sheared Mean Flows, Ocean Modelling 116, 33–47.
- 2Belcher et al. (2012) Belcher, S.E., et al., A global perspective on Langmuir turbulence in the ocean surface boundary layer, Geophys. Res. Lett. 39, L 18605.
- 3Campana et al. (2017) Campana, J., Terrill, E. J., and de Paolo, T. (2017), A New Inversion Method to Obtain Upper–Ocean Current–Depth Profiles Using X-Band Observations of Deep–Water Waves. J. Atmospheric and Oceanic Tech. , 34, 957–970.
- 4Caulliez et al. (1998) Caulliez, G., Ricci, N., and Dupont, R. (1998), The generation of the first visible wind waves, Phys. Fluids 10, 757–759.
- 5Cavaleri et al. (2018) Cavaleri, L., et al. (2018), Wave modelling in costal and inner seas, Prog. Ocean. 167, 164-233.
- 6Dong & Kirby (2012) Dong, Z., and Kirby, J.T. (2012), Theoretical and numerical study of wave-current interaction in strongly-sheared flows, Coastal Eng. Proc. 33 , waves.2.
- 7Elias et al. (2012) Elias, E.P.L., Gelfenbaum, G., and Van der Westhuysen, A.J. (2012), Validation of a coupled wave-flow model in a high-energy setting: the mouth of the Columbia river. J. Geophys. Res. 117, C 09011.
- 8Ellingsen (2014) Ellingsen, S. Å. (2014), Initial surface disturbance on a shear current: The Cauchy–Poisson problem with a twist. Phys. Fluids 26, 082104.
