MeshData¶
-
class
dolfin.cpp.mesh.
MeshData
(*args)¶ Bases:
dolfin.cpp.common.Variable
The class MeshData is a container for auxiliary mesh data, represented either as arrays or maps. Each dataset is identified by a unique user-specified string. Only std::size_t-valued data are currently supported.
Auxiliary mesh data may be attached to a mesh by users as a convenient way to store data associated with a mesh. It is also used internally by DOLFIN to communicate data associated with meshes. The following named mesh data are recognized by DOLFIN:
Facet orientation (used for assembly over interior facets)
- “facet_orientation” - _std:vector_ <std::size_t> of dimension D - 1
Sub meshes (used by the class SubMesh)
- “parent_vertex_indices” - _std::vector_ <std::size_t> of dimension 0
Note to developers: use underscore in names in place of spaces.
Constructor
-
array
()¶ Overloaded versions
array(name, dim)
Return array with given name (returning zero if data is not available)
- Arguments
- name (str)
The name of the array.
- Returns
- numpy.array(int)
The array.
array(name, dim)
Return array with given name (returning zero if data is not available)
- Arguments
- name (str)
The name of the array.
- Returns
- numpy.array(int)
The array.
-
clear
()¶ Clear all data
-
create_array
()¶
-
create_mesh_function
()¶ Overloaded versions
create_mesh_function(name)
This function is no longer supported. It is retained to print an informative error message. It will be removed in the future.
create_mesh_function(name, dim)
This function is no longer supported. It is retained to print an informative error message. It will be removed in the future.
-
erase_array
()¶ Erase array with given name
- Arguments
- name (str)
- The name of the array.
-
exists
()¶ Check is array exists
- Arguments
- name (str)
- The name of the array.
- Returns
- bool
- True is array exists, false otherwise.
-
mesh_function
()¶ This function is no longer supported. It is retained to print an informative error message. It will be removed in the future.
-
thisown
¶ The membership flag