The partial differential equations and their solutions are approximated using the finite element method.
We are using linear wedge elements for all spaces, unless specified otherwise. This is very similar to the implementation in Terra.
Linear wedge (or prism) elements are formed by extruding a linear triangular element in the radial direction. The base triangle lies in the lateral plane (parameterized by \(\xi\), \(\eta\)), while the extrusion occurs along the radial coordinate \(\zeta\).
Lateral reference coordinates:
\[ \xi, \eta \in [0, 1] \]
Radial reference coordinates:
\[ \zeta \in [-1, 1] \]
With
\[ 0 \leq \xi + \eta \leq 1 \]
Lateral:
\[ \begin{align} N^\mathrm{lat}_0 = N^\mathrm{lat}_3 &= 1 - \xi - \eta \\ N^\mathrm{lat}_1 = N^\mathrm{lat}_4 &= \xi \\ N^\mathrm{lat}_2 = N^\mathrm{lat}_5 &= \eta \end{align} \]
Radial:
\[ \begin{align} N^\mathrm{rad}_0 = N^\mathrm{rad}_1 = N^\mathrm{rad}_2 &= \frac{1}{2} ( 1 - \zeta ) \\ N^\mathrm{rad}_3 = N^\mathrm{rad}_4 = N^\mathrm{rad}_5 &= \frac{1}{2} ( 1 + \zeta ) \\ \end{align} \]
Full:
\[ N_i = N^\mathrm{lat}_i N^\mathrm{rad}_i \]
For the Stokes system we employ the stable ( \(P_1\)-iso- \(P_2\), \(P_1\)) finite element pairing, i.e., both the velocity and pressure are discretized with linear wedge elements, with the velocity living on a grid with additional refinement compared to the pressure grid.