specfem::mesh::tags¶
-
template<specfem::dimension::type DimensionTag>
struct tags¶ Struct to store tags for every spectral element.
- Template Parameters:
DimensionTag – Dimension type
Dimension-Specific Specializations¶
-
template<>
struct tags<specfem::dimension::type::dim2>¶ Constructors
-
inline tags(const int nspec)¶
Contrust tags object.
-
tags() = default¶
Default constructor.
Public Members
-
int nspec¶
Total number of spectral elements.
-
inline tags(const int nspec)¶
-
template<>
struct tags<specfem::dimension::type::dim3>¶ Element tagging system for 3D MESHFEM3D spectral elements.
Extracts material classification from MESHFEM3D materials containers and creates tags_container objects for each spectral element. Uses parallel initialization to assign medium and property tags based on material data.
Currently assigns boundary_tag::none to all elements since other boundary conditions are not yet implemented in the MESHFEM3D workflow.
specfem::mesh::materials<specfem::dimension::type::dim3> materials; // ... populate materials ... specfem::mesh::tags<specfem::dimension::type::dim3> tags( nspec, materials);
See also
specfem::mesh::materials::get_material_type
See also
specfem::mesh::impl::tags_container
Data Members
-
int nspec¶
Total number of spectral elements in the mesh.
Constructors
-
tags() = default¶
Default constructor creating empty tags container.
-
tags(const int nspec, specfem::mesh::materials<dimension_tag> &materials)¶
Construct tags from MESHFEM3D materials database.
Extracts material classification (medium and property tags) from the materials container for each element using parallel initialization. Sets all boundary tags to
nonesince other boundary conditions are not yet implemented.See also
specfem::mesh::materials::get_material_type
- Parameters:
nspec – Total number of spectral elements in the mesh
materials – MESHFEM3D materials container with material data
-
int nspec¶