Initialize a MeshFunction with the values contained in a file. The output meshfunc is an object which contains a representation of the mesh function in filename which can be used to mark subdomains or facets where Dirichlet boundary conditions are to be applied. Optionally, you can set a label identifying the type of markers, in order to use meshfunc to mark subdomains in BilinearForm or LinearForm. Three labels are recognized: dx for cell markers, ds for exterior facets and dS for interior facets. With the third invocation listed above it is possible to initialize a mesh function of topological dimension dim on Mesh, setting all of its values to value, which is an integer.
See also: DirichletBC, save, BilinearForm, LinearForm, mark.
Package: fem-fenics