The first order free surface boundary conditions can be written in a general, regardless whether the convective velocity has been linearized or not, as follows
(2.536)\[\begin{aligned}
& \frac{\partial \phi}{\partial t} + \boldsymbol{U} \cdot \nabla_h \phi + \frac{P_{fs}}{\rho } + g η + R = 0
\end{aligned}\]
(2.537)\[\begin{aligned}
& \frac{\partial η}{\partial t} + \boldsymbol{U} \cdot \nabla_h η - \frac{\partial \phi}{\partial z} + S = 0 & \text{in } z = 0
\end{aligned}\]
Where \(R\) and \(S\) represent some remaining terms. The numerical schemes adopted for solving the kinematic-dynamic free surface boundary conditions are based on Adams-Bashforth-Moulton schemes, using an explicit scheme for the kinematic condition, and implicit one for the dynamic condition. Then \(\phi^{n+1}\) is imposed as a Dirichlet boundary condition. The schemes read as follows:
(2.538)\[\begin{aligned}
& \phi^{n+1} + \Delta t \left( \boldsymbol{U} \cdot \nabla_h \phi \right)^{n+1} = \phi^n - \Delta t \left(\frac{1}{\rho } P_{fs}^{n+1} - g η^{n+1} - R^{n+1} \right) & \text{in } z = 0
\end{aligned}\]
(2.539)\[\begin{aligned}
& η^{n+1} = η^n - \Delta t \left( \boldsymbol{U} \cdot \nabla_h η \right)^n + \Delta t \left(\phi_z^n - S^n \right) & \text{in } z = 0
\end{aligned}\]
where \(\boldsymbol{U}\) is the convective velocity. The convective term is obtained by differentiating along streamlines:
where \(\partial _L\) denotes the derivative along the streamline. This streamline derivative is estimated using a two points upstream and one point downstream differential operator. Figure 5 shows the tracing of the streamline at node \(C\). The left \((-1)\) and forward left \((-2)\) points are the upstream points, while the right \((1)\) point corresponds to the downstream point. The values of the scattered velocity potential \(\phi\) and scattered free surface elevation \(η\) at \(-1\), \(-2\) and \(1\) points are obtained by linear interpolation between the nodes of the edges where they lie on. The stream line differential operator reads as:
where \(\phi _1\), \(\phi _{-1}\), \(\phi _{-2}\) are interpolated between \((\phi{_1a},\phi{_1b} )\), \((\phi_{-1a},\phi_{-1b} )\), and \((\phi_{-2a},\phi_{-2b} )\) respectively. In matrix form:
(2.544)\[\begin{aligned}
& \left( \overline{\overline{\boldsymbol{I}}} + \Delta t \overline{\overline{\boldsymbol{W}}}^{n+1} \right) \phi^{n+1} = \overline{\overline{\boldsymbol{I}}} \left( \phi^n - \Delta t \left( \frac{1}{\rho } P_{fs}^{n+1} - g η^{n+1} - R^{n+1} \right) \right) & \text{in } z = 0
\end{aligned}\]
(2.545)\[\begin{aligned}
& \overline{\overline{\boldsymbol{I}}} η^{n+1} = \left( \overline{\overline{\boldsymbol{I}}} - \Delta t \overline{\overline{\boldsymbol{W}}}^n \right) η^n + \Delta t \left( \phi_z^n - S^n \right) & \text{in } z = 0
\end{aligned}\]
Where \(\overline{\overline{\boldsymbol{W}}}\) is the streamline convective matrix, and \(\overline{\overline{\boldsymbol{I}}}\) is the identity matrix. The stencils are obtained using Taylor series expansion to impose a second order finite difference scheme along the streamline. That is to say, solving the following system of equations:
where \(\overline{\overline{\boldsymbol{L}^*}}\) is the standard laplacian matrix modified to account for the left hand side of Eq.(5 7), \(\boldsymbol{b}^(Z_0 )\) is a vector accounting for the right hand side of Eq. (5 7), and \(\boldsymbol{b}^B\) and \(\boldsymbol{b}^R\) are the vectors resulting of integrating the corresponding boundary condition terms.
Alternatively, a SUPG stabilization scheme is also available in SeaFEM for the integration of the free surface boundary conditions. Both, the dynamic and kinematic boundary conditions can be seen as a convection-reaction equation:
where \(({U^e})^{n+\theta}\) is the average convective velocity within the element, and \((U^e )^{n+α} = \sum_{k_e}N^{k_e } U_{k_e}^{n+α}\) . Reordering terms:
where \(\overline{\overline{\boldsymbol{L}^*}}\) is the standard laplacian matrix modified to account for the left hand side of Eq. (5 19), \(\boldsymbol{b}^(Z_0 )\) is a vector accounting for the right hand side of Eq. (5 19), and \(\boldsymbol{b}^B\) and \(\boldsymbol{b}^R\) are the vectors resulting of integrating the corresponding boundary condition terms.
All the numerical models for the wave diffraction-radiation problem implemented in SeaFEM are based on [1] and [20].