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

Volume and face integration data for one mesh cell. More...

#include <dg_integration.hpp>

Public Member Functions

bool has_group () const
std::size_t node_count () const
Matrix mass () const
Matrix inverse_mass () const
Matrix stiffness_x () const
 Returns the physical weak stiffness matrix in the x direction.
Matrix stiffness_y () const
Matrix stiffness_z () const

Public Attributes

std::size_t group_index = DGConnectivity::no_neighbor
 Index of the DGSpace group, or DGConnectivity::no_neighbor for an inactive cell.
std::size_t group_cell_index = 0
 Index of this cell within its DGSpace group.
std::shared_ptr< const ReferenceRule > reference
 Shared reference volume operators, or nullptr for an inactive cell.
double volume_jacobian = 0.0
 Absolute Jacobian determinant used to scale volume integrals.
std::array< double, 9 > inverse_jacobian {}
 Padded row-major 3 by 3 inverse Jacobian \(\partial(r,s,t)/\partial(x,y,z)\).
std::vector< double > weak_derivative_x
 Physical weak derivative \(M^{-1}S_x\), stored as [test node, trial node].
std::vector< double > weak_derivative_y
 Physical weak derivative \(M^{-1}S_y\), stored as [test node, trial node].
std::vector< double > weak_derivative_z
 Physical weak derivative \(M^{-1}S_z\), stored as [test node, trial node].
std::vector< FaceRule > faces
 Face rules in local face order.

Detailed Description

Volume and face integration data for one mesh cell.

Member Function Documentation

◆ has_group()

bool oiseau::dg::DGIntegration::CellRule::has_group ( ) const
inline
Returns
True if the cell belongs to a DGSpace element group.

◆ inverse_mass()

DGIntegration::Matrix oiseau::dg::DGIntegration::CellRule::inverse_mass ( ) const
Returns
Inverse physical mass matrix, or an empty matrix for an inactive cell.

◆ mass()

DGIntegration::Matrix oiseau::dg::DGIntegration::CellRule::mass ( ) const
Returns
Physical mass matrix, or an empty matrix for an inactive cell.

◆ node_count()

std::size_t oiseau::dg::DGIntegration::CellRule::node_count ( ) const
inline
Returns
Number of cell nodes, or zero for an inactive cell.

◆ stiffness_x()

DGIntegration::Matrix oiseau::dg::DGIntegration::CellRule::stiffness_x ( ) const

Returns the physical weak stiffness matrix in the x direction.

\(S_x(i,j) = \int (\partial_x\phi_i)\phi_j = (D_x^TM)(i,j)\). Rows are test nodes and columns are trial nodes. The y and z matrices follow the same convention.

Returns
The stiffness matrix, or an empty matrix for an inactive cell.

◆ stiffness_y()

DGIntegration::Matrix oiseau::dg::DGIntegration::CellRule::stiffness_y ( ) const
Returns
Physical y stiffness matrix, or an empty matrix if y is absent.

◆ stiffness_z()

DGIntegration::Matrix oiseau::dg::DGIntegration::CellRule::stiffness_z ( ) const
Returns
Physical z stiffness matrix, or an empty matrix if z is absent.

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