ParMooN
 All Classes Functions Variables Friends Pages
NF_D_Q_Q1_2D.h
1 static double NF_D_Q_Q1_2D_Xi[9] = {
2  -0.77459666924148337704, 0, 0.77459666924148337704,
3  -0.77459666924148337704, 0, 0.77459666924148337704,
4  -0.77459666924148337704, 0, 0.77459666924148337704 };
5 
6 static double NF_D_Q_Q1_2D_Eta[9] = {
7  -0.77459666924148337704, -0.77459666924148337704, -0.77459666924148337704,
8  0, 0, 0,
9  0.77459666924148337704, 0.77459666924148337704, 0.77459666924148337704 };
10 
11 static double *NF_D_Q_Q1_2D_t = NULL;
12 
13 static double NF_D_Q_Q1_2D_Weight0[9] = {
14  0.077160493827160493827, 0.12345679012345679012, 0.077160493827160493827,
15  0.12345679012345679012, 0.1975308641975308642, 0.12345679012345679012,
16  0.077160493827160493827, 0.12345679012345679012, 0.077160493827160493827 };
17 
18 static double NF_D_Q_Q1_2D_Weight1[9] = {
19  -0.17930478454663967061, 0, 0.17930478454663967061,
20  -0.28688765527462347298, 0, 0.28688765527462347298,
21  -0.17930478454663967061, 0, 0.17930478454663967061 };
22 
23 static double NF_D_Q_Q1_2D_Weight2[9] = {
24  -0.17930478454663967061, -0.28688765527462347298, -0.17930478454663967061,
25  0, 0, 0,
26  0.17930478454663967061, 0.28688765527462347298, 0.17930478454663967061 };
27 
28 static double NF_D_Q_Q1_2D_Weight3[9] = {
29  0.41666666666666666667, 0, -0.41666666666666666667,
30  0, 0, 0,
31  -0.41666666666666666667, 0, 0.41666666666666666667 };
32 
33 void NF_D_Q_Q1_2D_EvalAll(TCollection *Coll, TBaseCell *Cell, double *PointValues,
34  double *Functionals)
35 {
36  Functionals[0] = NF_D_Q_Q1_2D_Weight0[0]*PointValues[0]
37  +NF_D_Q_Q1_2D_Weight0[1]*PointValues[1]
38  +NF_D_Q_Q1_2D_Weight0[2]*PointValues[2]
39  +NF_D_Q_Q1_2D_Weight0[3]*PointValues[3]
40  +NF_D_Q_Q1_2D_Weight0[4]*PointValues[4]
41  +NF_D_Q_Q1_2D_Weight0[5]*PointValues[5]
42  +NF_D_Q_Q1_2D_Weight0[6]*PointValues[6]
43  +NF_D_Q_Q1_2D_Weight0[7]*PointValues[7]
44  +NF_D_Q_Q1_2D_Weight0[8]*PointValues[8];
45 
46  Functionals[1] = NF_D_Q_Q1_2D_Weight1[0]*PointValues[0]
47  +NF_D_Q_Q1_2D_Weight1[1]*PointValues[1]
48  +NF_D_Q_Q1_2D_Weight1[2]*PointValues[2]
49  +NF_D_Q_Q1_2D_Weight1[3]*PointValues[3]
50  +NF_D_Q_Q1_2D_Weight1[4]*PointValues[4]
51  +NF_D_Q_Q1_2D_Weight1[5]*PointValues[5]
52  +NF_D_Q_Q1_2D_Weight1[6]*PointValues[6]
53  +NF_D_Q_Q1_2D_Weight1[7]*PointValues[7]
54  +NF_D_Q_Q1_2D_Weight1[8]*PointValues[8];
55 
56  Functionals[2] = NF_D_Q_Q1_2D_Weight2[0]*PointValues[0]
57  +NF_D_Q_Q1_2D_Weight2[1]*PointValues[1]
58  +NF_D_Q_Q1_2D_Weight2[2]*PointValues[2]
59  +NF_D_Q_Q1_2D_Weight2[3]*PointValues[3]
60  +NF_D_Q_Q1_2D_Weight2[4]*PointValues[4]
61  +NF_D_Q_Q1_2D_Weight2[5]*PointValues[5]
62  +NF_D_Q_Q1_2D_Weight2[6]*PointValues[6]
63  +NF_D_Q_Q1_2D_Weight2[7]*PointValues[7]
64  +NF_D_Q_Q1_2D_Weight2[8]*PointValues[8];
65 
66  Functionals[3] = NF_D_Q_Q1_2D_Weight3[0]*PointValues[0]
67  +NF_D_Q_Q1_2D_Weight3[1]*PointValues[1]
68  +NF_D_Q_Q1_2D_Weight3[2]*PointValues[2]
69  +NF_D_Q_Q1_2D_Weight3[3]*PointValues[3]
70  +NF_D_Q_Q1_2D_Weight3[4]*PointValues[4]
71  +NF_D_Q_Q1_2D_Weight3[5]*PointValues[5]
72  +NF_D_Q_Q1_2D_Weight3[6]*PointValues[6]
73  +NF_D_Q_Q1_2D_Weight3[7]*PointValues[7]
74  +NF_D_Q_Q1_2D_Weight3[8]*PointValues[8];
75 }
76 
77 void NF_D_Q_Q1_2D_EvalEdge(TCollection *Coll, TBaseCell *Cell, int Joint, double *PointValues,
78  double *Functionals)
79 {
80 }
81 
82 /*
83  TNodalFunctional2D(NodalFunctional2D id,
84  int n_allfunctionals, int n_edgefunctionals,
85  int n_pointsall, int n_pointsedge,
86  double *xi, double *eta, double *t,
87  DoubleFunctVect *evalall,
88  DoubleFunctVect *evaledge);
89 */
90 
91 TNodalFunctional2D *NF_D_Q_Q1_2D_Obj = new TNodalFunctional2D
92  (NF_D_Q_Q1_2D, 4, 0, 9, 0, NF_D_Q_Q1_2D_Xi, NF_D_Q_Q1_2D_Eta,
93  NF_D_Q_Q1_2D_t, NF_D_Q_Q1_2D_EvalAll, NULL);
94 
store cells in an array, used by cell iterators
Definition: Collection.h:18
Definition: NodalFunctional2D.h:20
information for finite element data structure
Definition: BaseCell.h:25