ParMooN
 All Classes Functions Variables Friends Pages
NF_C_T_RR2_2D.h
1 // red refined triangle, second order, used for LPS
2 
3 /*
4  TNodalFunctional2D(NodalFunctional2D id,
5  int n_allfunctionals, int n_edgefunctionals,
6  int n_pointsall, int n_pointsedge,
7  double *xi, double *eta, double *t,
8  DoubleFunctVect *evalall,
9  DoubleFunctVect *evaledge);
10 */
11 
12 static double NF_C_T_RR2_2D_Xi[] = { 0, 0.25, 0.5, 0.75, 1, 0.75, 0.5, 0.25,
13  0, 0, 0, 0, 0.25, 0.5, 0.25 };
14 
15 static double NF_C_T_RR2_2D_Eta[] = { 0, 0, 0, 0, 0, 0.25, 0.5, 0.75,
16  1, 0.75, 0.5, 0.25, 0.25, 0.25, 0.5 };
17 
18 static double NF_C_T_RR2_2D_T[] = { -1, -0.5, 0, 0.5, 1 };
19 
20 void NF_C_T_RR2_2D_EvalAll(TCollection *Coll, TBaseCell *Cell,
21  double *PointValues, double *Functionals)
22 {
23  memcpy(Functionals, PointValues, 15*SizeOfDouble);
24 }
25 
26 void NF_C_T_RR2_2D_EvalEdge(TCollection *Coll, TBaseCell *Cell, int Joint,
27  double *PointValues, double *Functionals)
28 {
29  memcpy(Functionals, PointValues, 5*SizeOfDouble);
30 }
31 
32 TNodalFunctional2D *NF_C_T_RR2_2D_Obj = new TNodalFunctional2D
33  (NF_C_T_B2_2D, 15, 5, 15, 5, NF_C_T_RR2_2D_Xi, NF_C_T_RR2_2D_Eta,
34  NF_C_T_RR2_2D_T, NF_C_T_RR2_2D_EvalAll, NF_C_T_RR2_2D_EvalEdge);
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