OISEAU
A modern DGTD framework
Loading...
Searching...
No Matches
oiseau::dg::DGGeometry Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ DGGeometry()

oiseau::dg::DGGeometry::DGGeometry ( const mesh::Mesh & mesh)
explicit

Computes geometric factors for the mesh's top-dimensional cells.

Parameters
meshSource mesh. It must outlive this object.
Exceptions
std::invalid_argumentIf dimensions, coordinates, or cell geometry are invalid, or if a cell mapping is non-affine.
std::out_of_rangeIf a cell references a missing mesh vertex.

Member Function Documentation

◆ cell()

const DGGeometry::CellGeometry & oiseau::dg::DGGeometry::cell ( std::size_t mesh_cell_index) const

Returns geometric data for a mesh cell.

Parameters
mesh_cell_indexSource mesh cell index.
Returns
The cell's geometric data.
Exceptions
std::out_of_rangeIf the index is invalid or the cell has no data.

◆ has_cell()

bool oiseau::dg::DGGeometry::has_cell ( std::size_t mesh_cell_index) const

Checks whether geometric data exists for a mesh cell.

Parameters
mesh_cell_indexSource mesh cell index.
Returns
True if the cell is top-dimensional and has geometry data.

The documentation for this class was generated from the following files:
  • /__w/oiseau/oiseau/src/oiseau/dg/dg_geometry.hpp
  • /__w/oiseau/oiseau/src/oiseau/dg/dg_geometry.cpp