# Free-Surface Green Function

The Free-Surface Green function is one of the most important objects in linear water wave theory. It forms the basis on many of the numerical solutions, especially for bodies of arbitrary geometry. It first appeared in John 1949 and John 1950. It is based on the Frequency Domain Problem. The exact form of the Green function depends on whether we assume the solution is proportional to $\exp(i\omega t)$ or $\exp(-i\omega t)$. It is the fundamental tool for the Green Function Solution Method There are many different representations for the Green function.

## Equations for the Green function

The Free-Surface Green function is a function which satisfies the following equation (in Finite Depth)

$\nabla_{\mathbf{x}}^{2}G(\mathbf{x},\mathbf{\xi})=\delta(\mathbf{x}-\mathbf{\xi}), \, -h\ltz\lt0$

$\frac{\partial G}{\partial z}=0, \, z=-h,$

$\frac{\partial G}{\partial z} = \alpha G,\,z=0.$

where $\alpha$ is the wavenumber in Infinite Depth which is given by $\alpha=\omega^2/g$ where $g$ is gravity. We also require a condition as $\mathbf{x} \to \infty$ which is the Sommerfeld Radiation Condition. This depends on whether we assume that the solution is proportional to $\exp(i\omega t)$ or $\exp(-i\omega t)$. We assume $\exp(i\omega t)$ through out this.

We define $\mathbf{x}=(x,y,z)$ and $\mathbf{\xi}=(a,b,c)$

## Two Dimensional Representations

Many expressions for the Green function have been given. We present here a derivation for finite depth based on an Eigenfunction Matching Method. We write the Green function as

$G(x) = \sum_{n=0}^\infty a_n(x)f_n(z)$

where

$f_n(z)=\frac{\cos(k_n(z+h))}{N_n}$

$k_n$ are the roots of the Dispersion Relation for a Free Surface

$\alpha +k_n\tan{(k_n h)}= 0\,$

with $k_0$ being purely imaginary with negative imaginary part and $k_n,$ $n\geq 1$ are purely real with positive real part ordered with increasing size. $N_n$ is chosen so that the eigenfunctions are orthonormal, i.e.,

$\int_{-h}^{0} f_m(z) f_n(z)\mathrm{d}z = \delta_{mn}.\,$

and are given by

$N_n = \sqrt{\frac{\cos(k_nh)\sin(k_nh)+k_nh}{2k_n}}$

The Green function as written needs to only satisfy the condition

$(\partial_x^2 + \partial_z^2 )G = \delta(x-a)\delta(z-c).$

We can expand the delta function as

$\delta(z-c)=\sum_{n=0}^\infty f_n(z)f_n(c).$

Therefore we can derive the equation

$\sum_{n=0}^\infty (\partial_x^2 - k_n^2 )a_n(x)f_n(z)= \delta(x-a)\sum_{n=0}^\infty f_n(z)f_n(c).$

so that we must solve

$(\partial_x^2 - k_n^2 )a_n(x) = \delta(x-a)f_n(c).$

This has solution

$a_n(x) = -\frac{e^{-|x-a|k_n}f_n(c)}{2 k_n}.$

The Green function can therefore be written as

$G(x,\xi) = \sum_{n=0}^\infty -\frac{e^{-|x-a|k_n}}{2 k_n}f_n(c)f_n(z)$

$= \sum_{n=0}^\infty -\frac{e^{-|x-a|k_n}}{2 k_n N_n^2} \cos(k_n(z+h))\cos(k_n(c+h))$

It can be written using the expression for $N_n$ as

$G(\mathbf{x},\mathbf{\xi}) = \sum_{n=0}^\infty -\frac{e^{-|x-a|k_n}}{\cos(k_nh)\sin(k_nh)+k_nh} \cos(k_n(z+h))\cos(k_n(c+h))$

We can use the Dispersion Relation for a Free Surface which the roots $k_n$ satisfy to show that $\alpha = - k_n\tan k_n h$ and $\alpha ^2+k_n^2 = k_n^2\sec^2k_n h$ so that we can write the Green function in the following forms

$G(\mathbf{x},\mathbf{\xi}) = \sum_{n=0}^\infty \frac{e^{-|x-a|k_n}}{k_n/\alpha \sin(k_nh) - k_nh} \cos(k_n(z+h))\cos(k_n(c+h))$

