Hi Firedrakers, What's the easiest way to get an unstructured mesh of the unit square into Firedrake? Is there a built in mesh? cheers --cjc
Hi Colin, You probably want something like: mesh = UnitSquareMesh(10,10) For anything more unstructured than this you can include an unstructured mesh from Gmsh. mesh = Mesh("/path/to/meshname.node") Hope this helps, Doru ________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [colin.cotter@imperial.ac.uk] Sent: 13 May 2014 11:01 To: firedrake Subject: [firedrake] mesh Hi Firedrakers, What's the easiest way to get an unstructured mesh of the unit square into Firedrake? Is there a built in mesh? cheers --cjc
On 13/05/14 11:01, Cotter, Colin J wrote:
Hi Firedrakers, What's the easiest way to get an unstructured mesh of the unit square into Firedrake? Is there a built in mesh?
Our built in meshes are basically structured (modulo some of the triangles being flipped). So you have to provide us with a mesh. We read gmsh: Mesh('foo.msh') or triangle Mesh('foo.node') or exodusII Mesh('foo.e') or Mesh('foo.exo') Cheers, Lawrence
participants (3)
- 
                
                Bercea, Gheorghe-teodor
- 
                
                Cotter, Colin J
- 
                
                Lawrence Mitchell