ParMooN
 All Classes Functions Variables Friends Pages
NF_C_Q_UL1_2D.h
1 static double NF_C_Q_UL1_2D_Xi[] = { -1, 1, 1, -1,
2  -.5773502691896257645091486, .5773502691896257645091486,
3  -.5773502691896257645091486, .5773502691896257645091486 };
4 
5 static double NF_C_Q_UL1_2D_Eta[] = { -1, -1, 1, 1,
6  -.5773502691896257645091486, -.5773502691896257645091486,
7  .5773502691896257645091486, .5773502691896257645091486 };
8 
9 static double NF_C_Q_UL1_2D_T[] = { -1, 1 };
10 
11 void NF_C_Q_UL1_2D_EvalAll(TCollection *Coll, TBaseCell *Cell, double *PointValues,
12  double *Functionals)
13 {
14  Functionals[0] = PointValues[0];
15  Functionals[1] = PointValues[1];
16  Functionals[2] = PointValues[2];
17  Functionals[3] = PointValues[3];
18  Functionals[4] = PointValues[4]+PointValues[5]+PointValues[6]+PointValues[7];
19 }
20 
21 void NF_C_Q_UL1_2D_EvalEdge(TCollection *Coll, TBaseCell *Cell, int Joint, double *PointValues,
22  double *Functionals)
23 {
24  Functionals[0] = PointValues[0];
25  Functionals[1] = PointValues[1];
26 }
27 
28 /*
29  TNodalFunctional2D(NodalFunctional2D id,
30  int n_allfunctionals, int n_edgefunctionals,
31  int n_pointsall, int n_pointsedge,
32  double *xi, double *eta, double *t,
33  DoubleFunctVect *evalall,
34  DoubleFunctVect *evaledge);
35 */
36 
37 TNodalFunctional2D *NF_C_Q_UL1_2D_Obj = new TNodalFunctional2D
38  (NF_C_Q_UL1_2D, 5, 2, 8, 2, NF_C_Q_UL1_2D_Xi, NF_C_Q_UL1_2D_Eta,
39  NF_C_Q_UL1_2D_T, NF_C_Q_UL1_2D_EvalAll, NF_C_Q_UL1_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