Is there a tool to mesh the transition layer in between smaller and bigger transfinite layers
I would like to create a 2D mesh that looks like the front surface of the 3D mesh below (or just the 2 D mesh). Notice that a large part of both meshes can be created simply with transfinite interpolation, but I am having trouble coming up with an easy way to mesh the transition layers (the trapezoid-shaped elements, which I believe are called transition templates). I would really appreciate if anyone here can offer some ideas! Or there is simply no easy way to do this with Gmsh? Thanks!
The last picture shows the best that I have managed to do so far. One problem of this mesh is that at the right corner of the transition layer, there is a triangle element but I need a full quad mesh. I tried to set Mesh.RecombinationAlgorithm
to 2 or 3, but I am getting the error: 1D mesh cannot be divided by 2
. I attach my python script for generating the mesh here.