<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=F.+Bonnefoy</id>
	<title>WikiWaves - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikiwaves.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=F.+Bonnefoy"/>
	<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php/Special:Contributions/F._Bonnefoy"/>
	<updated>2026-04-17T18:47:59Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Thick_inf_dock.jpg&amp;diff=6632</id>
		<title>File:Thick inf dock.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Thick_inf_dock.jpg&amp;diff=6632"/>
		<updated>2008-06-26T12:13:13Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6631</id>
		<title>Eigenfunction Matching for a Submerged Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6631"/>
		<updated>2008-06-26T09:35:57Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a free surface &lt;br /&gt;
and a submerged dock/plate through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we refer to the solution [[Eigenfunction Matching for a Semi-Infinite Dock]]&lt;br /&gt;
&lt;br /&gt;
[[Image:submerged_inf_dock.jpg|thumb|right|300px|Wave scattering by a submerged semi-infinite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for the submerged dock in&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;  (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=-d,\,x&amp;gt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;. The first two regions use the free-surface eigenfunction&lt;br /&gt;
and the third uses the dock eigenfunctions. Details can be found in [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}^h x}\phi_{0}^h\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}^h x}\phi_{m}^h(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-k_{m}^d (x)}\phi_{m}^d(z)&lt;br /&gt;
, \;\;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} x}\psi_{m}(z)&lt;br /&gt;
, \;\;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n^l&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]] &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  k \tan(kl) = -\alpha&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}^l&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}^l&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/(h-d)&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}^l\left(  z\right)  = \frac{\cos k_{m}(z+l)}{\cos k_{m}l},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water regions and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{m}^d(z)\phi_{n}^d(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}d\sin k_{m}d+k_{m}d}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}l}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{n}^h(z)\phi_{m}^d(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\phi_{n}^h(z)\psi_{m}(z) d z=C_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\psi_{m}(z)\psi_{n}(z) d z=D_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
D_{m}=\frac{1}{2}(h-d),\quad,m\neq 0 \quad \mathrm{and} \quad D_0 = (h-d)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the dock region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}k_m^d b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}\kappa_m c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard method to solve these equations (from [[Linton and Evans]]) is to&lt;br /&gt;
mutiply  both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{q}^d(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; or&lt;br /&gt;
by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_{r}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt;.&lt;br /&gt;
However, we use a different method, which is closer to the solution method&lt;br /&gt;
for [[Eigenfunction Matching for a Semi-Infinite Dock]] which allows us to keep&lt;br /&gt;
the computer code similar. These is no significant difference between the methods&lt;br /&gt;
numerically and a close connection exists. &lt;br /&gt;
&lt;br /&gt;
We truncate the sum to &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; modes and introduce a new function&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\chi_m = &lt;br /&gt;
\begin{array}&lt;br /&gt;
\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We multiply each equation by &amp;lt;math&amp;gt;\phi_{q}^h(z)&amp;lt;/math&amp;gt; and integrating &lt;br /&gt;
from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0q} + \sum_{m=0}^{\infty}a_{q}A_{mq}&lt;br /&gt;
= b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h A_{0q} + \sum_{m=0}^{\infty}k_{m}^h a_{m}A_{mq}&lt;br /&gt;
= -k_{q}^d b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{0r} + \sum_{m=0}^{\infty}a_{r}C_{mr}&lt;br /&gt;
= c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h C_{0r} + \sum_{m=0}^{\infty}k_{m}^h a_{r}C_{mr}&lt;br /&gt;
= -k_{r}^d c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
The numerical truncation needs to be handled with some care. We need the number of eigenfunctions to the left and right&lt;br /&gt;
to match. We choose the number of eigenfunctions to the left to be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; and then choose&lt;br /&gt;
the number above and below to sum to &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; in proportion as &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; is to &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; &lt;br /&gt;
(making sure that there is at least one eigenfunction in each region.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; but this&lt;br /&gt;
is not presented here. For details see [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the submerged semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/submerged_semiinfinite_dock.m submerged_semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Submerged_inf_dock.jpg&amp;diff=6630</id>
		<title>File:Submerged inf dock.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Submerged_inf_dock.jpg&amp;diff=6630"/>
		<updated>2008-06-26T09:35:07Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6629</id>
		<title>Eigenfunction Matching for a Submerged Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6629"/>
		<updated>2008-06-26T09:09:01Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Solution Method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a free surface &lt;br /&gt;
and a submerged dock/plate through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we refer to the solution [[Eigenfunction Matching for a Semi-Infinite Dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for the submerged dock in&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;  (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=-d,\,x&amp;gt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;. The first two regions use the free-surface eigenfunction&lt;br /&gt;
and the third uses the dock eigenfunctions. Details can be found in [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}^h x}\phi_{0}^h\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}^h x}\phi_{m}^h(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-k_{m}^d (x)}\phi_{m}^d(z)&lt;br /&gt;
, \;\;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} x}\psi_{m}(z)&lt;br /&gt;
, \;\;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n^l&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]] &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  k \tan(kl) = -\alpha&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}^l&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}^l&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/(h-d)&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}^l\left(  z\right)  = \frac{\cos k_{m}(z+l)}{\cos k_{m}l},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water regions and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{m}^d(z)\phi_{n}^d(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}d\sin k_{m}d+k_{m}d}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}l}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{n}^h(z)\phi_{m}^d(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\phi_{n}^h(z)\psi_{m}(z) d z=C_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\psi_{m}(z)\psi_{n}(z) d z=D_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
D_{m}=\frac{1}{2}(h-d),\quad,m\neq 0 \quad \mathrm{and} \quad D_0 = (h-d)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the dock region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}k_m^d b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}\kappa_m c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard method to solve these equations (from [[Linton and Evans]]) is to&lt;br /&gt;
mutiply  both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{q}^d(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; or&lt;br /&gt;
by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_{r}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt;.&lt;br /&gt;
However, we use a different method, which is closer to the solution method&lt;br /&gt;
for [[Eigenfunction Matching for a Semi-Infinite Dock]] which allows us to keep&lt;br /&gt;
the computer code similar. These is no significant difference between the methods&lt;br /&gt;
numerically and a close connection exists. &lt;br /&gt;
&lt;br /&gt;
We truncate the sum to &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; modes and introduce a new function&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\chi_m = &lt;br /&gt;
\begin{array}&lt;br /&gt;
\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We multiply each equation by &amp;lt;math&amp;gt;\phi_{q}^h(z)&amp;lt;/math&amp;gt; and integrating &lt;br /&gt;
from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0q} + \sum_{m=0}^{\infty}a_{q}A_{mq}&lt;br /&gt;
= b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h A_{0q} + \sum_{m=0}^{\infty}k_{m}^h a_{m}A_{mq}&lt;br /&gt;
= -k_{q}^d b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{0r} + \sum_{m=0}^{\infty}a_{r}C_{mr}&lt;br /&gt;
= c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h C_{0r} + \sum_{m=0}^{\infty}k_{m}^h a_{r}C_{mr}&lt;br /&gt;
= -k_{r}^d c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
The numerical truncation needs to be handled with some care. We need the number of eigenfunctions to the left and right&lt;br /&gt;
to match. We choose the number of eigenfunctions to the left to be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; and then choose&lt;br /&gt;
the number above and below to sum to &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; in proportion as &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; is to &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; &lt;br /&gt;
(making sure that there is at least one eigenfunction in each region.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; but this&lt;br /&gt;
is not presented here. For details see [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the submerged semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/submerged_semiinfinite_dock.m submerged_semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6628</id>
		<title>Eigenfunction Matching for a Submerged Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6628"/>
		<updated>2008-06-26T09:08:47Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Governing Equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a free surface &lt;br /&gt;
and a submerged dock/plate through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we refer to the solution [[Eigenfunction Matching for a Semi-Infinite Dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for the submerged dock in&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;  (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=-d,\,x&amp;gt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;-h&amp;lt;z&amp;lt;d,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;. The first two regions use the free-surface eigenfunction&lt;br /&gt;
and the third uses the dock eigenfunctions. Details can be found in [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}^h x}\phi_{0}^h\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}^h x}\phi_{m}^h(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-k_{m}^d (x)}\phi_{m}^d(z)&lt;br /&gt;
, \;\;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} x}\psi_{m}(z)&lt;br /&gt;
, \;\;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n^l&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]] &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  k \tan(kl) = -\alpha&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}^l&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}^l&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/(h-d)&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}^l\left(  z\right)  = \frac{\cos k_{m}(z+l)}{\cos k_{m}l},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water regions and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{m}^d(z)\phi_{n}^d(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}d\sin k_{m}d+k_{m}d}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}l}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{n}^h(z)\phi_{m}^d(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\phi_{n}^h(z)\psi_{m}(z) d z=C_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\psi_{m}(z)\psi_{n}(z) d z=D_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
D_{m}=\frac{1}{2}(h-d),\quad,m\neq 0 \quad \mathrm{and} \quad D_0 = (h-d)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the dock region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}k_m^d b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}\kappa_m c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard method to solve these equations (from [[Linton and Evans]]) is to&lt;br /&gt;
mutiply  both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{q}^d(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; or&lt;br /&gt;
by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_{r}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt;.&lt;br /&gt;
However, we use a different method, which is closer to the solution method&lt;br /&gt;
for [[Eigenfunction Matching for a Semi-Infinite Dock]] which allows us to keep&lt;br /&gt;
the computer code similar. These is no significant difference between the methods&lt;br /&gt;
numerically and a close connection exists. &lt;br /&gt;
&lt;br /&gt;
We truncate the sum to &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; modes and introduce a new function&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\chi_m = &lt;br /&gt;
\begin{array}&lt;br /&gt;
\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We multiply each equation by &amp;lt;math&amp;gt;\phi_{q}^h(z)&amp;lt;/math&amp;gt; and integrating &lt;br /&gt;
from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0q} + \sum_{m=0}^{\infty}a_{q}A_{mq}&lt;br /&gt;
= b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h A_{0q} + \sum_{m=0}^{\infty}k_{m}^h a_{m}A_{mq}&lt;br /&gt;
= -k_{q}^d b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{0r} + \sum_{m=0}^{\infty}a_{r}C_{mr}&lt;br /&gt;
= c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h C_{0r} + \sum_{m=0}^{\infty}k_{m}^h a_{r}C_{mr}&lt;br /&gt;
= -k_{r}^d c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
The numerical truncation needs to be handled with some care. We need the number of eigenfunctions to the left and right&lt;br /&gt;
to match. We choose the number of eigenfunctions to the left to be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; and then choose&lt;br /&gt;
the number above and below to sum to &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; in proportion as &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; is to &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; &lt;br /&gt;
(making sure that there is at least one eigenfunction in each region.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; but this&lt;br /&gt;
is not presented here. For details see [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the submerged semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/submerged_semiinfinite_dock.m submerged_semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6627</id>
		<title>Eigenfunction Matching for a Submerged Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Submerged_Semi-Infinite_Dock&amp;diff=6627"/>
		<updated>2008-06-26T09:07:28Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a free surface &lt;br /&gt;
and a submerged dock/plate through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we refer to the solution [[Eigenfunction Matching for a Semi-Infinite Dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for the submerged dock in&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;  (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=-d,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;-h&amp;lt;z&amp;lt;d,\,\,x&amp;gt;0&amp;lt;/math&amp;gt;. The first two regions use the free-surface eigenfunction&lt;br /&gt;
and the third uses the dock eigenfunctions. Details can be found in [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}^h x}\phi_{0}^h\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}^h x}\phi_{m}^h(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-k_{m}^d (x)}\phi_{m}^d(z)&lt;br /&gt;
, \;\;-d&amp;lt;z&amp;lt;0,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)= \sum_{m=0}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} x}\psi_{m}(z)&lt;br /&gt;
, \;\;-h&amp;lt;z&amp;lt;-d,\,\,x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n^l&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]] &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  k \tan(kl) = -\alpha&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}^l&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}^l&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/(h-d)&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}^l\left(  z\right)  = \frac{\cos k_{m}(z+l)}{\cos k_{m}l},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water regions and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{m}^d(z)\phi_{n}^d(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}d\sin k_{m}d+k_{m}d}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}l}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-d}^{0}\phi_{n}^h(z)\phi_{m}^d(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\phi_{n}^h(z)\psi_{m}(z) d z=C_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{-d}\psi_{m}(z)\psi_{n}(z) d z=D_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
D_{m}=\frac{1}{2}(h-d),\quad,m\neq 0 \quad \mathrm{and} \quad D_0 = (h-d)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the dock region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}k_m^d b_{m}\phi_{m}^d(z),\,\,\,-d&amp;lt;z&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_0^h\phi_{0}^h\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
k_m^h a_{m} \phi_{m}^h\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}\kappa_m c_{m}\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The standard method to solve these equations (from [[Linton and Evans]]) is to&lt;br /&gt;
mutiply  both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{q}^d(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; or&lt;br /&gt;
by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\psi_{r}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;-d&amp;lt;/math&amp;gt;.&lt;br /&gt;
However, we use a different method, which is closer to the solution method&lt;br /&gt;
for [[Eigenfunction Matching for a Semi-Infinite Dock]] which allows us to keep&lt;br /&gt;
the computer code similar. These is no significant difference between the methods&lt;br /&gt;
numerically and a close connection exists. &lt;br /&gt;
&lt;br /&gt;
We truncate the sum to &amp;lt;math&amp;gt;N+1&amp;lt;/math&amp;gt; modes and introduce a new function&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\chi_m = &lt;br /&gt;
\begin{array}&lt;br /&gt;
\psi_{m}(z),\,\,\,-h&amp;lt;z&amp;lt;-d&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We multiply each equation by &amp;lt;math&amp;gt;\phi_{q}^h(z)&amp;lt;/math&amp;gt; and integrating &lt;br /&gt;
from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0q} + \sum_{m=0}^{\infty}a_{q}A_{mq}&lt;br /&gt;
= b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h A_{0q} + \sum_{m=0}^{\infty}k_{m}^h a_{m}A_{mq}&lt;br /&gt;
= -k_{q}^d b_qB_{q}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{0r} + \sum_{m=0}^{\infty}a_{r}C_{mr}&lt;br /&gt;
= c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}^h C_{0r} + \sum_{m=0}^{\infty}k_{m}^h a_{r}C_{mr}&lt;br /&gt;
= -k_{r}^d c_rD_{r}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
The numerical truncation needs to be handled with some care. We need the number of eigenfunctions to the left and right&lt;br /&gt;
to match. We choose the number of eigenfunctions to the left to be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; and then choose&lt;br /&gt;
the number above and below to sum to &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; in proportion as &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; is to &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; &lt;br /&gt;
(making sure that there is at least one eigenfunction in each region.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; but this&lt;br /&gt;
is not presented here. For details see [[Eigenfunction Matching for a Semi-Infinite Dock]].&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the submerged semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/submerged_semiinfinite_dock.m submerged_semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6626</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6626"/>
		<updated>2008-06-25T20:11:26Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{s}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{s}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{s}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{s}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=-b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{-\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively. Note that the minus sign in the expression for the dock-covered region has been added so that each component is equal to one at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{a}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{a}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{a}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{a}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where for &amp;lt;math&amp;gt;m=0&amp;lt;/math&amp;gt;, we adopt the notation &amp;lt;math&amp;gt;\, \cot\kappa_{0}L=1/L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Solution to the original problem ==&lt;br /&gt;
&lt;br /&gt;
We can now reconstruct the potential for the finite dock from the two previous symmetric and anti-symmetric solution as explained in [[Symmetry in Two Dimensions]].&lt;br /&gt;
The amplitude in the left open-water region is simply obtained by the superposition principle&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
a_{m} = \frac{1}{2}\left(a_{m}^{s}+a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and in the dock-covered region we now consider a potential written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\psi_{m}(z)&lt;br /&gt;
-c_0 \frac{x}{L} \psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{-\sin \kappa_m L} \psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_{m}=\frac{1}{2}\left(b_{m}^{s}+b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
c_{m}=\frac{1}{2}\left(b_{m}^{s}-b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, in the right open-water region&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
d_{m} = \frac{1}{2}\left(a_{m}^{s}-a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6625</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6625"/>
		<updated>2008-06-25T20:06:06Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Solution to the original problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{s}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{s}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{s}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{s}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=-b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{-\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively. Note that the minus sign in the expression for the dock-covered region has been added so that each component is equal to one at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{a}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{a}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{a}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{a}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where for &amp;lt;math&amp;gt;m=0&amp;lt;/math&amp;gt;, we adopt the notation &amp;lt;math&amp;gt;\, \cot\kappa_{0}L=1/L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Solution to the original problem ==&lt;br /&gt;
&lt;br /&gt;
We can now reconstruct the potential for the finite dock from the two previous symmetric and anti-symmetric solution as explained in [[Symmetry in Two Dimensions]].&lt;br /&gt;
The amplitude in the left open-water region is simply obtained by the superposition principle&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
a_{m} = \frac{1}{2}\left(a_{m}^{s}+a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and in the dock-covered region we now consider a potential written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
-c_0 \frac{x}{L} \psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_{m}=\frac{1}{2}\left(b_{m}^{s}+b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
c_{m}=\frac{1}{2}\left(b_{m}^{s}-b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, in the right open-water region&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
d_{m} = \frac{1}{2}\left(a_{m}^{s}-a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6623</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6623"/>
		<updated>2008-06-25T20:01:41Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Solution to the original problem */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{s}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{s}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{s}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{s}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=-b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{-\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively. Note that the minus sign in the expression for the dock-covered region has been added so that each component is equal to one at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{a}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{a}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{a}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{a}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where for &amp;lt;math&amp;gt;m=0&amp;lt;/math&amp;gt;, we adopt the notation &amp;lt;math&amp;gt;\, \cot\kappa_{0}L=1/L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Solution to the original problem ==&lt;br /&gt;
&lt;br /&gt;
We can now reconstruct the potential for the finite dock from the two previous symmetric and anti-symmetric solution as explained in [[Symmetry in Two Dimensions]].&lt;br /&gt;
The amplitude in the left open-water region is simply obtained by the superposition principle&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
a_{m} = \frac{1}{2}\left(a_{m}^{s}+a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and in the dock-covered region we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_{m}=\frac{1}{2}\left(b_{m}^{s}+b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
c_{m}=\frac{1}{2}\left(b_{m}^{s}-b_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Finally, in the right open-water region&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
d_{m} = \frac{1}{2}\left(a_{m}^{s}-a_{m}^{a}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6622</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6622"/>
		<updated>2008-06-25T19:49:18Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Anti-Symmetric solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{s}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{s}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{s}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{s}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=-b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{-\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively. Note that the minus sign in the expression for the dock-covered region has been added so that each component is equal to one at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{a}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{a}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{a}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{a}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where for &amp;lt;math&amp;gt;m=0&amp;lt;/math&amp;gt;, we adopt the notation &amp;lt;math&amp;gt;\, \cot\kappa_{0}L=1/L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Solution to the original problem ==&lt;br /&gt;
&lt;br /&gt;
The amplitude in the open-water region is simply obtained by the superposition principle&lt;br /&gt;
&amp;lt;math&amp;gt;a_{m}=\frac{1}{2}\left(a_{m}^{s}+a_{m}^{a}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
and in the dock-covered region &amp;lt;math&amp;gt;b_{m}=\frac{1}{2}\left(b_{m}^{s}+b_{m}^{a}\right)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6619</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6619"/>
		<updated>2008-06-25T19:41:00Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Solution using Symmetry */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{s}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{s}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{s}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{s}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=-b_0^{a}\frac{x}{L}-\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively. Note that the minus sign in the expression for the dock-covered region has been added so that each component is equal to one at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}^{a}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}^{a}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}^{a}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}^{a}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where for &amp;lt;math&amp;gt;m=0&amp;lt;/math&amp;gt;, we adopt the notation &amp;lt;math&amp;gt;\, \cot\kappa_{0}L=1/L&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Solution to the original problem ==&lt;br /&gt;
&lt;br /&gt;
The amplitude in the open-water region is simply obtained by the superposition principle&lt;br /&gt;
&amp;lt;math&amp;gt;a_{m}=\frac{1}{2}\left(a_{m}^{s}+a_{m}^{a}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
and in the dock-covered region &amp;lt;math&amp;gt;b_{m}=\frac{1}{2}\left(b_{m}^{s}+b_{m}^{a}\right)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Two_Identical_Docks_using_Symmetry&amp;diff=6611</id>
		<title>Two Identical Docks using Symmetry</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Two_Identical_Docks_using_Symmetry&amp;diff=6611"/>
		<updated>2008-06-25T19:11:11Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists three regions &lt;br /&gt;
with a free surface and and two regions of identical length with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
The solution method is an extension of [[Eigenfunction Matching for a Finite Dock]]&lt;br /&gt;
using [[Symmetry in Two Dimensions]].&lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;-L_2,\,-L_1&amp;lt;x&amp;lt;L_1, {\rm or} \, x&amp;gt;L_2&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L_2&amp;lt;x&amp;lt;-L_1, {\rm or} \, L_1&amp;lt;x&amp;lt;L_2,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where we require &amp;lt;math&amp;gt;L_1&amp;lt;L_2&amp;lt;/math&amp;gt; and we define &amp;lt;math&amp;gt;L_2 - L_1 = 2L&amp;lt;/math&amp;gt;&lt;br /&gt;
(so that the dock also has length &amp;lt;math&amp;gt;2L&amp;lt;/math&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
We must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
The solution method uses [[Symmetry in Two Dimensions]] and we write the potential as&lt;br /&gt;
a symmetric and an anti-symmetric part and consider only the region &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. We apply&lt;br /&gt;
either Neuman (symmetric) or Dirichlet (anti-symmetric) boundary conditions at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt;.&lt;br /&gt;
We [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, similar to&lt;br /&gt;
as for the [[Eigenfunction Matching for a Finite Dock]]. We being with the symmetric potential which can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^s(x,z)=e^{-k_{0}(x+L_2)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a^s_{m}e^{k_{m}(x+L_2)}\phi_{m}(z), \;\;x&amp;lt;-L_2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b^s_0 \frac{x+L_1}{-2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b^s_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L_2)}\psi_{m}(z)&lt;br /&gt;
+c^s_0 \frac{L_2+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c^s_{m}&lt;br /&gt;
e^{\kappa_{m} (x+L_1)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L_2&amp;lt;x&amp;lt;L_1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d^s_{m} \frac{\cosh(k_{m}x)}{\cosh(k_m L_1)} \phi_{m}(z), \;\;-L_1&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a^s_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d^s_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b^s_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c^s_m&amp;lt;/math&amp;gt; are the coefficients under the dock. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=- L_2&amp;lt;/math&amp;gt; and&lt;br /&gt;
&amp;lt;math&amp;gt;x=-L_1&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a^s_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b^s_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c^s_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a^s_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b^s_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b^s_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c^s_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c^s_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b^s_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c^s_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d^s_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b^s_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b^s_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c^s_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c^s_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= \sum_{m=0}^{\infty}d^s_{m} \tanh(k_m L_1) k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a^s_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b^s_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c^s_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a^s_{l}k_{l}A_l&lt;br /&gt;
 = - b^s_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b^s_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c^s_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c^s_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b^s_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c^s_{m}B_{ml}&lt;br /&gt;
=d^s_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b^s_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b^s_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c^s_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c^s_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= d^s_l \tanh(k_l L_1) k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Anti-Symmetric Solution = &lt;br /&gt;
&lt;br /&gt;
The solution for the anti-symmetric potential proceeds in an almost identical manner. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^a(x,z)=e^{-k_{0}(x+L_2)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a^a_{m}e^{k_{m}(x+L_2)}\phi_{m}(z), \;\;x&amp;lt;-L_2&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b^a_0 \frac{x+L_1}{-2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b^a_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L_2)}\psi_{m}(z)&lt;br /&gt;
+c^a_0 \frac{L_2+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c^a_{m}&lt;br /&gt;
e^{\kappa_{m} (x+L_1)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L_2&amp;lt;x&amp;lt;L_1&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d^a_{m} \frac{\sinh(k_{m}x)}{-\sinh(k_m L_1)} \phi_{m}(z), \;\;-L_1&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a^a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d^a_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b^a_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c^a_m&amp;lt;/math&amp;gt; are the coefficients under the dock.&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a^a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b^a_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c^a_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a^a_{l}k_{l}A_l&lt;br /&gt;
 = - b^a_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b^a_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c^a_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c^a_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b^a_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c^a_{m}B_{ml}&lt;br /&gt;
=d^a_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b^a_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b^a_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c^a_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c^a_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= d^a_l  \frac{k_l A_l}{\tanh(k_l L_1)}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;.&lt;br /&gt;
Therefore the symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{s}_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a^s_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b^s_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c^s_{m}\psi_{m}(z)e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -\hat{k}_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a^s_{m}\hat{k}_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 = -\sum_{m=0}^{\infty}b^s_{m}\hat{\kappa}_{m}\psi&lt;br /&gt;
_{m}(z) +\sum_{m=0}^{\infty}c^s_{m}\hat{\kappa}_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b^s_{m}\psi_{m}(z)e^{-2L\hat{\kappa}_m} + \sum_{m=0}^{\infty}c^s_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d^s_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b^s_{m}\hat{\kappa}_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\hat{\kappa}_m} + \sum_{m=0}^{\infty}c^s_{m}\hat{\kappa}_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= \sum_{m=0}^{\infty}d^s_{m} \tanh(\hat{k}_m L_1) \hat{k}_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
and we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a^s_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b^s_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c^s_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a^s_{l}\hat{k}_{l}A_l&lt;br /&gt;
 = - \sum_{m=0}^{\infty}b^s_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+  \sum_{m=0}^{\infty}c^s_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b^s_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c^s_{m}B_{ml}&lt;br /&gt;
=d^s_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- \sum_{m=0}^{\infty}b^s_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+  \sum_{m=0}^{\infty}c^s_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= d^s_l \tanh(\hat{k}_l L_1) \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. The solution for the anti-symmetric &lt;br /&gt;
potential is found in a similar fashion.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/two_finite_docks_symmetry.m two_finite_docks_symmetry.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6590</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6590"/>
		<updated>2008-06-25T18:14:50Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Governing Equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6589</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6589"/>
		<updated>2008-06-25T18:14:22Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Governing Equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We consider here the [[Frequency Domain Problem]] for a finite dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;-L&amp;lt;x&amp;lt;L/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6587</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6587"/>
		<updated>2008-06-25T18:07:24Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional).  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Symmetry in Two Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]]. We also show how the solution &lt;br /&gt;
can be found using [[Symmetry in Two Dimensions]] for the finite dock. &lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Solution using Symmetry = &lt;br /&gt;
&lt;br /&gt;
The finite dock problem is symmetric about the line &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; and this allows us to solve the problem&lt;br /&gt;
using symmetry. This method is numerically more efficient and requires only slight modification of the &lt;br /&gt;
code for [[Eigenfunction Matching for a Semi-Infinite Dock]], the developed theory here is very close&lt;br /&gt;
to the semi-infinite solution. &lt;br /&gt;
We decompose the solution into a symmetric and an anti-symmetric part as is described in&lt;br /&gt;
[[Symmetry in Two Dimensions]]&lt;br /&gt;
&lt;br /&gt;
== Symmetric solution ==&lt;br /&gt;
The symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{s}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}^{s}&lt;br /&gt;
\frac{\cos\kappa_{m} x}{\cos \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{s}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{s}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\tan\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;br /&gt;
&lt;br /&gt;
== Anti-Symmetric solution ==&lt;br /&gt;
&lt;br /&gt;
The anti-symmetric potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}^{a}e^{k_{m}(x+L)}\phi_{m}(z)&lt;br /&gt;
, \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0^{a}\frac{x}{L}+\sum_{m=1}^{\infty}b_{m}^{a}&lt;br /&gt;
\frac{\sin\kappa_{m} x}{\sin \kappa_m L}\phi_{m}(z), \;\;-L&amp;lt;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}^{a}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}^{a}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions and the dock&lt;br /&gt;
covered region respectively.&lt;br /&gt;
&lt;br /&gt;
We now match at &amp;lt;math&amp;gt;x=-L&amp;lt;/math&amp;gt; and multiply both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\cot\kappa_{m}L B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
(for full details of this derivation see [[Eigenfunction Matching for a Semi-Infinite Dock]])&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Antisymmetric.jpg&amp;diff=6580</id>
		<title>File:Antisymmetric.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Antisymmetric.jpg&amp;diff=6580"/>
		<updated>2008-06-25T13:53:02Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Symmetric_FB.jpg&amp;diff=6574</id>
		<title>File:Symmetric FB.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Symmetric_FB.jpg&amp;diff=6574"/>
		<updated>2008-06-25T13:33:52Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6567</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6567"/>
		<updated>2008-06-25T13:18:10Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details. The solution here can be straightforwardly extended&lt;br /&gt;
using [[Two Symmetric Bodies in Two-Dimensions]] to two docks of the same length and this can be&lt;br /&gt;
found [[Two Identical Docks using Symmetry]].&lt;br /&gt;
&lt;br /&gt;
[[Image:finite_dock.jpg|thumb|right|300px|Wave scattering by a finite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{L-x}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L+x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;c_m&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;d_m&amp;lt;/math&amp;gt; are the coefficients under the dock&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solutions by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt; (ordered with increasing&lt;br /&gt;
imaginary part) and&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} + \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = - b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
- b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
+ c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Finite_dock.jpg&amp;diff=6566</id>
		<title>File:Finite dock.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Finite_dock.jpg&amp;diff=6566"/>
		<updated>2008-06-25T13:17:11Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6565</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6565"/>
		<updated>2008-06-25T13:04:34Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
[[Image:semiinfinite_dock.jpg|thumb|right|300px|Wave scattering by a semi-infinite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{m}) \, B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6564</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6564"/>
		<updated>2008-06-25T13:03:53Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Separation of variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
[[Image:semiinfinite_dock.jpg|thumb|center|300px|Wave scattering by a semi-infinite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)\,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{m}) \, B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6563</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6563"/>
		<updated>2008-06-25T13:02:13Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
[[Image:semiinfinite_dock.jpg|thumb|center|300px|Wave scattering by a semi-infinite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{m}) \, B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6562</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6562"/>
		<updated>2008-06-25T13:00:34Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
[[Image:semiinfinite_dock.jpg|thumb|right|600px|Wave scattering by a semi-infinite dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{m}) \, B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=File:Semiinfinite_dock.jpg&amp;diff=6561</id>
		<title>File:Semiinfinite dock.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=File:Semiinfinite_dock.jpg&amp;diff=6561"/>
		<updated>2008-06-25T12:48:37Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6558</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6558"/>
		<updated>2008-06-25T09:30:32Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{m}) \, B_{ml}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Linear_and_Second-Order_Wave_Theory&amp;diff=6556</id>
		<title>Linear and Second-Order Wave Theory</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Linear_and_Second-Order_Wave_Theory&amp;diff=6556"/>
		<updated>2008-06-24T07:27:07Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Derivation using Bernoulli&amp;#039;s equation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We saw in [[Conservation Laws And Boundary Conditions]] that the potential flow model for wave progation is given Laplaces equation plus the free-surface condtions. In this section we present the linear and second order theory for these equations. The linear theory is valid for small wave heights and the second order theory is an improvement on this. However, neither of these theories work for very steep waves and of course the potential theory breaks down once the wave begins to break and completely different methods are required in this situation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Linerization of Free-surface Conditions =&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Perturbation_theory perturbation theory] to expand the solution as follows&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;\zeta = \zeta_1 + \zeta_2 + \zeta_3 + \cdots &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Phi = \Phi_1 + \Phi_2 + \Phi_3 + \cdots &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we are assuming that there exists a small parameter (the wave slope) and that with respect to this the &lt;br /&gt;
&amp;lt;math&amp;gt;\Phi_i&amp;lt;/math&amp;gt; is proportional to &amp;lt;math&amp;gt;\epsilon^i&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;O(\epsilon^i)&amp;lt;/math&amp;gt;.  We then derive the boundary value problem for &amp;lt;math&amp;gt; \zeta_i,\Phi_i &amp;lt;/math&amp;gt;. Rarely we need to go beyond &amp;lt;math&amp;gt; i = 3 &amp;lt;/math&amp;gt; (in fact it is unlikely that the terms beyond&lt;br /&gt;
this will improve the accuracy. &lt;br /&gt;
&lt;br /&gt;
In this section we will only derive the free-surface conditions up to second order. Remember that &amp;lt;math&amp;gt;\nabla^2 \Phi_i =0&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;&lt;br /&gt;
We expand the kinematic and dynamic free surface conditions about the &amp;lt;math&amp;gt;Z=0&amp;lt;/math&amp;gt; plane and derive statements for the unknown pairs &amp;lt;math&amp;gt; (\Phi_1,\zeta_1 &amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; (\Phi_2, \zeta_2) &amp;lt;/math&amp;gt; at &amp;lt;math&amp;gt; Z=0 &amp;lt;/math&amp;gt;. The same technique can be used to linearize the body boundary condition at &amp;lt;math&amp;gt; U=0 &amp;lt;/math&amp;gt; (zero speed) and &amp;lt;math&amp;gt; U&amp;gt;0 &amp;lt;/math&amp;gt; (forward speed).&lt;br /&gt;
&lt;br /&gt;
= Kinematic condition =&lt;br /&gt;
&lt;br /&gt;
The fully non-linear kinematic condition was derived in [[Conservation Laws and Boundary Conditions]] and we begin with this equation&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \left ( \frac{\partial \zeta}{\partial t} + \nabla \Phi \cdot \nabla \zeta \right )_{Z=\zeta} = \left ( \frac{\partial \Phi}{\partial Z} \right )_{Z=\zeta} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
We expand this equation about &amp;lt;math&amp;gt;\zeta = 0&amp;lt;/math&amp;gt;, which we can do because we have assumed that the slope is small. In fact the slope is our parameter &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;. It is obvious at this point that the theory does not apply to very steep waves. This gives us the following equation&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \left( \frac{\partial\zeta}{\partial t} + \nabla \Phi \cdot \nabla \zeta \right)_{Z=0} + \zeta \frac{\partial}{\partial Z} \left( \frac{\partial\zeta}{\partial t} + \nabla \Phi \cdot \nabla \zeta \right)_{Z=0} + \cdots &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; = \left( \frac{\partial\Phi}{\partial Z} \right)_{Z=0} + \zeta \left( \frac{\partial^2 \Phi}{\partial Z^2} \right)_{Z=0} + \cdots &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
where we have only taken the first order expansion. We then substitute our expressions &lt;br /&gt;
&amp;lt;center&amp;gt; &amp;lt;math&amp;gt;&lt;br /&gt;
\begin{matrix}&lt;br /&gt;
\zeta = \zeta_1 + \zeta_2 + \cdots \\&lt;br /&gt;
\Phi = \Phi_1 + \Phi_2 + \cdots&lt;br /&gt;
\end{matrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and keep terms of &amp;lt;math&amp;gt;\ O(\varepsilon), \ O(\varepsilon^2)&amp;lt;/math&amp;gt;, remembering that &amp;lt;math&amp;gt;\zeta_1\Phi_1&amp;lt;/math&amp;gt; is &amp;lt;math&amp;gt;O(\varepsilon^2)&amp;lt;/math&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
= Dynamic condition =&lt;br /&gt;
&lt;br /&gt;
The fully non-linear Dynamic condition was derived in [[Conservation Laws and Boundary Conditions]] and is given by&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta (X,Y,t) = -\frac{1}{g} \left( \frac{\partial\Phi}{\partial t} + \frac{1}{2} \nabla\Phi \cdot \nabla\Phi \right)_{Z=\zeta}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\left . \begin{matrix}&lt;br /&gt;
 \zeta = \frac{1}{g} \left( \frac{\partial\Phi}{\partial t} + \frac{1}{2} \nabla\Phi \cdot \nabla\Phi \right)_{Z=0}\\&lt;br /&gt;
 \frac{1}{g} \zeta \frac{\partial}{\partial Z} \left( \frac{\partial\Phi}{\partial t} + \frac{1}{2} \nabla\Phi \cdot \nabla\Phi \right)_{Z=0} + \cdots&lt;br /&gt;
\end{matrix} \right \} &lt;br /&gt;
\begin{matrix}&lt;br /&gt;
 \zeta = \zeta_1 +\zeta_2 + \cdots \\&lt;br /&gt;
 \Phi = \Phi_1 + \Phi_2 + \cdots&lt;br /&gt;
\end{matrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Linear problem =&lt;br /&gt;
&lt;br /&gt;
The linear problem is the &amp;lt;math&amp;gt;O(\varepsilon)&amp;lt;/math&amp;gt; problem derived by equating the terms which are proportional to &amp;lt;math&amp;gt;\epsilon&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This can be done straight forwardly and gives the following expressions &lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{\partial\zeta_1}{\partial t} = \frac{\partial\Phi_1}{\partial Z} , \ Z=0;  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which follows from the Kinematic equation and &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \zeta_1 = -\frac{1}{g} \frac{\partial\Phi_1}{\partial t}, \ Z=0; &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which follows from the Dynamic equation. These are the linear free surface conditions. &lt;br /&gt;
&lt;br /&gt;
== Derivation using Bernoulli&#039;s equation ==&lt;br /&gt;
&lt;br /&gt;
The pressure from Bernoulli, &amp;lt;math&amp;gt; \omega &amp;lt;/math&amp;gt; constant terms set equal to zero, at a fixed point in the fluid domain at &amp;lt;math&amp;gt; \vec{X}=(X,Y,Z) &amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P = - \rho \left( \frac{\partial\Phi}{\partial t} + \frac{1}{2} \nabla\Phi \cdots \nabla\Phi + gZ \right); &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
When then make the perturbation expansion for the potential and the pressure&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \Phi = \Phi_1 + \Phi_2 + \cdots  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P = P_0 + P_1 + P_2 + \cdots &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
This allows us to derive &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P_0 = -\rho g Z  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is called the Hydrostatic pressure and &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P_1 = - \rho \frac{\partial\Phi_1}{\partial t}  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the linear pressure.&lt;br /&gt;
&lt;br /&gt;
== Classical linear free surface condition ==&lt;br /&gt;
If we eliminate &amp;lt;math&amp;gt; \zeta_1 &amp;lt;/math&amp;gt;  from the kinematic and dynamic free surface conditions, we obtain the classical linear free surface condition:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \begin{cases}&lt;br /&gt;
\frac{\partial^2\Phi_1}{\partial t^2} + g \frac{\partial\Phi_1}{\partial Z} = 0, \qquad Z=0\\&lt;br /&gt;
\zeta_1 = - \frac{1}{g} \frac{\partial\Phi_1}{\partial t}, \qquad Z=0&lt;br /&gt;
\end{cases} &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P_1 = - \rho \frac{\partial\Phi_1}{\partial t}, \qquad \mbox{At some fixed point} \ \vec X &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that on &amp;lt;math&amp;gt; Z=0, \ P_1 \ne 0 &amp;lt;/math&amp;gt;  in fact it can obtained from the expressions above in the form&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; P_1 = -\rho g \zeta_1, \qquad Z=0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So linear theory states that the linear perturbation pressure on the &amp;lt;math&amp;gt; Z=0 \, &amp;lt;/math&amp;gt;  plane due to a surface wave disturbance is equal to the positive (negative) &amp;quot;hydrostatic&amp;quot; pressure induced by the positive (negative) wave elevation &amp;lt;math&amp;gt; \zeta_1 \, &amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Second-order problem =&lt;br /&gt;
&lt;br /&gt;
The second order equations can also be derived straight forwardly. The kinematic condition is &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt; \frac{\partial\zeta_2}{\partial t} + \nabla\Phi_1 \cdot \nabla\zeta_1 = \frac{\partial\Phi_2}{\partial Z} + \zeta_1 \frac{\partial^2 \Phi_1}{\partial Z^2}, \quad Z=0 &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and the dynamic condition&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;  \zeta_2 = - \frac{1}{g} \left( \frac{\partial\Phi_2}{\partial t} + \frac{1}{2} \nabla\Phi_1 \cdot \nabla\Phi_1 \right)_{Z=0} - \frac{1}{g} \zeta_1 \frac{\partial^2\Phi_1}{\partial Z \partial t}, \quad Z=0  &amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternatively, the known linear terms may be moved in the right-hand side as forcing functions, leading to:&lt;br /&gt;
&lt;br /&gt;
== Kinematic second-order condition ==&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;  \frac{\partial\zeta_2}{\partial t} - \frac{\partial\Phi_2}{\partial Z} = \zeta_1 \frac{\partial^2 \Phi_1}{\partial Z^2} - \nabla\Phi_1 \cdot \nabla\zeta_1; \quad Z=0 &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dynamic second-order condition ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \zeta_2 + \frac{1}{g} \frac{\partial\Phi_2}{\partial t} = - \frac{1}{g} \left( \frac{1}{2} \nabla\Phi_1 \cdot \nabla\Phi_1 + \zeta_1 \frac{\partial^2\Phi_1}{\partial Z \partial t} \right)_{Z=0} &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the second order pressure is given by &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; P_2 = -\rho \left( \frac{\partial\Phi_2}{\partial t} + \frac{1}{2} \nabla\Phi_1 \cdot \nabla\Phi_1 \right); \quad \mbox{at} \ \vec X. &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The very attractive feature of second order surface wave theory is that it allows the prior solution of the linear problem which is often possible analytically and numerically.&lt;br /&gt;
The linear solution is then used as a forcing function for the solution of the second order problem. This is often possible analytically and in most cases numerically in the absence or presence of bodies.&lt;br /&gt;
Linear and second-order theories are also very appropriate to use for the modeling of surface waves as stochastic processes.&lt;br /&gt;
Both theories are very useful in practice, particularly in connection with wave-body interactions.&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
This article is based on the MIT open course notes and the original article can be found&lt;br /&gt;
[http://ocw.mit.edu/NR/rdonlyres/Mechanical-Engineering/2-24Spring-2002/0B7683D3-9B31-453E-B98F-9F71A3C36C58/0/lecture2.pdf here]&lt;br /&gt;
&lt;br /&gt;
[[Ocean Wave Interaction with Ships and Offshore Energy Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear Water-Wave Theory]]&lt;br /&gt;
[[Category:Non-linear Water-Wave Theory]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6555</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6555"/>
		<updated>2008-06-24T07:25:54Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{nl}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{n}) \, B_{nl}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6554</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6554"/>
		<updated>2008-06-24T07:25:21Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0 \quad \cdots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;A_l\delta_{0l}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots \quad 0 &amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;\cdots&amp;amp;-B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;-B_{nl}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
(k_0 + \kappa_0) \, B_{00}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{0}) \, B_{0M}\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
\vdots&amp;amp;(k_l + \kappa_{n}) \, B_{nl}&amp;amp;\vdots\\&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
(k_0 + \kappa_M) \, B_{M0}&amp;amp;\cdots&amp;amp;(k_M + \kappa_{M}) \, B_{MM}\\&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
\\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
0 \\&lt;br /&gt;
\\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6553</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6553"/>
		<updated>2008-06-24T07:14:58Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
A_0&amp;amp;0&amp;amp;\cdots&amp;amp;&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\ddots&amp;amp;\ddots&amp;amp;&amp;amp;\vdots\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;A_l\delta_{0l}&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;\ddots&amp;amp;0\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;&amp;amp;0&amp;amp;A_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
-B_{00}&amp;amp;-B_{01}&amp;amp;\cdots&amp;amp;&amp;amp;-B_{0M}\\&lt;br /&gt;
-B_{10}&amp;amp;\ddots&amp;amp;&amp;amp;&amp;amp;\vdots\\&lt;br /&gt;
\vdots&amp;amp;&amp;amp;-B_{nl}&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&amp;amp;\ddots&amp;amp;\\&lt;br /&gt;
-B_{M0}&amp;amp;\cdots&amp;amp;&amp;amp;&amp;amp;-B_{MM}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0\\&lt;br /&gt;
\vdots&amp;amp;\ddots&amp;amp;\vdots\\&lt;br /&gt;
0&amp;amp;\cdots&amp;amp;0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\ddots&amp;amp;&amp;amp;0\\&lt;br /&gt;
&amp;amp;(k_l + \kappa_{n}) \, B_{nl}&amp;amp;\\&lt;br /&gt;
0&amp;amp;&amp;amp;\ddots&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
a_{0} \\&lt;br /&gt;
a_{1} \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
a_M \\&lt;br /&gt;
b_{0}\\&lt;br /&gt;
b_1 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
b_M&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
- A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0 \\&lt;br /&gt;
2k_{0}A_{0} \\&lt;br /&gt;
0 \\&lt;br /&gt;
\vdots \\&lt;br /&gt;
\\&lt;br /&gt;
0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6552</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6552"/>
		<updated>2008-06-24T07:03:29Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. In terms of matrix, we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;A_l\delta_{0l}&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;-B_{nl}&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\\&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;0&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;amp;&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
&amp;amp;&amp;amp;\\&lt;br /&gt;
&amp;amp;(k_l + \kappa_{n}) \, B_{nl}&amp;amp;\\&lt;br /&gt;
&amp;amp;&amp;amp;&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
  a_{0} \\&lt;br /&gt;
  a_{1} \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  a_N \\&lt;br /&gt;
  b_{0}\\&lt;br /&gt;
  b_1 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  b_N&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
=&lt;br /&gt;
\begin{bmatrix}&lt;br /&gt;
  - A_{0} \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  2k_{0}A_{0} \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  0&lt;br /&gt;
\end{bmatrix}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6551</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6551"/>
		<updated>2008-06-24T06:54:22Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Numerical Solution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly. The problem can also&lt;br /&gt;
be generalised to a [[ Eigenfunction Matching for Submerged Semi-Infinite Dock|semi-infinite submerged dock]]&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt; (we assume &amp;lt;math&amp;gt;e^{i\omega t}&amp;lt;/math&amp;gt; time dependence).&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the dock covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{ccccccc}&lt;br /&gt;
\ulcorner &amp;amp;&amp;amp;\urcorner&amp;amp;&amp;amp;\ulcorner &amp;amp;&amp;amp;\urcorner\\&lt;br /&gt;
&amp;amp;A_l\delta_{0l}&amp;amp;&amp;amp;&amp;amp;&amp;amp;-B_{nl}&amp;amp;\\&lt;br /&gt;
\llcorner &amp;amp;&amp;amp;\lrcorner&amp;amp;&amp;amp;\llcorner &amp;amp;&amp;amp;\lrcorner\\&lt;br /&gt;
\\&lt;br /&gt;
\ulcorner &amp;amp;&amp;amp;\urcorner&amp;amp;&amp;amp;\ulcorner &amp;amp;&amp;amp;\urcorner\\&lt;br /&gt;
&amp;amp;0&amp;amp;&amp;amp;&amp;amp;&amp;amp;(k_l + \kappa_{n}) \, B_{nl}&amp;amp;\\&lt;br /&gt;
\llcorner &amp;amp;&amp;amp;\lrcorner&amp;amp;&amp;amp;\llcorner &amp;amp;&amp;amp;\lrcorner\\&lt;br /&gt;
\end{array}&lt;br /&gt;
\right]&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
  a_{0} \\&lt;br /&gt;
  a_{1} \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  a_N \\&lt;br /&gt;
  b_{0}\\&lt;br /&gt;
  b_1 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  b_N&lt;br /&gt;
\end{array}&lt;br /&gt;
\right] \egal&lt;br /&gt;
\left[&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
  - A_{0} \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  2k_{0}A_{0} \\&lt;br /&gt;
  0 \\&lt;br /&gt;
  \vdots \\&lt;br /&gt;
  0&lt;br /&gt;
\end{array}&lt;br /&gt;
\right]&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/eigenfunction_matching/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6345</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6345"/>
		<updated>2008-04-15T07:47:28Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Solution with Waves Incident at an Angle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{x+L}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L-x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b_m&amp;lt;/math&amp;gt; are the coefficients under the ice&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. &lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6344</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6344"/>
		<updated>2008-04-15T07:46:50Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* An infinite dimensional system of equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{x+L}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L-x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b_m&amp;lt;/math&amp;gt; are the coefficients under the ice&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. &lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{m=1}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6343</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6343"/>
		<updated>2008-04-12T07:34:10Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* An infinite dimensional system of equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{x+L}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L-x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b_m&amp;lt;/math&amp;gt; are the coefficients under the ice&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. &lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=1}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{n=1}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6342</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6342"/>
		<updated>2008-04-12T07:14:44Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken link ==&lt;br /&gt;
&lt;br /&gt;
The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6341</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6341"/>
		<updated>2008-04-11T16:01:16Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken link ==&lt;br /&gt;
&lt;br /&gt;
The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;br /&gt;
&lt;br /&gt;
== Expression of the potential under the dock ==&lt;br /&gt;
&lt;br /&gt;
It seems that the eigenfunctions&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{L\pm x}{2L}\psi_{0}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
do not satisfy the Laplace equation. Nor do any linear combination of them so it seems to me that we have to write &amp;lt;math&amp;gt;b_0=c_0=0&amp;lt;/math&amp;gt; which means removing them from the potential expression.&lt;br /&gt;
&lt;br /&gt;
Eigenfunctions &amp;lt;math&amp;gt;\frac{L\pm x}{2L}&amp;lt;/math&amp;gt; work better but they will cause problems for infinite depth...&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6340</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6340"/>
		<updated>2008-04-11T15:59:18Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: Expression of the potential under the dock&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken link ==&lt;br /&gt;
&lt;br /&gt;
The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;br /&gt;
&lt;br /&gt;
== Expression of the potential under the dock ==&lt;br /&gt;
&lt;br /&gt;
It seems that the eigenfunctions&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{L\pm x}{2L}\psi_{0}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
do not satisfy the Laplace equation. Nor do any linear combination of them so it seems to me that we have to write &amp;lt;math&amp;gt;b_0=c_0=0&amp;lt;/math&amp;gt; which means removing them from the potential expression.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6339</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6339"/>
		<updated>2008-04-11T15:55:53Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Broken link ==&lt;br /&gt;
&lt;br /&gt;
The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6338</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6338"/>
		<updated>2008-04-11T15:55:06Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;br /&gt;
&lt;br /&gt;
test&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6337</id>
		<title>Talk:Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Talk:Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6337"/>
		<updated>2008-04-11T15:22:14Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The link for the finite.m file is broken. Or maybe the file doesn&#039;t exist yet.&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6336</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6336"/>
		<updated>2008-04-11T15:21:23Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Matlab Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{x+L}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L-x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b_m&amp;lt;/math&amp;gt; are the coefficients under the ice&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. &lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=1}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/finite_dock.m finite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6335</id>
		<title>Eigenfunction Matching for a Finite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Finite_Dock&amp;diff=6335"/>
		<updated>2008-04-11T15:21:05Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Matlab Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
The problems consists of a region to the left and right&lt;br /&gt;
with a free surface and a middle region with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simple problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The theory is based on [[Eigenfunction Matching for a Semi-Infinite Dock]] and this should&lt;br /&gt;
be consulted for many details.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x &amp;lt;-L, {\rm or} \, x&amp;gt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,-L&amp;lt;x&amp;lt;L,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the three regions, exactly&lt;br /&gt;
as for the [[Eigenfunction Matching for a Semi-Infinite Dock]]. &lt;br /&gt;
The potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{k_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=b_0 \frac{x+L}{2L}\psi_{0}(z) + \sum_{m=1}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
+c_0 \frac{L-x}{2L}\psi_{0}(z)  + \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\kappa_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-k_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;c_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water regions to the &lt;br /&gt;
left and right and &amp;lt;math&amp;gt;b_m&amp;lt;/math&amp;gt; are the coefficients under the ice&lt;br /&gt;
covered region. We have an incident wave from the left. &lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&amp;lt;math&amp;gt;k_n&amp;lt;/math&amp;gt; are the roots of the &lt;br /&gt;
[[Dispersion Relation for a Free Surface]]. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. &lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  = \frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=\pm L&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=1}^{\infty}b_{m}\psi_{m}(z) + \sum_{m=0}^{\infty}c_{m}\psi_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z) - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)e^{-2L\kappa_m} + \sum_{m=1}^{\infty}c_{m}\psi_{m}(z)&lt;br /&gt;
=\sum_{m=0}^{\infty}d_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\frac{b_0}{2L}\psi_0(z) -\sum_{m=1}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)e^{-2L\kappa_m} - \frac{c_0}{2L}\psi_0(z)+\sum_{m=1}^{\infty}c_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
= -\sum_{m=0}^{\infty}d_{m} k_m\phi_{m}\left(  z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=1}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 = b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} &lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=1}^{\infty}b_{m}B_{ml}e^{-2L\kappa_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
b_0 \frac{B_{0l}}{2L} - \sum_{m=1}^{\infty}b_{m}\kappa_{m}B_{ml} e^{-2L\kappa_m}&lt;br /&gt;
- c_0 \frac{B_{0l}}{2L} + \sum_{m=1}^{\infty}c_{m}\kappa_{m}B_{ml} &lt;br /&gt;
= -d_l k_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations.&lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). In some &lt;br /&gt;
ways the solution is now simpler because we do not need to write the zero term separately&lt;br /&gt;
under the dock. &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=e^{-k_{0}(x+L)}\phi_{0}\left(&lt;br /&gt;
z\right) + \sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}(x+L)}\phi_{m}(z), \;\;x&amp;lt;-L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m} (x+L)}\psi_{m}(z)&lt;br /&gt;
++ \sum_{m=1}^{\infty}c_{m}&lt;br /&gt;
e^{\hat{\kappa}_{m} (x-L)}\psi_{m}(z)&lt;br /&gt;
, \;\;-L&amp;lt;x&amp;lt;L&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}d_{m}&lt;br /&gt;
e^{-\hat{k}_{m}(x-L)}\phi_{m}(z), \;\;L&amp;lt;x&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k}_{0}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =  - \sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\sum_{n=0}^{\infty}b_{m}B_{ml}e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{n=0}^{\infty}c_{m}B_{ml}&lt;br /&gt;
=d_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} e^{-2L\hat{\kappa}_m}&lt;br /&gt;
+ \sum_{m=0}^{\infty}c_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
= -d_l \hat{k}_l A_l&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before.&lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the finite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/infinite_dock.m infinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6334</id>
		<title>Eigenfunction Matching for a Semi-Infinite Dock</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=6334"/>
		<updated>2008-04-11T15:20:19Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: /* Matlab Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This is one of the simplest problem in eigenfunction matching. It also is an easy&lt;br /&gt;
problem to understand the [[:Category:Wiener-Hopf|Wiener-Hopf]] and &lt;br /&gt;
[[:Category:Residue Calculus|Residue Calculus]].  The problems consists of a region to the left &lt;br /&gt;
with a free surface and a region to the right with a rigid surface through which&lt;br /&gt;
not flow is possible. &lt;br /&gt;
We begin with the simply problem when the waves are normally incident (so that&lt;br /&gt;
the problem is truly two-dimensional.  We then consider the case when the waves are incident&lt;br /&gt;
at an angle. For the later we give the equations in slightly less detail.&lt;br /&gt;
The case of a [[Finite Dock]] is treated very similarly.&lt;br /&gt;
&lt;br /&gt;
=Governing Equations=&lt;br /&gt;
&lt;br /&gt;
We begin with the [[Frequency Domain Problem]] for a dock which occupies&lt;br /&gt;
the region &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
The water is assumed to have&lt;br /&gt;
constant finite depth &amp;lt;math&amp;gt;h&amp;lt;/math&amp;gt; and the &amp;lt;math&amp;gt;z&amp;lt;/math&amp;gt;-direction points vertically&lt;br /&gt;
upward with the water surface at &amp;lt;math&amp;gt;z=0&amp;lt;/math&amp;gt; and the sea floor at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;. The&lt;br /&gt;
boundary value problem can therefore be expressed as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\Delta\phi=0, \,\, -h&amp;lt;z&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{z}=0, \,\, z=-h,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=\alpha\phi, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\partial_z\phi=0, \,\, z=0,\,x&amp;lt;0,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We&lt;br /&gt;
must also apply the [[Sommerfeld Radiation Condition]]&lt;br /&gt;
as &amp;lt;math&amp;gt;|x|\rightarrow\infty&amp;lt;/math&amp;gt;. This essentially implies&lt;br /&gt;
that the only wave at infinity is propagating away and at negative infinity there is a unit incident wave&lt;br /&gt;
and a wave propagating away.&lt;br /&gt;
&lt;br /&gt;
=Solution Method=&lt;br /&gt;
&lt;br /&gt;
We use [http://en.wikipedia.org/wiki/Separation_of_Variables separation of variables] in the two regions, &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
and &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
 &lt;br /&gt;
== Separation of variables==&lt;br /&gt;
&lt;br /&gt;
We now separate variables and write the potential as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\zeta(z)\rho(x)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Applying Laplace&#039;s equation we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta_{zz}+\mu^{2}\zeta=0.&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
We then use the boundary condition at &amp;lt;math&amp;gt;z=-h&amp;lt;/math&amp;gt;, which is &lt;br /&gt;
the same for all &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; to write&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\zeta=\cos\mu(z+h)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where the separation constant &amp;lt;math&amp;gt;\mu^{2}&amp;lt;/math&amp;gt; must&lt;br /&gt;
satisfy different equations depending on whether &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
or &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt;. For &amp;lt;math&amp;gt;x&amp;lt;0&amp;lt;/math&amp;gt; the boundary condition &lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
k\tan\left(  kh\right)  =-\alpha,\quad x&amp;lt;0\,\,\,(1)&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
which is the [[Dispersion Relation for a Free Surface]]&lt;br /&gt;
and for &amp;lt;math&amp;gt;x&amp;gt;0&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\kappa\tan(\kappa h)=0,\quad&lt;br /&gt;
x&amp;gt;0 \,\,\,(2)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
Note that we have set &amp;lt;math&amp;gt;\mu=k&amp;lt;/math&amp;gt; under the free&lt;br /&gt;
surface and &amp;lt;math&amp;gt;\mu=\kappa&amp;lt;/math&amp;gt; under the plate. We denote the&lt;br /&gt;
positive imaginary solution of (1) by &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; and&lt;br /&gt;
the positive real solutions by &amp;lt;math&amp;gt;k_{m}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq1&amp;lt;/math&amp;gt;. The solutions of&lt;br /&gt;
(2) are&lt;br /&gt;
&amp;lt;math&amp;gt;\kappa_{m}=m\pi/h&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m\geq 0&amp;lt;/math&amp;gt;. We define&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{m}\left(  z\right)  =\frac{\cos k_{m}(z+h)}{\cos k_{m}h},\quad m\geq0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the open&lt;br /&gt;
water region and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\psi_{m}\left(  z\right)  = \cos\kappa_{m}(z+h),\quad&lt;br /&gt;
m\geq 0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
as the vertical eigenfunction of the potential in the dock&lt;br /&gt;
covered region. For later reference, we note that:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{m}(z)\phi_{n}(z) d z=A_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{m}=\frac{1}{2}\left(  \frac{\cos k_{m}h\sin k_{m}h+k_{m}h}{k_{m}\cos&lt;br /&gt;
^{2}k_{m}h}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\phi_{n}(z)\psi_{m}(z) d z=B_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
B_{mn}=\frac{k_{n}\sin k_{n}h\cos\kappa_{m}h-\kappa_{m}\cos k_{n}h\sin&lt;br /&gt;
\kappa_{m}h}{\left(  \cos k_{n}h\cos\kappa_{m}h\right)  \left(  k_{n}&lt;br /&gt;
^{2}-\kappa_{m}^{2}\right)  }&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\psi_{m}(z)\psi_{n}(z) d z=C_{m}\delta_{mn}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
C_{m}=\frac{1}{2}h,\quad,m\neq 0 \quad \mathrm{and} \quad C_0 = h&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{k_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\kappa_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a_{m}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
are the coefficients of the potential in the open water and&lt;br /&gt;
the plate covered region respectively.&lt;br /&gt;
&lt;br /&gt;
==Incident potential==&lt;br /&gt;
&lt;br /&gt;
The incident potential is a wave of amplitude &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&lt;br /&gt;
in displacement travelling in the positive &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;-direction. &lt;br /&gt;
The incident potential can therefore be written as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi^{\mathrm{I}}  =e^{-k_{0}x}\phi_{0}\left(&lt;br /&gt;
z\right) &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==An infinite dimensional system of equations==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The potential and its derivative must be continuous across the&lt;br /&gt;
transition from open water to the plate covered region. Therefore, the&lt;br /&gt;
potentials and their derivatives at &amp;lt;math&amp;gt;x=0&amp;lt;/math&amp;gt; have to be equal.&lt;br /&gt;
We obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \phi_{m}\left(  z\right) &lt;br /&gt;
=\sum_{m=0}^{\infty}b_{m}\psi_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
 -k_{0}\phi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\phi_{m}\left(  z\right) &lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}\psi&lt;br /&gt;
_{m}(z)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
for each &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&lt;br /&gt;
We solve these equations by multiplying both equations by&lt;br /&gt;
&amp;lt;math&amp;gt;\phi_{l}(z)&amp;lt;/math&amp;gt; and integrating from &amp;lt;math&amp;gt;-h&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;0&amp;lt;/math&amp;gt; to obtain:&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}\,\,\,(3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-k_{0}A_{0}\delta_{0l}+a_{l}k_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\kappa_{m}B_{ml} \,\,\,(4)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
If we mutiple equation (3) by &amp;lt;math&amp;gt;k_l&amp;lt;/math&amp;gt; and subtract equation (4)&lt;br /&gt;
we obtain &lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
2k_{0}A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
This equation gives the required equations to solve for the&lt;br /&gt;
coefficients of the water velocity potential in the dock covered region.&lt;br /&gt;
&lt;br /&gt;
=Numerical Solution=&lt;br /&gt;
&lt;br /&gt;
To solve the system of equations (10) we set the upper limit of &amp;lt;math&amp;gt;l&amp;lt;/math&amp;gt; to&lt;br /&gt;
be &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt;. We then simply need to solve the linear system of equations. &lt;br /&gt;
&lt;br /&gt;
= Solution with Waves Incident at an Angle =&lt;br /&gt;
&lt;br /&gt;
We can consider the problem when the waves are incident at an angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;. In this &lt;br /&gt;
case we have the wavenumber in the &amp;lt;math&amp;gt;y&amp;lt;/math&amp;gt; direction is &amp;lt;math&amp;gt;k_y = \sin\theta k_0&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;k_0&amp;lt;/math&amp;gt; is as defined previously (note that &amp;lt;math&amp;gt;k_y&amp;lt;/math&amp;gt; is imaginary). &lt;br /&gt;
&lt;br /&gt;
This means that the potential is now of the form &amp;lt;math&amp;gt;\phi(x,y,z)=e^{k_y y}\phi(x,z)&amp;lt;/math&amp;gt;&lt;br /&gt;
so that when we separate variables we obtain &lt;br /&gt;
&lt;br /&gt;
Therefore the potential can&lt;br /&gt;
be expanded as&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\phi_{m}(z), \;\;x&amp;lt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\phi(x,z)=\sum_{m=0}^{\infty}b_{m}&lt;br /&gt;
e^{-\hat{\kappa}_{m}x}\psi_{m}(z), \;\;x&amp;gt;0&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;\hat{k}_{m} = \sqrt{k_m^2 + k_y^2}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\hat{\kappa}_{m} = \sqrt{\kappa_m^2 + k_y^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
where we always take the positive real root or the root with positive imaginary part. &lt;br /&gt;
&lt;br /&gt;
The equations are derived almost identically to those above and we obtain&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
A_{0}\delta_{0l}+a_{l}A_{l}&lt;br /&gt;
=\sum_{n=0}^{\infty}b_{m}B_{ml}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
-\hat{k_{0}}A_{0}\delta_{0l}+a_{l}\hat{k}_{l}A_l&lt;br /&gt;
 =-\sum_{m=0}^{\infty}b_{m}\hat{\kappa}_{m}B_{ml} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/center&amp;gt;&lt;br /&gt;
and these are solved exactly as before. &lt;br /&gt;
&lt;br /&gt;
= Matlab Code =&lt;br /&gt;
&lt;br /&gt;
A program to calculate the coefficients for the semi-infinite dock problems can be found here&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/semiinfinite_dock.m semiinfinite_dock.m]&lt;br /&gt;
&lt;br /&gt;
== Additional code ==&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
[http://www.math.auckland.ac.nz/~meylan/code/dispersion_free_surface.m dispersion_free_surface.m]&lt;br /&gt;
to run&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;br /&gt;
[[Category:Pages with Matlab Code]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=User:F._Bonnefoy&amp;diff=6327</id>
		<title>User:F. Bonnefoy</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=User:F._Bonnefoy&amp;diff=6327"/>
		<updated>2008-04-06T22:48:52Z</updated>

		<summary type="html">&lt;p&gt;F. Bonnefoy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[ F. Bonnefoy]]&lt;/div&gt;</summary>
		<author><name>F. Bonnefoy</name></author>
	</entry>
</feed>