ParMooN
 All Classes Functions Variables Friends Pages
BF_C_T_P1_2D.h
1 // ***********************************************************************
2 // P1 element, conforming, 2D
3 // ***********************************************************************
4 
5 // base function values
6 static void C_T_P1_2D_Funct(double xi, double eta, double *values)
7 {
8  values[0]=1-xi-eta;
9  values[1]=xi;
10  values[2]=eta;
11 }
12 
13 // values of the derivatives in xi direction
14 static void C_T_P1_2D_DeriveXi(double xi, double eta, double *values)
15 {
16  values[0]=-1;
17  values[1]=1;
18  values[2]=0;
19 }
20 
21 // values of the derivatives in eta direction
22 static void C_T_P1_2D_DeriveEta(double xi, double eta, double *values)
23 {
24  values[0]=-1;
25  values[1]=0;
26  values[2]=1;
27 }
28 // values of the derivatives in xi-xi direction
29 static void C_T_P1_2D_DeriveXiXi(double xi, double eta, double *values)
30 {
31  values[0]=0;
32  values[1]=0;
33  values[2]=0;
34 }
35 // values of the derivatives in xi-eta direction
36 static void C_T_P1_2D_DeriveXiEta(double xi, double eta, double *values)
37 {
38  values[0]=0;
39  values[1]=0;
40  values[2]=0;
41 }
42 // values of the derivatives in eta-eta direction
43 static void C_T_P1_2D_DeriveEtaEta(double xi, double eta, double *values)
44 {
45  values[0]=0;
46  values[1]=0;
47  values[2]=0;
48 }
49 
50 // ***********************************************************************
51 
52 TBaseFunct2D *BF_C_T_P1_2D_Obj = new TBaseFunct2D
53  (3, BF_C_T_P1_2D, BFUnitTriangle,
54  C_T_P1_2D_Funct, C_T_P1_2D_DeriveXi,
55  C_T_P1_2D_DeriveEta, C_T_P1_2D_DeriveXiXi,
56  C_T_P1_2D_DeriveXiEta, C_T_P1_2D_DeriveEtaEta, 1, 1,
57  0, NULL);
Definition: BaseFunct2D.h:27