4.3. Creating custom meshes
So far, we only used predefined mesh classes, namely the LineMesh and RectangularQuadMesh. In general, the problem to solve has a more intricate geometry, and the mesh has to be created by the user. This section will show how to create a custom mesh, either by specifying each element by hand or by using pyoomph’s interface to the mesh generator Gmsh (gmsh.info).