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

Obtaining cell data after uploading a XML mesh

+1 vote

I have a mesh with data on each cell. I need to get these data and store them in a array.
For each cell, I have something like:

I'd like to get the value "14" and then save it..
I'm trying with functions like get_cell_data() or get_value() but it doesn't work

Thanks

Cristina

asked Jul 15, 2014 by MCri FEniCS User (1,120 points)

1 Answer

+2 votes
 
Best answer

Use a MeshFunction. Looks through the demos for examples.

answered Jul 23, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
selected Jul 23, 2014 by MCri
...