Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
GaussLegendre_2_12.h
Go to the documentation of this file.
1#ifndef model_GAUSSLEGENDRE_2_12_H_
2#define model_GAUSSLEGENDRE_2_12_H_
3
4namespace model{
5
6template <>
7struct GaussLegendre<2,12>{
8 // Dunavant p=6, ng=12 (weights sum to 0.5 on reference triangle)
9 // Source: Dunavant 1985 tables / Burkardt triangle_dunavant_rule. :contentReference[oaicite:1]{index=1}
10 static Eigen::Matrix<double,3,12> abcsissasAndWeights(){
11 Eigen::Matrix<double,12,3> U;
12
13 const double w1 = 0.5*0.116786275726379;
14 const double a1 = 0.501426509658179;
15 const double b1 = 0.249286745170910;
16
17 const double w2 = 0.5*0.050844906370207;
18 const double a2 = 0.873821971016996;
19 const double b2 = 0.063089014491502;
20
21 const double w3 = 0.5*0.082851075618374;
22 const double a3 = 0.053145049844817;
23 const double b3 = 0.310352451033784;
24 const double c3 = 0.636502499121399;
25
26 U <<
27 // (a1,b1,b1)
28 b1, b1, w1,
29 a1, b1, w1,
30 b1, a1, w1,
31
32 // (a2,b2,b2)
33 b2, b2, w2,
34 a2, b2, w2,
35 b2, a2, w2,
36
37 // (a3,b3,c3) six permutations in (u,v)=(beta,gamma)
38 b3, c3, w3,
39 c3, b3, w3,
40 a3, c3, w3,
41 c3, a3, w3,
42 a3, b3, w3,
43 b3, a3, w3;
44
45 return U.transpose();
46 }
47};
48
49} // namespace model
50
51#endif
static Eigen::Matrix< double, 3, 12 > abcsissasAndWeights()
Class template defining the GaussLegendre rules for determination of quadrature abscissas and weights...