Hello I want to model a rectangular plate with a circular hole in the center and then mesh it. Is there anybody here who has done that before?
Have a look at http://geuz.org/gmsh/, it's pretty straight-forward. You can convert the gmsh mesh to dolfin xml using dolfin-convert.
Use the mshr-package (https://bitbucket.org/fenics-project/mshr):
from dolfin import * import mshr domain = mshr.Rectangle(Point(0,0), Point(4,1))-mshr.Circle(Point(2,0.5), 0.2) mesh = mshr.generate_mesh(domain, 60) plot(mesh, interactive=True)
Thank you so much for your help.