Hi all,

Sorry for simple questions again, what is the simplest way to access cell to vertex data from a mesh. I am going around in circles!

I am looking at the “pyop2” example of computing midpoints of cells

I.e. 

vertices = op2.Set(num_vertices)
cells = op2.Set(num_cells)

cell2vertex = op2.Map(cells, vertices, 3, […])
So I need the data from the mesh to replace […]

Thanks

Tim

Dr Tim Dodwell
Senior Lecturer in Engineering Mathematics
Rm 221 - Harrison Building
College of Engineering, Mathematics & Physical Sciences
University of Exeter
Exeter
Devon
EX4 4PY

mail: t.dodwell(at)exeter.ac.uk
tel: +44 (0)1392 725899
mob: +44 (0)7745 622870
Papers and Pre-prints: @Research-Gate
Citations: @Google-Scholar