This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Mesh Generation

0 votes

Hi,

How do I generate the following mesh in Fenics. My domain is [-1,1]*[-1,1]

I tried the following

mesh = Rectangle(-1,-1,1,1)

but this does not work. Thanks.

asked Nov 9, 2015 by Vivian FEniCS Novice (550 points)

1 Answer

+2 votes
 
Best answer

RectangleMesh(Point(-1,-1),Point(1,1),10,10)

answered Nov 9, 2015 by chris_richardson FEniCS Expert (31,740 points)
selected Nov 10, 2015 by Vivian

That works. Thanks chris!

...