MeshData¶
-
class
dolfin.cpp.mesh.
MeshData
¶ 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.
Friends:
XMLMesh
.Constructor.
-
array
()¶ Return array with given name (returning zero if data is not available)
Parameters: - name (std::string) – (std::string) The name of the array.
- dim (std::size_t) – (std::size_t) Dimension.
Return type: std::vector< std::size_t > &
Returns: std::vector<std::size_t> The array.
-
clear
()¶ Clear all data.
Return type: void
-
create_array
()¶ Create array (vector) with given name and size
Parameters: - name (std::string) – (std::string) The name of the array.
- dim (std::size_t) – (std::size_t) Dimension.
Return type: std::vector< std::size_t > &
Returns: std::vector<std::size_t> The array.
-
erase_array
()¶ Erase array with given name
Parameters: - std::string name (const) – (std::string) The name of the array.
- dim (std::size_t) – (std::size_t) Dimension.
Return type: void
-
exists
()¶ Check is array exists
Parameters: - name (std::string) – (std::string) The name of the array.
- dim (std::size_t) – (std::size_t)
Return type: Returns: bool True is array exists, false otherwise.
-
thisown
¶ The membership flag