A MeshTags are used to associate mesh entities with values. The entity index (local to process) identifies the entity. MeshTags is a sparse data storage class; it allows tags to be associated with an arbitrary subset of mesh entities. An entity can have only one associated tag.
More...
#include <MeshTags.h>
|
template<typename U , typename V > |
| MeshTags (const std::shared_ptr< const Mesh > &mesh, int dim, U &&indices, V &&values) |
| Create from entities of given dimension on a mesh. More...
|
|
| MeshTags (const MeshTags &tags)=default |
| Copy constructor.
|
|
| MeshTags (MeshTags &&tags)=default |
| Move constructor.
|
|
| ~MeshTags ()=default |
| Destructor.
|
|
MeshTags & | operator= (const MeshTags &tags)=default |
| Move assignment.
|
|
MeshTags & | operator= (MeshTags &&tags)=default |
| Move assignment.
|
|
std::vector< std::int32_t > | find (const T value) const |
| Find all entities with a given tag value. More...
|
|
const std::vector< std::int32_t > & | indices () const |
| Indices of tagged mesh entities (local-to-process). The indices are sorted.
|
|
const std::vector< T > & | values () const |
| Values attached to mesh entities.
|
|
int | dim () const |
| Return topological dimension of tagged entities.
|
|
std::shared_ptr< const Mesh > | mesh () const |
| Return mesh.
|
|
std::size_t | id () const |
| Unique ID of the object.
|
|
|
std::string | name = "mesh_tags" |
| Name.
|
|
template<typename T>
class dolfinx::mesh::MeshTags< T >
A MeshTags are used to associate mesh entities with values. The entity index (local to process) identifies the entity. MeshTags is a sparse data storage class; it allows tags to be associated with an arbitrary subset of mesh entities. An entity can have only one associated tag.
- Template Parameters
-
◆ MeshTags()
template<typename T >
template<typename U , typename V >
Create from entities of given dimension on a mesh.
- Parameters
-
[in] | mesh | The mesh on which the tags are associated |
[in] | dim | Topological dimension of mesh entities to tag |
[in] | indices | std::vector<std::int32> of sorted and unique entity indices (indices local to the process) |
[in] | values | std::vector<T> of values for each index in indices. The size must be equal to the size of indices . |
◆ find()
Find all entities with a given tag value.
- Parameters
-
- Returns
- Indices of tagged entities
The documentation for this class was generated from the following files:
- /build/fenics-dolfinx-OqQhw6/fenics-dolfinx-0.3.0/cpp/dolfinx/io/XDMFFile.h
- /build/fenics-dolfinx-OqQhw6/fenics-dolfinx-0.3.0/cpp/dolfinx/mesh/MeshTags.h