FacetArea

class dolfin.functions.specialfunctions.FacetArea(mesh)

Bases: dolfin.functions.expression.Expression, ufl.coefficient.Coefficient, dolfin.cpp.function.FacetArea

This function represents the area/length of a cell facet on a given mesh.

Create function that evaluates to the facet area/length on each facet.

Arguments
mesh
a Mesh.

Example of usage

mesh = UnitSquare(4,4)
fa = FacetArea(mesh)