I am trying to mesh a 2D rectangular region with unstructured elements but I would like to specify a distribution of grid points along one border.
I havve created the border and am using the buildmesh command. However, I can see that this command calls for an integer, i.e. the number of segments to discretise the border. How can I input an array containing the coordinate locations of the grid points? I have seen this is possible with the square command but that is for structured meshes.
The keyword triangulate allows you to create a mesh from a given set of point. I think you could combine buildmesh+triangulate: create a mesh using buildmesh, throw away the point at the boundary, set them to the value you want, and create the final mesh with triangulate.