Generate 1D mesh from user-defined coordinates

You can use either mshr (an FEniCS module) or external software such as Gmsh /pygmsh, see Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio for plenty of examples on how to use Gmsh.

1 Like