or

$G(\mathbf{x},\mathbf{\xi}) = \sum_{n=0}^\infty \frac{(\alpha ^2+k_n^2)e^{-|x-a|k_n}}{\alpha - (\alpha ^2+k_n^2)k_nh } \cos(k_n(z+h))\cos(k_n(c+h))$

There are some numerical advantages to these other forms. Note that the expression give in Mei 1983 and Wehausen and Laitone 1960 is incorrect (by a factor of -1).

### Incident at an angle

In some situations the potential may have a simple $e^{i k_y y}$ dependence (so that it is pseudo two-dimensional). This is used to allow waves to be incident at an angle. We require the Green function to satisfy the following equation

$\left(\partial_x^2 + \partial_z^2 - k_y^2\right) G(\mathbf{x},\mathbf{\xi})=\delta(\mathbf{x}-\mathbf{\xi}), \, -\infty\ltz\lt0$

$\frac{\partial G}{\partial z}=0, \, z=-h,$

$\frac{\partial G}{\partial z} = \alpha\phi,\,z=0.$

The Green function can be derived exactly as before except we have to include $k_y$

$G(\mathbf{x},\mathbf{\xi}) = \sum_{n=0}^\infty -\frac{k_n}{\sqrt{k_n^2+k_y^2}} \frac{e^{-|x-a|\sqrt{k_n^2+k_y^2}}}{\cos(k_nh)\sin(k_nh)+k_nh} \cos(k_n(z+h))\cos(k_n(c+h))$

### Infinite Depth

The Green function for infinite depth can be derived from the expression for finite depth by taking the limit as $h\to\infty$ and converting the sum to an integral using the Riemann sum. Alternatively, the expression can be derived using Fourier Transform Mei 1983

### Solution for the singularity at the Free-Surface

We can also consider the following problem

$\nabla^{2} G=0, \, -h\ltz\lt0$

$\frac{\partial G}{\partial z}=0, \, z=-h,$

$-\frac{\partial G}{\partial z} + \alpha G = \delta(x-a),\,z=0.$

It turns out that the solution to this is nothing more than the Green function we found previously restricted to the free surface, i.e.

$G(\mathbf{x},\mathbf{\xi}) = \sum_{n=0}^\infty -\frac{e^{-|x-a|k_n}}{2 k_n N_n^2} \cos(k_n(z+h))\cos(k_n h) = \sum_{n=0}^\infty \frac{e^{-|x-a|k_n}}{2 \alpha N_n^2} \cos(k_n(z+h))\sin(k_n h)$

### Matlab code

Code to calculate the Green function in two dimensions without incident angle for point source and field point on the free surface can be found here two_d_finite_depth_Green_surface.m

## Three Dimensional Representations

Let $(r,\theta)$ be cylindrical coordinates such that

$x - a = r \cos \theta,\,$

$y - b = r \sin \theta,\,$

and let $R_0$ and $R_1$ denote the distance from the source point $\mathbf{\xi} = (a,b,c)$ and the distance from the mirror source point $\bar{\mathbf{\xi}} = (a,b,-c)$ respectively, $R_0^2 = (x-a)^2 + (y-b)^2 + (z-c)^2$ and $R_1^2 = (x-a)^2 + (y-b)^2 + (z+c)^2$.

### Finite Depth

The most important representation of the finite depth free surface Green function is the eigenfunction expansion given by John 1950. He wrote the Green function in the following form

$\begin{matrix} G(\mathbf{x};\mathbf{\xi}) & = & \frac{i}{2} \, \frac{\alpha ^2-k^2}{(\alpha ^2-k^2)h-\alpha }\, \cosh k(z+h)\, \cosh k(c+h) \, H_0^{(1)}(k r) \\ & + & \frac{1}{\pi} \sum_{m=1}^{\infty} \frac{k_m^2+\alpha ^2}{(k_m^2+\alpha ^2)h-\alpha }\, \cos k_m(z+h)\, \cos k_m(c+h) \, K_0(k_m r), \end{matrix}$

where $H^{(1)}_0$ and $K_0 ,\,$ denote the Hankel function of the first kind and the modified Bessel function of the second kind, both of order zero as defined in Abramowitz and Stegun 1964, $k$ is the positive real solution to the Dispersion Relation for a Free Surface and $k_m$ are the imaginary parts of the solutions with positive imaginary part. This way of writing the equation was primarily to avoid complex values for the Bessel functions, however most computer packages will calculate Bessel functions for complex argument so it makes more sense to write the Green function in the following form

