CellDiameter

dolfin.functions.specialfunctions.CellDiameter(mesh)

Return function cell diameter for given mesh.

Note that diameter of cell \(K\) is defined as \(\sup_{\mathbf{x,y}\in K} |\mathbf{x-y}|\).

Arguments
mesh
a Mesh.

Example of usage

mesh = UnitSquare(4,4)
h = CellDiameter(mesh)