MeshFunction¶

class dolfin.cpp.mesh.MeshFunction

Bases: object

A MeshFunction is a function that can be evaluated at a set of mesh entities. A MeshFunction is discrete and is only defined at the set of mesh entities of a fixed topological dimension. A MeshFunction may for example be used to store a global numbering scheme for the entities of a (parallel) mesh, marking sub domains or boolean markers for mesh refinement.
Arguments
tp (str)
String defining the type of the MeshFunction Allowed: ‘int’, ‘size_t’, ‘double’, and ‘bool’
mesh (_Mesh_)
A DOLFIN mesh. Optional.
dim (unsigned int)
The topological dimension of the MeshFunction. Optional.
filename (str)
A filename with a stored MeshFunction. Optional.