ParMooN
 All Classes Functions Variables Friends Pages
BF_B_Q_IB2_2D.h
1 // ***********************************************************************
2 // internal bubble of degree 2 (in the sense of Q2)
3 // ***********************************************************************
4 
5 // base function values
6 static void B_Q_IB2_2D_Funct(double xi, double eta, double *values)
7 {
8  values[0]=(1.0-xi)*(1.0-eta)*(1.0+xi)*(1.0+eta);
9 }
10 
11 // values of the derivatives in xi direction
12 static void B_Q_IB2_2D_DeriveXi(double xi, double eta, double *values)
13 {
14  values[0]=-2.*xi+2.*eta*eta*xi;
15 }
16 
17 // values of the derivatives in eta direction
18 static void B_Q_IB2_2D_DeriveEta(double xi, double eta, double *values)
19 {
20  values[0]=-2.*eta+2.*xi*xi*eta;
21 }
22 // values of the derivatives in xi-xi direction
23 static void B_Q_IB2_2D_DeriveXiXi(double xi, double eta, double *values)
24 {
25  values[0]=-2.+2.*eta*eta;
26 }
27 // values of the derivatives in xi-eta direction
28 static void B_Q_IB2_2D_DeriveXiEta(double xi, double eta, double *values)
29 {
30  values[0]=4.*eta*xi;
31 }
32 // values of the derivatives in eta-eta direction
33 static void B_Q_IB2_2D_DeriveEtaEta(double xi, double eta, double *values)
34 {
35  values[0]=-2.+2.*xi*xi;
36 }
37 // ***********************************************************************
38 
39 TBaseFunct2D *BF_B_Q_IB2_2D_Obj = new TBaseFunct2D
40  (1, BF_B_Q_IB2_2D, BFUnitSquare,
41  B_Q_IB2_2D_Funct, B_Q_IB2_2D_DeriveXi,
42  B_Q_IB2_2D_DeriveEta, B_Q_IB2_2D_DeriveXiXi,
43  B_Q_IB2_2D_DeriveXiEta, B_Q_IB2_2D_DeriveEtaEta, 2, 2,
44  0, NULL);
Definition: BaseFunct2D.h:27