How to locally refine a given region?
Hello, I couldn't find a similar issue.
How can I refine the inner region by splitting elements? I need the mesh to be conformal before splitting.
Given the example:
import gmsh
import sys
gmsh.initialize()
gmsh.model.add("geo")
b, c = 1, 3
rec_1 = gmsh.model.occ.addRectangle(-c, -c, 0, 2 * c, 2 * c)
rec_2 = gmsh.model.occ.addRectangle(-b, -b, 0, 2 * b, 2 * b)
gmsh.model.occ.removeAllDuplicates()
gmsh.model.occ.synchronize()
gmsh.model.mesh.generate(2)
gmsh.fltk.run()
gmsh.write("mesh.msh")
gmsh.finalize()