$G(\mathbf{x};\mathbf{\xi}) = \frac{1}{\pi} \sum_{m=0}^{\infty} \frac{k_m^2+\alpha ^2}{(k_m^2+\alpha ^2)h-\alpha }\, \cos k_m(z+h)\, \cos k_m(c+h) \, K_0(k_m r),$

where $k_m$ are as before except $k_0=ik$.

An expression where both variables are given in cylindrical polar coordinates is the following

$G(r,\theta,z;s,\varphi,c)= \frac{1}{\pi} \sum_{m=0}^{\infty} \frac{k_m^2+\alpha ^2}{h(k_m^2+\alpha ^2)-\alpha }\, \cos k_m(z+h) \cos k_m(c+h) \sum_{\nu=-\infty}^{\infty} K_\nu(k_m r_+) I_\nu(k_m r_-) \mathrm{e}^{\mathrm{i}\nu (\theta - \varphi)},$

where $r_+=\mathrm{max}\{r,s\}$, and $r_-=\mathrm{min}\{r,s\}$; this was given by Black 1975 and Fenton 1978 and can be derived by applying Graf's Addition Theorem to $K_0(k_m|r\mathrm{e}^{\mathrm{i}\theta}-s\mathrm{e}^{\mathrm{i}\varphi}|)$ in the definition of $G(\mathbf{x};\mathbf{\xi})$ above.

### Infinite Depth

In three dimensions and infinite depth the Green function $G$, for $r\gt0$, was given by Havelock 1955 as

$\begin{matrix} G(\mathbf{x};\mathbf{\xi}) &= \frac{i \alpha }{2} e^{\alpha (z+c)} \, H_0^{(1)}(\alpha r) + \frac{1}{4 \pi R_0} + \frac{1}{4 \pi R_1} \\ & - \frac{1}{\pi^2} \int\limits_{0}^{\infty} \frac{\alpha }{\eta^2 + \alpha ^2} \big( \alpha \cos \eta (z+c) - \eta \sin \eta (z+c) \big) K_0(\eta r) \mathrm{d}\eta. \end{matrix}$

It should be noted that this Green function can also be written in the following closely related form,

$\begin{matrix} G(\mathbf{x};\mathbf{\xi}) & = \frac{i \alpha }{2} e^{\alpha (z+c)} \, H_0^{(1)}(\alpha r) + \frac{1}{4 \pi R_0} \\ & + \frac{1}{2 \pi^2} \int\limits_{0}^{\infty} \frac{(\eta^2 - \alpha ^2) \cos \eta (z+c) + 2 \eta \alpha \sin \eta (z+c)}{\eta^2 + \alpha ^2} K_0(\eta r) \mathrm{d}\eta \end{matrix}$

Linton and McIver 2001. An equivalent representation is due to Kim 1965 for $r\gt0$, although implicitly given in the work of Havelock 1955, and is given by

$G(\mathbf{x};\mathbf{\xi}) = \frac{1}{4 \pi R_0} + \frac{1}{4 \pi R_1} - \frac{\alpha }{4} e^{\alpha (z+c)} \Big(\mathbf{H}_0(\alpha r) + Y_0(\alpha r) - 2i J_0 (\alpha r) + \frac{2}{\pi} \int\limits_{z+c}^0 \frac{e^{-\alpha \eta}}{\sqrt{r^2 + \eta^2}} \mathrm{d}\eta \Big),$

where $J_0$ and $Y_0$ are the Bessel functions of order zero of the first and second kind and $\mathbf{H}_0$ is the Struve function of order zero.

The expression due to Peter and Meylan 2004 is

$G(\mathbf{x};\mathbf{\xi}) = \frac{i \alpha }{2} e^{\alpha (z+c)} h_0^{(1)}(\alpha r) + \frac{1}{\pi^2} \int\limits_0^{\infty} \Big( \cos \eta z + \frac{\alpha }{\eta} \sin \eta z \Big) \frac{\eta^2}{\eta^2+\alpha ^2} \Big( \cos \eta c + \frac{\alpha }{\eta} \sin \eta c \Big) K_0(\eta r) \mathrm{d}\eta.$