<!DOCTYPE html> 5 Two Dimensional Waves on a Rotating Sheet of Water‣ Notes on the Finite Element Method
Notes on the Finite Element Method

Chapter 5 Two Dimensional Waves on a Rotating Sheet of Water

5.1 Tides on the f Plane.

5.1.1 Basin, Equations and BC

Consider a thin circular basin of water, of dimensions comparable to an ocean basin, on the f-plane (figure LABEL:Fi:model). The basin consists of a deep region (rrS) surrounded by a shallow continental shelf where the depth is hS. Any point in the basin is located by the radius from the center r, the azimuthal position θ relative to some fixed direction (say, eastward), and by the depth z. The position of the free surface relative to z=0 is denoted by η(r,θ,t). Horizontal dimensions are made non-dimensional by dividing by the basin radius; vertical dimensions are made non-dimensional by dividing by the maximum depth of the basin: for instance the sea level is η=η*/H*, where H* represents the dimensional maximum depth. Non-dimensional time is the product of time by the forcing frequency. As envisioned here, the basin radius is 4106m, the maximum depth is 4103m, the shelf depth is 102m. The shelf width can range between 4105m and 4104m. The case when there is no shelf is comprehensively treated by Lamb, 1932.

Sketch of the model basin. A shelf of depth

Figure 5.1: Sketch of the model basin. A shelf of depth hs stands between the deeper central portion of the basin and the rim

The problem is governed by the linearized, hydrostatic, shallow water equations. In terms of the non-dimensional variables these are:

𝒕t+fκ𝒌×𝒕=-hκ2(η-η¯) (5.1)
ηt+𝒕=0 (5.2)

where 𝒌 is the unit vector pointing along the vertical (out of the page). 𝒕=(tx,tv) is the horizontal transport (the product of velocity times depth) vector (𝒕=𝒕*/(σ*R*H*)), where σ* is the dimensional frequency of the forcing. Solutions depend on two non-dimensional parameters: the product of the basin length scale by the shallow water wavenumber in the deep region, κ=σ*R*/g*H*, and the ratio of the basin radius to the Rossby radius of deformation, f=f*R*/g*H*. In the following examples the ratio f/κ will be taken to be either 1/2, 1 or 2 corresponding to superinertial, inertial of subinertial forcing. The radius of basins of interest here, is comparable to the shallow water wavelength, so κ𝒪(1).

The boundary conditions specify that the transport normal to the boundary (𝒕𝒏) must be zero at the boundary (r=1). If the bottom depth varies, as in the case of a step continental shelf, matching conditions at the slope break (r=rS) require that both the sea level and the transport normal to the shelf break be the same in each region.

Equations 5.1 and 5.2 can be combined into a single equation for η as follows: after some manipulation equation 5.1 can be writen as:

2𝒕t2+fκ𝒌×𝒕t-fκ𝒌×𝒕t+f2κ2𝒕=-hκ2((η-η¯)t)+fhκ3𝒌×(η-η¯) (5.3)

or:

2𝒕t2+f2κ2𝒕=-hκ2((η-η¯)t)+fhκ3𝒌×(η-η¯) (5.4)

Next write equation 5.2 as:

t(2ηt2+f2κ2η)+(2𝒕t2+f2κ2𝒕)=0 (5.5)

Substituting equation 5.4 gives:

t(2ηt2+f2κ2η)+(-hκ2((η-η¯)t)+fhκ3𝒌×(η-η¯))=0 (5.6)

The time dependence is dealt with by confining attention to solutions that are periodic in time at the forcing frequency. Capitalized symbols refer to the time-independent amplitude and phase of the corresponding variable. New dependent variables are defined as:

η(𝒙,t)=Re[N(𝒙)e-it]𝒕=Re[𝑻(𝒙)e-it] (5.7)

where the new variables N and T are complex, and 𝒙 is the two dimensional coordinate vector (in whatever coordinate system is convenient given the geometry of the problem). In terms of these new variables, the mass conservation equation 5.2 is:

