DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
GaussJacobi.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "QuadratureBase.hpp"
4
5namespace DNDS::Geom::Elem
6{
7 // ===================================================================
8 // Gauss-Jacobi Quadrature on [0, 1] with weight (1-z)^2
9 // ===================================================================
10 // These are used for pyramid quadrature in the z-direction.
11 // The pyramid is parameterized with z in [0,1] and (x,y) in the base
12 // scaled by (1-z). The Jacobian factor introduces a (1-z)^2 weight.
13 //
14 // Parameters: alpha = 2, beta = 0 (Jacobi polynomials)
15 // Reference interval: [0, 1]
16 //
17 // Data format: [2][n] array where:
18 // [0][i] = quadrature point (zi) in [0, 1]
19 // [1][i] = quadrature weight (wi)
20 // ===================================================================
21
22 /// Gauss-Jacobi (alpha=2, beta=0) with 1 point
23 static const t_real __GaussJacobi_01A2B0_1[2][1]{
24 {0.250000000000000},
25 {0.333333333333333}};
26
27 /// Gauss-Jacobi (alpha=2, beta=0) with 2 points
28 static const t_real __GaussJacobi_01A2B0_2[2][2]{
29 {0.122514822655441, 0.544151844011225},
30 {0.232547451253508, 0.100785882079825}};
31
32 /// Gauss-Jacobi (alpha=2, beta=0) with 3 points
33 static const t_real __GaussJacobi_01A2B0_3[2][3]{
34 {0.072994024073150, 0.347003766038352, 0.705002209888499},
35 {0.157136361064887, 0.146246269259866, 0.029950703008581}};
36
37 /// Gauss-Jacobi (alpha=2, beta=0) with 4 points
38 static const t_real __GaussJacobi_01A2B0_4[2][4]{
39 {0.048500549446997, 0.238600737551862, 0.517047295104367, 0.795851417896773},
40 {0.110888415611278, 0.143458789799214, 0.068633887172923, 0.010352240749918}};
41
42 /// Gauss-Jacobi (alpha=2, beta=0) with 5 points
43 static const t_real __GaussJacobi_01A2B0_5[2][5]{
44 {0.034578939918215, 0.173480320771696, 0.389886387065519, 0.634333472630887, 0.851054212947016},
45 {0.081764784285771, 0.126198961899911, 0.089200161221590, 0.032055600722962, 0.004113825203099}};
46
47} // namespace DNDS::Geom::Elem
double t_real
Definition Geometric.hpp:8