Stores face adjacency for the top-dimensional cells of a 1D, 2D, or 3D mesh.
More...
#include <dg_connectivity.hpp>
|
|
static constexpr std::size_t | no_neighbor = std::numeric_limits<std::size_t>::max() |
| | Sentinel for missing neighbor cell and face indices.
|
Stores face adjacency for the top-dimensional cells of a 1D, 2D, or 3D mesh.
Mesh topology supplies the neighbor indices. Interior faces also store a vertex permutation so a numerical flux can align data from both sides of the interface. Connections follow the cell type's local face order and are indexed by the original mesh cell index.
◆ DGConnectivity()
| oiseau::dg::DGConnectivity::DGConnectivity |
( |
mesh::Mesh & | mesh | ) |
|
|
explicit |
Calculates mesh adjacency and builds DG face connections.
Updates the source topology through Topology::calculate_connectivity(). Rebuild after changing the mesh topology.
- Parameters
-
| mesh | Source mesh. It must outlive this object. |
- Exceptions
-
| std::invalid_argument | If the mesh dimension is outside 1 through 3 or its connectivity is invalid. |
| std::out_of_range | If adjacency references an invalid neighbor cell or face. |
| std::runtime_error | If the topology's adjacency counts differ from the cell's face count. |
◆ faces()
Returns the face connections for a mesh cell in local face order.
- Parameters
-
| mesh_cell_index | Index in the source mesh. |
- Returns
- A view of the stored connections. Lower-dimensional cells return an empty span.
- Exceptions
-
| std::out_of_range | If the mesh cell index is invalid. |
◆ mesh()
| const mesh::Mesh & oiseau::dg::DGConnectivity::mesh |
( |
| ) |
const |
|
inline |
- Returns
- A const reference to the source mesh.
The documentation for this class was generated from the following files:
- /__w/oiseau/oiseau/src/oiseau/dg/dg_connectivity.hpp
- /__w/oiseau/oiseau/src/oiseau/dg/dg_connectivity.cpp