Files
meson-mfem/src/include/serif/discretization/domain/ids/boundary.hpp

24 lines
646 B
C++
Raw Normal View History

#pragma once
#include <string_view>
#include "serif/discretization/domain/concepts.hpp"
// BoundaryID binds a semantic surface (a Boundary) to the integer boundary
// attribute MFEM stores in the mesh file.
//
// BoundaryID<StellarSurfaceBoundary, 1>
// "boundary elements with attribute 1 are the stellar surface"
namespace serif::discretization::domain::ids {
template <IsBoundary BoundaryT, int IdentifierValue>
struct BoundaryID {
using boundary_type = BoundaryT;
static constexpr int ID = IdentifierValue;
};
struct BoundaryDescriptor {
std::string_view name;
int ID;
};
}