Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::geometry::MeshTag< Dim, IndexType > Struct Template Reference

A structure to store tags for different parts of a mesh. More...

#include <mesh_base.hpp>

Public Types

using TagLabel = std::string
 < The name of the tag (e.g., "inlet_boundary").
using TagType = IndexType
 A table to store, for each tag name, a list of tag values.
using TagTable = std::unordered_map<TagLabel, std::vector<TagType>>
 An array of tag tables, one for each dimension from 0 (vertices) to Dim (cells).

Public Attributes

std::array< TagTable, Dim+1 > tags

Detailed Description

template<std::size_t Dim, typename IndexType>
struct vulpes::geometry::MeshTag< Dim, IndexType >

A structure to store tags for different parts of a mesh.

Tags are like labels that you can attach to mesh entities (like vertices, facets, or cells). This is useful for identifying specific regions, like boundaries or different materials.

Template Parameters
DimThe dimension of the mesh entities being tagged.
IndexTypeThe type used for tagging.

Member Typedef Documentation

◆ TagLabel

template<std::size_t Dim, typename IndexType>
using vulpes::geometry::MeshTag< Dim, IndexType >::TagLabel = std::string

< The name of the tag (e.g., "inlet_boundary").

The value of the tag (e.g., an integer ID).

◆ TagTable

template<std::size_t Dim, typename IndexType>
using vulpes::geometry::MeshTag< Dim, IndexType >::TagTable = std::unordered_map<TagLabel, std::vector<TagType>>

An array of tag tables, one for each dimension from 0 (vertices) to Dim (cells).

◆ TagType

template<std::size_t Dim, typename IndexType>
using vulpes::geometry::MeshTag< Dim, IndexType >::TagType = IndexType

A table to store, for each tag name, a list of tag values.

Member Data Documentation

◆ tags

template<std::size_t Dim, typename IndexType>
std::array<TagTable, Dim + 1> vulpes::geometry::MeshTag< Dim, IndexType >::tags

The documentation for this struct was generated from the following file: