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

what kind of mesh data file can fenics import?

0 votes

Hi all,
I am new to use fenics.
I have a mesh data file in ascii format:

Node x y z
1 0.0 0.0 0.0
2 0.0 1.0 0.0
3 1.5 0.1 0.0
...

Ele nodes
1 1 3 6 7
2 3 4 5 9
3 6 7 2 10
....

How can I import the file into fenics?

Thanks a lot in advance.

ouyang

asked Jun 18, 2014 by zxo102 FEniCS Novice (120 points)

1 Answer

+3 votes

I don't immediately recognize that particular kind of mesh format, but have a look at the command line tool dolfin-convert.

If it's not supported, it's quite simple to use the MeshEditor-class.

answered Jun 18, 2014 by Øyvind Evju FEniCS Expert (17,700 points)
...