-iN+𝑻=0 (5.8)

The horizontal momentum equation 5.1 yields the following expression for the transport:

(κ2-f2)𝑻=-h(iN-fκ𝒌×N) (5.9)

where the sea level anomaly from the equilibrium tide, N=N-N¯, has been introduced for convenience. This is used to eliminate transport from equation 5.8:

[h(N+ifκ𝒌×N)]+(κ2-f2)N=0;𝑻𝒏=0. (5.10)

For the boundary conditions, the transport (equation 5.9 normal to the boundary has to be zero at a closed boundary. This is a boundary condition on the derivative of the sea level: a Neumann condition. At an open boundary, the sea level has to be specified.

In cartesian coordinates the governing equation 5.10 becomes :

x(hNx)+y(hNy)+ifκ[x(hNy)-y(hNx)]+(κ2-f2)N=(f2-κ2)N¯ (5.11)

with

iNx-fκNy=0atx=±1;iNy+fκNx=0aty~=±1 (5.12)

In this form, the terms on the right only involve N, and the right hand side is the forcing term: this is a non-homogeneous PDE for N.

In polar coordinates:

r(rhNr)+θ(hrNθ)+ifκ(hrNθ-hθNr)+(κ2-f2)rN=(f2-κ2)rN¯ (5.13)

The normal transport vanishes along the boundary of the basin:

iNr-fκrNθ=0atr=1. (5.14)

Axisymmetric circular basins.

In polar coordinates equation 5.10 is

θ(hrNθ)+r(rhNr) + ifκ(hrNθ-hθNr) (5.15)
+(κ2-f2)rN = (f2-κ2)rN¯

The normal transport vanishes along the boundary of the basin:

iNr-fκrNθ=0atr=1. (5.16)
Lamb’s Solution

Lamb (1932) has shown that if h=1 and if the equilibrium tide can be expressed as N¯=r|m|eimθ, the equation governing N is:

r(rNr)+1r2Nθ2+(κ2-f2)rN=0,Nr+ifκrNθ=N¯r+ifκrN¯θ=|m|-mfκatr=1. (5.17)

Separate variables as N(r,θ)=R(r)Θ(θ). The azimuthal component is eimθ. Then the radial component R is the solution to:

ddr(rdRdr)+(κ2-f2-m2r2)rR=0,dRdr-mfκRr=|m|-mfκatr=1. (5.18)

This is Bessel’s equation (if κf), or the modified Bessel’s equation otherwise. The amplitude of the response is determined by the boundary condition. Bessel function derivatives are:

dJm(αr)dr=-αJm+1(αr)+mrJ|m|(αr);dI|m|(αr)dr=αJm+1(αr)+mrJ|m|(αr) (5.19)

So long as κ>f, the solution for N is:

N(r,θ)=(|m|-fm/k)J|m|(αr)(|m|-fm/k)Jm(α)-αJ|m|+1(α)eimθ,whereα=κ2-f2 (5.20)

If κ=f

N(r,θ)={N¯(r,θ)=r|m|eimθif m<0m(m+1)(m(m+1)-f2)r|m|eimθif m>0 (5.21)

For κ<f The solution is

N(r,θ)=(|m|-fm/k)I|m|(αr)(|m|-fm/k)Im(α)+αIm+1(α)eimθ,whereα=f2-α2 (5.22)

The solutions are illustrated in figure 5.2.

Amplitude and phase of the sea level

Figure 5.2: Amplitude and phase of the sea level N in a basin forced by N¯=r|m|eimθ.

These solutions can be extended to axisymmetric circular domains where a shelf-like rim separated the central deep region from the boundary, as illustrated in figure 5.1. It is also possible, by using Green’s functions, to find the response of an axisymmetric basin to forcing that propagates across the domain as a wave travelling from east to west, consistent with the equilibrium tide at mid-latitudes. Four examples of these solutions are illustrated in figure LABEL:Fi:EWAnalytic.

Amplitude and phase of the sea level

Figure 5.3: Amplitude and phase of the sea level N in a basin forced by N¯=eikTx, a wave travelling from east to west. These basins include a continental shelf of with 0.2 and depth hs=0.025 (see figure 5.1).

5.2 Finite Element Method

5.2.1 Weak Form

The weak form of equation 5.10 is obtained in the usual way:

(κ2-f2)ϕm𝑻𝑑a-i(κ2-f2)ϕmN𝑑a=i(κ2-f2)ϕmN¯𝑑a; (5.23)

division by κ2-f2 is avoided so as to not exclude the possibility that f=±κ. The transport is as given in equation 5.9. Integrate the first term of equation 5.23 by parts:

ϕm𝑻𝑑a=(ϕm𝑻)𝑑a-𝑻ϕmda (5.24)

The divergence theorem is:

A𝑼𝑑a=S𝑼.𝒏ds (5.25)

where 𝑼 is any arbitrary vector, S represents the boundary of the domain A and 𝒏 is the unit normal to S. Equation 5.23 becomes:

(f2-κ2)ϕm𝑻da-i(κ2-f2)ϕmN𝑑a+i(κ2-f2)ϕmN¯𝑑a=-ih(f2-κ2)S𝑻.𝒏ds (5.26)

The boundary condition states that the transport normal to a boundary is zero, so the integral on the right of equation 5.26 is equal to zero. quation 5.23 becomes:

(f2-κ2)ϕm𝑻da-i(κ2-f2)ϕmN𝑑a=-i(f2-κ2)ϕmN¯𝑑a (5.27)

The tranport is related to N by equation 5.9: the transport can be eliminated from equation 5.27. In cartesian coordinates equation 5.27 is:

[h(ϕmxNx+ϕmyNy)+ifhκ(ϕmxNy-ϕmyNx)]𝑑a+(κ2-f2)ϕmN𝑑a=(f2-κ2)ϕmN¯𝑑a (5.28)

Look for the solution as an expansion in terms of the trial functions:

N(x,y)=n=1NNnϕn(x,y) (5.29)

where Nn represent the value of the solution at each node. Withis substitution, the weak form becomes:

n=1N[h(ϕmxϕnx+ϕmyϕny)+ifhk(ϕmxϕny-ϕmyϕnx)]𝑑a+(κ2-f2)n=1Nϕmϕn𝑑a=(f2-κ2)ϕmN¯𝑑a (5.30)

Equation 5.30 is a system of N equations in the N unknowns Nn. Using matrix notation it can be written as

[(κ2-f2)-]𝑵=𝑭 (5.31)

where 𝑵 represents the solution column vector, and is the usual mass matrix with elements

Mmn=Aϕmϕn𝑑a (5.32)
Lmn=A[h(ϕmxϕnx+ϕmyϕny)+ifhκ(ϕmxϕny-ϕmyϕnx)]𝑑a (5.33)

is a special version of the stiffness matrix, and the load vector elements are

Fm=-κ2Ae-ikxϕm𝑑a (5.34)

5.2.2 Constant, or slowly varying depth

If the depth h=1 is constant the special stiffness matrix can be written

Lmn=Kmn+ifkOmn (5.35)

where Kmn represents the elements of the ususal stiffness matrix and

Om,n=A(ϕmxϕny-ϕmyϕnx)𝑑a (5.36)

5.2.3 Discretizing the Domain: the Grid.

A typical circular grid suitable for cubic TF is illustrated in figure 5.4.

Typical grid for solving PDEs in a circular region. The
mesh is shown as black lines. Cubic TF require ten nodes in each
element. The nodes are shown as green circles. (Grid XTHFC3067)

Figure 5.4: Typical grid for solving PDEs in a circular region. The mesh is shown as black lines. Cubic TF require ten nodes in each element. The nodes are shown as green circles. (Grid XTHFC3067)

5.2.4 Assembly

Constant Depth

Element Matrices

For cubic polynomials, there are ten TF on each element. Each TF is unity at a single node, and zero at the nine other positions. The TF are as defined in the second equality in equation LABEL:eq:C4S1:defTF. The coefficients for the polynomials are obtained following the method described in section LABEL:sec:C4S1:LTF.

Given 𝒞, the matrix of coefficients (see section LABEL:sec:C4S1:LTF), The element load vector 𝑭𝒆 is determined as follows:

Fem=k=110Ck,mAxp(k)yq(k)𝑑x𝑑y (5.37)

where for cubic polynomials, the exponents p and q are listed in table 5.1.

k 1 2 3 4 5 6 7 8 9 10
p(k) 0 1 0 2 1 0 3 2 1 0
q(k) 0 0 1 0 1 2 0 1 2 3
Table 5.1: Powers p,q as a function of k for Cubic TF.

First determine the column vector 𝑰F whose elements are

IkF=Axp(k)yq(k)𝑑x𝑑y=cq+1[ap+1-(-b)p+1]p!q!(p+q+2)! (5.38)

where a, b and c are defined in figure LABEL:Fi:C4S12triangles. Then

𝑭𝒆=𝒞T𝑰F (5.39)

The mass element matrix is evaluated in similar fashion, starting from

Mem,n=k=110Ck,ml=110Cl,nAxp(k)+p(l)yq(k)+q(l)𝑑x𝑑y (5.40)

Begin by forming the 10×10 matrix M with elements

Ik,lM=Axp(k)+p(l)yq(k)+q(l)𝑑x𝑑y=cq(k)+q(l)+1[ap(k)+p(l)+1-(-b)p(k)+p(l)+1]p(k)+p(l)!q(k)+q(l)!(p(k)+p(l)+q(k)+q(l)+2)! (5.41)

To vectorize, in Octave form two 10×10 matrices, P and Q as follows:

  P=repmat(p,kcubic,1)+repmat(p’,1,kcubic);
  Q=repmat(q,kcubic,1)+repmat(q’,1,kcubic);
  %% get Me
  IsupM=c.^(Q+1).*(a.^(P+1)-(-b).^(P+1)).*factorial(P).*factorial(Q)./factorial(P+Q+2);
  Me=transpose(C)*IsupM*C;

The element mass matrix is then:

e=𝒞TM𝒞 (5.42)

Similar expressions are fount for the two element stiffness matrices 𝒦e and 𝒪e.

Variable Depth

If the depth varies two courses of action are possible: the first consists in moving the depth term, h outside of the integral in, for instance, the first term in equation 5.30. The second approach is to determine the required matrix, say the stiffness using quadrature as follows:

for kq=1:length(wt); %quadrature loop
  xv=x1*(1-xq(kq)-yq(kq))+x2*xq(kq)+x3*yq(kq);
  yv=y1*(1-xq(kq)-yq(kq))+y2*xq(kq)+y3*yq(kq);
  rv=sqrt(xv^2+yv^2);
  hv=1;
  if rv>1-Ls
    hv=hs;
  endif
  phi_x=(p.*xq(kq).^(p-1).*yq(kq).^q)*C;
  phi_y=(q.*xq(kq).^p.*yq(kq).^(q-1))*C;
  phi_X=[phi_x’,phi_y’]*G;
  for m=1:10
    for n=1:10
      Ke(m,n)=Ke(m,n)+wt(kq)*hv*(phi_X(m,1)*phi_X(n,1)+phi_X(m,2)*phi_X(n,2));
      Oe(m,n)=Oe(m,n)+wt(kq)*hv*(phi_X(m,1)*phi_X(n,2)-phi_X(m,2)*phi_X(n,1));
    endfor
  endfor
endfor
Ke=Ke*Area;
Oe=Oe*Area;

5.3 FEM Results

Amplitude and phase of the sea level

Figure 5.5: Amplitude and phase of the sea level N in 4 circular basins forced by N¯=eikTx.

Amplitude and phase of the sea level

Figure 5.6: Amplitude and phase of the sea level N in 4 square basins forced by N¯=eikTx.