CellSize(mesh) value for each mesh element
4 months ago by
the CellSize() method returns you a ufl object of the mesh sizes to easily implement in your variational forms but is not iterable. To get what you are after, consider the following MWE
from dolfin import * mesh = UnitSquareMesh(2,2) # Iterate over cells to get circumradius/area/... h =  for cell in cells(mesh): h.append(cell.circumradius()) print(h)
Please login to add an answer/comment or follow this question.