14#include "oiseau/mesh/mesh.hpp"
65 std::vector<FaceGeometry>
faces;
84 bool has_cell(std::size_t mesh_cell_index)
const;
91 const CellGeometry&
cell(std::size_t mesh_cell_index)
const;
95 std::vector<std::optional<CellGeometry>> m_cells;
const mesh::Mesh & mesh() const
Returns the source mesh.
Definition dg_geometry.hpp:78
DGGeometry(const mesh::Mesh &mesh)
Computes geometric factors for the mesh's top-dimensional cells.
Definition dg_geometry.cpp:382
bool has_cell(std::size_t mesh_cell_index) const
Checks whether geometric data exists for a mesh cell.
Definition dg_geometry.cpp:406
const CellGeometry & cell(std::size_t mesh_cell_index) const
Returns geometric data for a mesh cell.
Definition dg_geometry.cpp:410
Geometric data for one top-dimensional mesh cell.
Definition dg_geometry.hpp:43
std::array< double, 9 > inverse_jacobian
Inverse Jacobian in padded row-major 3 by 3 storage.
Definition dg_geometry.hpp:58
std::size_t mesh_cell_index
Index of this cell in the source mesh.
Definition dg_geometry.hpp:45
std::array< double, 9 > jacobian
Jacobian mapping reference coordinates to physical coordinates.
Definition dg_geometry.hpp:53
double determinant
Signed Jacobian determinant.
Definition dg_geometry.hpp:63
std::size_t dimension
Topological dimension of this cell.
Definition dg_geometry.hpp:47
std::vector< FaceGeometry > faces
Face geometry in the cell type's local face order.
Definition dg_geometry.hpp:65
Geometric data for one cell face.
Definition dg_geometry.hpp:27
double surface_jacobian
Ratio of physical to reference face measure.
Definition dg_geometry.hpp:39
std::array< double, 3 > outward_normal
Outward unit normal, padded to three coordinates.
Definition dg_geometry.hpp:29
double measure
Physical face measure.
Definition dg_geometry.hpp:34