### Unstructured mesh with mshr

204
views
0
5 months ago by
Hello everyone,

I would like to create a  simple unstructured mesh with mshr and I am using
mshr::Rectangle rectangle(dolfin::Point(-1.0,-1.0),dolfin::Point(1.0,1.0));mshr::CSGCGALMeshGenerator2D generator;        dolfin::Mesh mesh;          generator.generate(rectangle, mesh);which works fine, but I would like to add a parameter to control the mesh size, and do refinement, how can I do that?

Community: FEniCS Project

2
5 months ago by