High quality meshes adjusted to the simulations’ needs are essential to take advantage of the finite element method. That’s why the mesh generation tool constitutes a crucial part of this model. SLIM relies on the state-of-the-art mesh-generation software GMSH to build meshes whose resolution can depend on a number of different criteria such as:
- the distance from coastlines,
- the square root of the bathymetry,
- the curvature of the bathymetry,
- the curvature of the coastlines,
- the location of a specific region of interest,
- the error measured from a previous simulation.
These different criteria are blended together to create a unique mesh resolution map.
The quality of the simulation strongly depends on the quality of the mesh. By locally increasing the mesh resolution, we can capture small-scale flow features and accurately describe the topography. The animation below shows the impact of the mesh resolution on the representation of the topography, which in turn influences the flow. The coarsest mesh has a 4km resolution that cannot represent all the small islands present in that area. As a result, they are all merged together in a continuous piece of land. By increasing the resolution to 2km, 1km, 500m and finally 250m, we can see how small-scale topographic features start to appear in the mesh and how they influence the flow. In particular, recirculation eddies are only present with a resolution of at least 500m.