Hi,
starting from a rectangular mesh
from dolfin import *
from mshr impot *
geom1 = Rectangle(Point(0., 0.), Point(100., 10.)
mesh1 = generate_mesh(geom1, 100)
i want to create a second mesh which takes only the central part of the first mesh with the exact same elements and nodes. I tried to define the new geometry as
geom2 = Rectangle(Point(25., 0), Point(75., 10.))
mesh2 = generate_mesh(geom2, 50)
as well as
r1 = Rectangle(Point(0., 0), Point(25., 10.))
r2 = Rectangle(Point(75., 0), Point(100., 10.))
geom3 = geom1 - r1 - r2
mesh3 = generate_mesh(geom3, 50)
but when generating the mesh 2 or 3 the elements are different in position and number.
Is possible to “cut” the central part of the mesh and use it to generate a second mesh?
Thanks in advance