I want to find a way to efficiently transfer the number scheme for the boundaries I have specified in GMSH to two submeshes I've generated using the following code:
submesh1 = SubMesh(mesh, subdomains, 1)
subdomain1 = CellFunction("size_t", submesh1)
boundaries1 = FacetFunction("size_t", submesh1)
V1 = FunctionSpace(submesh1, "CG", 1)
dx1 = Measure("dx", domain=submesh1)
submesh2 = SubMesh(mesh, subdomains, 1)
subdomain2 = CellFunction("size_t", submesh2)
boundaries2 = FacetFunction("size_t", submesh2)
V2 = FunctionSpace(submesh2, "CG", 1)
dx2 = Measure("dx", domain=submesh2)
If it helps, I have generated a global mesh in GMSH and I have identified several boundaries--in particular an interfacial boundary between subdomain1 and subdomain2 and two Dirichlet boundaries I want to specify on subdomain 1. Is there an efficient way to do this?
Thanks!