Stores geometric factors for top-dimensional cells in a mesh. More...
#include <dg_geometry.hpp>
Classes | |
| struct | FaceGeometry |
| Geometric data for one cell face. More... | |
| struct | CellGeometry |
| Geometric data for one top-dimensional mesh cell. More... | |
Public Member Functions | |
| DGGeometry (const mesh::Mesh &mesh) | |
| Computes geometric factors for the mesh's top-dimensional cells. | |
| const mesh::Mesh & | mesh () const |
| Returns the source mesh. | |
| bool | has_cell (std::size_t mesh_cell_index) const |
| Checks whether geometric data exists for a mesh cell. | |
| const CellGeometry & | cell (std::size_t mesh_cell_index) const |
| Returns geometric data for a mesh cell. | |
Stores geometric factors for top-dimensional cells in a mesh.
The mesh is referenced, not copied, and must outlive this object. Geometry entries are indexed by source mesh cell. Lower-dimensional cells have no entry.
|
explicit |
Computes geometric factors for the mesh's top-dimensional cells.
| mesh | Source mesh. It must outlive this object. |
| std::invalid_argument | If dimensions, coordinates, or cell geometry are invalid, or if a cell mapping is non-affine. |
| std::out_of_range | If a cell references a missing mesh vertex. |
| const DGGeometry::CellGeometry & oiseau::dg::DGGeometry::cell | ( | std::size_t | mesh_cell_index | ) | const |
Returns geometric data for a mesh cell.
| mesh_cell_index | Source mesh cell index. |
| std::out_of_range | If the index is invalid or the cell has no data. |
| bool oiseau::dg::DGGeometry::has_cell | ( | std::size_t | mesh_cell_index | ) | const |
Checks whether geometric data exists for a mesh cell.
| mesh_cell_index | Source mesh cell index. |