Origin of the Finite Element Formulation#
This section describes the FEM formulation used within Lethe. Starting from the strong form of the equations, we obtain the weak-form. We then briefly discuss the challenges associated with solving the Navier-Stokes equations before we introduce the two approaches that are available in Lethe to solve them.
Starting from The Incompressible Navier-Stokes equations:
We consider a domain \(\Omega\) of contour \(\Gamma\). Without loss of generality, we assume Dirichlet boundary conditions or zero stress conditions on \(\Gamma\). We multiply by two test functions \(q\) and \(\mathbf{v}=v_k\) for pressure and velocity respectively and integrate over the domain \(\Omega\). The resulting set of equation is:
Because we want the pressure to be in \(\mathcal{L}^2\) and the velocity to be in \(\mathcal{H}^1\), we integrate by parts the viscous stress and the pressure gradient terms. We thus obtain the weak form:
where \(\delta_{lk}\) is the Kronecker delta and \(n_l\) is the outward pointing normal vector to a surface. Since we assume Dirichlet boundary conditions or zero stress conditions on \(\Gamma\), this term may be discarded. Thus, when no boundary condition is applied, the boundary condition applied is:
which can be seen as an outlet boundary condition where the normal stress is zero. In essence, this can be used to approximately impose an outlet boundary condition with a zero average pressure. This weak form is non-linear because of \(u_l \partial_l u_k\) term.
Solving the Non-linear Problem#
To solve non-linear problem, Lethe uses the Newton-Raphson method. This method proceeds by solving recurrently for the correction vector \(\mathbf{\delta x}\) which is obtained by solving the following system:
For the incompressible Navier-Stokes equation, this leads to a saddle point problem of the form:
The residual is:
We recall that in FEM, the pressure \(p\) and the velocity \(u_k\) are obtained from the discrete nodal values from the following:
where \(\psi_j\) is the \(j\) interpolation function for pressure and \(\phi_{k,j}\) is the \(j\) interpolation function for the \(k\) component of the velocity. \(p_j\) is the nodal value of pressure and \(u_{k,j}\) is the nodal value of the \(k\) component of the velocity.
The Jacobian is: