Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
GaussLegendre_2_13.h
Go to the documentation of this file.
1#ifndef model_GAUSSLEGENDRE_2_13_H_
2#define model_GAUSSLEGENDRE_2_13_H_
3
4namespace model{
5
6template <>
7struct GaussLegendre<2,13>{
8 // Dunavant p=7, ng=13 (weights sum to 0.5 on reference triangle)
9 // Source: Dunavant 1985 tables / Burkardt triangle_dunavant_rule. :contentReference[oaicite:2]{index=2}
10 static Eigen::Matrix<double,3,13> abcsissasAndWeights(){
11 Eigen::Matrix<double,13,3> U;
12
13 const double w0 = -0.5*0.149570044467682;
14
15 const double w1 = 0.5*0.175615257433208;
16 const double a1 = 0.479308067841920;
17 const double b1 = 0.260345966079040;
18
19 const double w2 = 0.5*0.053347235608838;
20 const double a2 = 0.869739794195568;
21 const double b2 = 0.065130102902216;
22
23 const double w3 = 0.5*0.077113760890257;
24 const double a3 = 0.048690315425316;
25 const double b3 = 0.312865496004874;
26 const double c3 = 0.638444188569810;
27
28 U <<
29 // centroid
30 0.333333333333333, 0.333333333333333, w0,
31
32 // (a1,b1,b1)
33 b1, b1, w1,
34 a1, b1, w1,
35 b1, a1, w1,
36
37 // (a2,b2,b2)
38 b2, b2, w2,
39 a2, b2, w2,
40 b2, a2, w2,
41
42 // (a3,b3,c3) six permutations
43 b3, c3, w3,
44 c3, b3, w3,
45 a3, c3, w3,
46 c3, a3, w3,
47 a3, b3, w3,
48 b3, a3, w3;
49
50 return U.transpose();
51 }
52};
53
54} // namespace model
55
56#endif
static Eigen::Matrix< double, 3, 13 > abcsissasAndWeights()
Class template defining the GaussLegendre rules for determination of quadrature abscissas and weights...