[Gmsh] Adding data to mesh

Dmitrijs Ledkovs dmitrij.ledkov at ubuntu.com
Thu May 6 13:51:55 CEST 2010


Hello

I can generate nice meshes using gmesh. And I can export it to vtk.
I'm struggling with getting the mesh cells so that I can add useful
data to them and iterate over it to do a simulation and spit out the
mesh with data associated with each node for post-processing and
visualisation.

Can someone point me to a python/numpy example on how to get the mesh,
add data, iterate over connectivity map & changing data, exporting the
results?