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

Precomputed volume and face integration operators for affine 1D, 2D, and 3D DG cells. More...

#include <dg_integration.hpp>

Classes

struct  ReferenceRule
 Reference-cell volume operators shared by one cell shape and polynomial order. More...
struct  QuadratureRule
 Weights and nodes on the canonical point, line, triangle, or square. More...
struct  ReferenceFaceRule
 Face operators shared by cell shape, order, local face, quadrature, and orientation. More...
struct  FaceRule
 Integration data for one physical cell face. More...
struct  CellRule
 Volume and face integration data for one mesh cell. More...

Public Types

using Matrix = xt::xarray<double>
 Array type for integration operators and quadrature data.

Public Member Functions

 DGIntegration (const mesh::Mesh &mesh, const DGSpace &space, const DGConnectivity &connectivity, const DGGeometry &geometry)
 Builds integration rules for the cells in a DG space.
std::span< const CellRule > cells () const
const CellRule & cell (std::size_t mesh_cell_index) const
 Returns the integration rule for a mesh cell.

Detailed Description

Precomputed volume and face integration operators for affine 1D, 2D, and 3D DG cells.

The rules follow the supplied DGSpace cell groups and can be reused by different equation systems on the same space.

Constructor & Destructor Documentation

◆ DGIntegration()

oiseau::dg::DGIntegration::DGIntegration ( const mesh::Mesh & mesh,
const DGSpace & space,
const DGConnectivity & connectivity,
const DGGeometry & geometry )

Builds integration rules for the cells in a DG space.

Parameters
meshSource mesh.
spaceDG cell groups and polynomial orders.
connectivityFace adjacency and orientation for the source mesh.
geometryCell and face geometry for the source mesh.
Exceptions
std::invalid_argumentIf the inputs refer to different meshes, a neighboring cell is missing from the space, or a polynomial order is too large for face quadrature.

Member Function Documentation

◆ cell()

const DGIntegration::CellRule & oiseau::dg::DGIntegration::cell ( std::size_t mesh_cell_index) const

Returns the integration rule for a mesh cell.

Parameters
mesh_cell_indexIndex in the source mesh.
Returns
The cell rule, with empty matrices for a cell outside the DGSpace.
Exceptions
std::out_of_rangeIf the mesh cell index is invalid.

◆ cells()

std::span< const CellRule > oiseau::dg::DGIntegration::cells ( ) const
inline
Returns
Rules in mesh cell order. Cells outside the DGSpace have empty matrices.

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