Bases: dolfin.cpp.common.Variable, dolfin.cpp.mesh.HierarchicalMeshFunctionSizet
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.
Overloaded versions
MeshFunction()
Create empty mesh function
MeshFunction(mesh)
Create empty mesh function on given mesh
The mesh to create mesh function on.
MeshFunction(mesh)
Create empty mesh function on given mesh (shared_ptr version)
The mesh to create mesh function on.
MeshFunction(mesh, dim)
Create mesh function of given dimension on given mesh
The mesh to create mesh function on.
The mesh entity dimension for the mesh function.
MeshFunction(mesh, dim)
Create mesh function of given dimension on given mesh (shared_ptr version)
The mesh to create mesh function on.
The mesh entity dimension for the mesh function.
MeshFunction(mesh, dim, value)
Create mesh of given dimension on given mesh and initialize to a value
The mesh to create mesh function on.
The mesh entity dimension.
The value.
MeshFunction(mesh, dim, value)
Create mesh of given dimension on given mesh and initialize to a value (shared_ptr version)
The mesh to create mesh function on.
The mesh entity dimension.
The value.
MeshFunction(mesh, filename)
Create function from data file
The mesh to create mesh function on.
The filename to create mesh function from.
MeshFunction(mesh, filename)
Create function from data file (shared_ptr version)
The mesh to create mesh function on.
The filename to create mesh function from.
MeshFunction(mesh, value_collection)
Create function from a MeshValueCollecion
The mesh to create mesh function on.
The mesh value collection for the mesh function data.
MeshFunction(mesh, value_collection)
Create function from a MeshValueCollecion (shared_ptr version)
The mesh to create mesh function on.
The mesh value collection for the mesh function data.
MeshFunction(mesh, dim, domains)
Create function from MeshDomains
The mesh to create mesh function on.
The dimension of the MeshFunction
The domains from which to extract the domain markers
MeshFunction(f)
Copy constructor
The object to be copied.
Return a NumPy array view of the data
Return topological dimension
Return true if empty
Overloaded versions
init(dim)
Initialize mesh function for given topological dimension
The dimension.
init(dim, size)
Initialize mesh function for given topological dimension of given size
The dimension.
The size.
init(mesh, dim)
Initialize mesh function for given topological dimension
The mesh.
The dimension.
init(mesh, dim)
Initialize mesh function for given topological dimension (shared_ptr version)
The mesh.
The dimension.
init(mesh, dim, size)
Initialize mesh function for given topological dimension of given size
The mesh.
The dimension.
The size.
init(mesh, dim, size)
Initialize mesh function for given topological dimension of given size (shared_ptr version)
The mesh.
The dimension.
The size.
Set all values to given value
Overloaded versions
set_value(index, value)
Set value at given index
The index.
The value.
set_value(index, value, mesh)
Compatibility function for use in SubDomains
Set values
Return size (number of entities)
The membership flag
Returns an id that UFL can use to decide if two objects are the same.