<?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=DaveSmith</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=DaveSmith"/>
	<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php/Special:Contributions/DaveSmith"/>
	<updated>2026-06-13T03:17:46Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=15375</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=15375"/>
		<updated>2026-05-21T00:50:36Z</updated>

		<summary type="html">&lt;p&gt;DaveSmith: /* Solution with Waves Incident at an Angle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{complete pages}}&lt;br /&gt;
&lt;br /&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|Submerged Semi-Infinite 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;
\partial_z\phi=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;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 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 in two dimensions}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a free surface}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a dock}}&lt;br /&gt;
&lt;br /&gt;
{{free surface dock relations}}&lt;br /&gt;
&lt;br /&gt;
=== Expansion of the potential === &lt;br /&gt;
&lt;br /&gt;
We need to apply some boundary conditions at plus and minus infinity, &lt;br /&gt;
where are essentially the the solution cannot grow. This means that we&lt;br /&gt;
only have the positive (or negative) roots of the dispersion equation.&lt;br /&gt;
However, it does not help us with the purely imaginary root. Here we&lt;br /&gt;
must use a different condition, essentially identifying one solution&lt;br /&gt;
as the incoming wave and the other as the outgoing wave. &lt;br /&gt;
&lt;br /&gt;
Therefore the scattered potential (without the incident wave, which will&lt;br /&gt;
be added later) 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}\chi_{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 for two dimensions}}&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;
\chi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \chi_{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}\chi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\chi_{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;m&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=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 multiply 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;
(k_{0}+k_l)A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} \,\,\,(5)&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 (3) and (5), 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;. This resulting system can be expressed in the block matrix form below,&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&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;. &lt;br /&gt;
&lt;br /&gt;
{{incident angle}}&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^{-\hat{k}_0x}\chi_0(z)+\sum_{m=0}^{\infty}a_{m}e^{\hat{k}_{m}x}\chi_{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;
{{semiinfinite_dock code}}&lt;br /&gt;
&lt;br /&gt;
=== Additional code ===&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
* {{free surface dispersion equation code}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;/div&gt;</summary>
		<author><name>DaveSmith</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=15374</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=15374"/>
		<updated>2026-05-21T00:49:54Z</updated>

		<summary type="html">&lt;p&gt;DaveSmith: /* An infinite dimensional system of equations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{complete pages}}&lt;br /&gt;
&lt;br /&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|Submerged Semi-Infinite 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;
\partial_z\phi=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;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 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 in two dimensions}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a free surface}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a dock}}&lt;br /&gt;
&lt;br /&gt;
{{free surface dock relations}}&lt;br /&gt;
&lt;br /&gt;
=== Expansion of the potential === &lt;br /&gt;
&lt;br /&gt;
We need to apply some boundary conditions at plus and minus infinity, &lt;br /&gt;
where are essentially the the solution cannot grow. This means that we&lt;br /&gt;
only have the positive (or negative) roots of the dispersion equation.&lt;br /&gt;
However, it does not help us with the purely imaginary root. Here we&lt;br /&gt;
must use a different condition, essentially identifying one solution&lt;br /&gt;
as the incoming wave and the other as the outgoing wave. &lt;br /&gt;
&lt;br /&gt;
Therefore the scattered potential (without the incident wave, which will&lt;br /&gt;
be added later) 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}\chi_{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 for two dimensions}}&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;
\chi_{0}\left(  z\right) + \sum_{m=0}^{\infty}&lt;br /&gt;
a_{m} \chi_{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}\chi_{0}\left(  z\right)  +\sum&lt;br /&gt;
_{m=0}^{\infty} a_{m}k_{m}\chi_{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;m&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=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 multiply 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;
(k_{0}+k_l)A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} \,\,\,(5)&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 (3) and (5), 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;. This resulting system can be expressed in the block matrix form below,&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&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;. &lt;br /&gt;
&lt;br /&gt;
{{incident angle}}&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^{-\hat{k}_0x}\phi_0(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;
{{semiinfinite_dock code}}&lt;br /&gt;
&lt;br /&gt;
=== Additional code ===&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
* {{free surface dispersion equation code}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;/div&gt;</summary>
		<author><name>DaveSmith</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Template:Free_surface_dock_relations&amp;diff=15373</id>
		<title>Template:Free surface dock relations</title>
		<link rel="alternate" type="text/html" href="https://www.wikiwaves.org/index.php?title=Template:Free_surface_dock_relations&amp;diff=15373"/>
		<updated>2026-05-21T00:48:56Z</updated>

		<summary type="html">&lt;p&gt;DaveSmith: /* Inner product between free surface and dock modes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Inner product between free surface and dock modes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\int\nolimits_{-h}^{0}\chi_{n}(z)\psi_{m}(z) \mathrm{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\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;/div&gt;</summary>
		<author><name>DaveSmith</name></author>
	</entry>
	<entry>
		<id>https://www.wikiwaves.org/index.php?title=Eigenfunction_Matching_for_a_Semi-Infinite_Dock&amp;diff=15372</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=15372"/>
		<updated>2026-05-21T00:48:35Z</updated>

		<summary type="html">&lt;p&gt;DaveSmith: /* Expansion of the potential */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{complete pages}}&lt;br /&gt;
&lt;br /&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|Submerged Semi-Infinite 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;
\partial_z\phi=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;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 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 in two dimensions}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a free surface}}&lt;br /&gt;
&lt;br /&gt;
{{separation of variables for a dock}}&lt;br /&gt;
&lt;br /&gt;
{{free surface dock relations}}&lt;br /&gt;
&lt;br /&gt;
=== Expansion of the potential === &lt;br /&gt;
&lt;br /&gt;
We need to apply some boundary conditions at plus and minus infinity, &lt;br /&gt;
where are essentially the the solution cannot grow. This means that we&lt;br /&gt;
only have the positive (or negative) roots of the dispersion equation.&lt;br /&gt;
However, it does not help us with the purely imaginary root. Here we&lt;br /&gt;
must use a different condition, essentially identifying one solution&lt;br /&gt;
as the incoming wave and the other as the outgoing wave. &lt;br /&gt;
&lt;br /&gt;
Therefore the scattered potential (without the incident wave, which will&lt;br /&gt;
be added later) 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}\chi_{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 for two dimensions}}&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;m&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=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 mutiply 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;
(k_{0}+k_l)A_{0}\delta_{0l}&lt;br /&gt;
 =\sum_{m=0}^{\infty}b_{m}(k_l + \kappa_{m})B_{ml} \,\,\,(5)&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 (3) and (5), 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;. This resulting system can be expressed in the block matrix form below,&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&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;. &lt;br /&gt;
&lt;br /&gt;
{{incident angle}}&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^{-\hat{k}_0x}\phi_0(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;
{{semiinfinite_dock code}}&lt;br /&gt;
&lt;br /&gt;
=== Additional code ===&lt;br /&gt;
&lt;br /&gt;
This program requires&lt;br /&gt;
* {{free surface dispersion equation code}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Eigenfunction Matching Method]]&lt;/div&gt;</summary>
		<author><name>DaveSmith</name></author>
	</entry>
</feed>