Represents a reference triangular element for nodal Discontinuous Galerkin methods.
More...
|
| static xt::xarray< double > | basis_function (const xt::xarray< double > &ab, int i, int j) |
| | Static member function that evaluates a 2D orthonormal basis function on the reference triangle in collapsed (a, b) coordinates.
|
| static xt::xarray< double > | grad_basis_function (const xt::xarray< double > &ab, int i, int j) |
| | Static member function that computes the gradient of a 2D orthonormal basis function on the reference triangle in (r, s) coordinates.
|
Represents a reference triangular element for nodal Discontinuous Galerkin methods.
The reference triangle is defined in (r, s) coordinates with vertices at (-1, -1), (1, -1), and (-1, 1). This class computes and stores properties such as nodal distribution, Vandermonde matrix, and differentiation matrices for a specified polynomial order.
| xt::xarray< double > oiseau::dg::nodal::RefTriangle::basis_function |
( |
const xt::xarray< double > & | ab, |
|
|
int | i, |
|
|
int | j ) |
|
static |
Static member function that evaluates a 2D orthonormal basis function on the reference triangle in collapsed (a, b) coordinates.
The basis function is defined by: \(\sqrt{2}\,P_i^{0,0}(a)\,P_j^{2i+1,0}(b)\,(1 - b)^i\) where \(P_n^{\alpha,\beta}\) are Jacobi polynomials.
- Parameters
-
| ab | 2D array (shape: N_points × 2) of (a, b) coordinates where to evaluate the basis. |
| i | Polynomial degree index for the a-direction component. |
| j | Polynomial degree index for the b-direction component. |
- Returns
- 1D array (length N_points) of basis function values at each (a, b) point.