Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
GaussLegendre_3_4.h
Go to the documentation of this file.
1 /* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_GAUSSLEGENDRE_3_4_H_
9#define model_GAUSSLEGENDRE_3_4_H_
10
11namespace model{
12
14 template <>
15 struct GaussLegendre<3,4>{
16 //a=(5-sqrt(5))/20=1.381966011250105e-01
17 //b=(5+3*sqrt(5))/20=5.854101966249685e-01
18 static Eigen::Matrix<double,4,4> abcsissasAndWeights(){
19 Eigen::Matrix<double,4,4> U;
20 U(0,0)= 1.381966011250105e-01; U(3,0)= 4.166666666666667e-02;
21 U(1,0)= 1.381966011250105e-01;
22 U(2,0)= 1.381966011250105e-01;
23
24 U(0,1)= 1.381966011250105e-01; U(3,1)= 4.166666666666667e-02;
25 U(1,1)= 5.854101966249685e-01;
26 U(2,1)= 1.381966011250105e-01;
27
28 U(0,2)= 1.381966011250105e-01; U(3,2)= 4.166666666666667e-02;
29 U(1,2)= 1.381966011250105e-01;
30 U(2,2)= 5.854101966249685e-01;
31
32 U(0,3)= 5.854101966249685e-01; U(3,3)= 4.166666666666667e-02;
33 U(1,3)= 1.381966011250105e-01;
34 U(2,3)= 1.381966011250105e-01;
35 return U;
36 }
37 };
38/*************************************************/
39}
40#endif
41
static Eigen::Matrix< double, 4, 4 > abcsissasAndWeights()
Class template defining the GaussLegendre rules for determination of quadrature abscissas and weights...