VTK
9.4.20250106
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Filters
CellGrid
Basis
HGrad
PyrF2Basis.h
Go to the documentation of this file.
1
const
RealT
HALF
= 0.5;
2
const
RealT
ONE
= 1.;
3
const
RealT
ZERO
= 0.;
4
const
RealT
TWO
= 2.;
5
const
RealT
SIXTEENTHIRDS
= 16. / 3.;
6
const
RealT
EIGHT
= 8.;
7
const
RealT
TWENTYSEVEN
= 27.;
8
const
RealT
FOURTH
= 0.25;
9
const
RealT
NINTH
= 1. / 9.;
10
const
RealT
THREESIXTYFOURTHS
= 3. / 64.;
11
const
RealT
EIGHTH
= 1. / 8.;
12
const
RealT
FOURNINTHS
= 4. / 9.;
13
const
RealT
THREESIXTEENTHS
= 3. / 16.;
14
const
RealT
NINESIXTEENTHS
= 9. / 16.;
15
16
const
RealT
K1
= -0.25;
17
const
RealT
K5
=
ONE
;
18
const
RealT
K6
= -
HALF
;
19
const
RealT
K10
= -
ONE
;
20
const
RealT
K14
=
ONE
;
21
const
RealT
K15A
=
TWENTYSEVEN
/
EIGHT
;
22
const
RealT
K15B
= -
TWENTYSEVEN
/
EIGHT
;
23
const
RealT
K19
= -
SIXTEENTHIRDS
;
24
25
RealT
r2
= rr * rr;
26
RealT
s2
= ss * ss;
27
RealT
t2
= tt * tt;
28
RealT
rs
= rr * ss;
29
RealT
rt
= rr * tt;
30
RealT
st
= ss * tt;
31
RealT
r2s
=
r2
* ss;
32
RealT
r2t
=
r2
* tt;
33
RealT
rs2
= rr *
s2
;
34
RealT
s2t
=
s2
* tt;
35
RealT
rt2
= rr *
t2
;
36
RealT
st2
= ss *
t2
;
37
RealT
r2s2
=
r2
*
s2
;
38
39
RealT
tm
= tt -
ONE
;
40
RealT
tm2
=
tm
*
tm
;
41
RealT
tm3
=
tm2
*
tm
;
42
43
// Be sure that the basis functions are defined when tt is very close to 1.
44
RealT
mt
= abs(
tm
) > eps ?
ONE
/
tm
:
ZERO
;
45
RealT
m2t
= abs(
tm2
) > eps ?
ONE
/
tm2
:
ZERO
;
46
RealT
m3t
= abs(
tm3
) > eps ?
ONE
/
tm3
:
ZERO
;
47
48
basis
[0] =
K1
* (rr + ss -
ONE
) * (
rs
*
mt
- rr - ss + tt -
ONE
);
49
basis
[1] =
K1
* (-rr + ss -
ONE
) * (-
rs
*
mt
+ rr - ss + tt -
ONE
);
50
basis
[2] =
K1
* (-rr - ss -
ONE
) * (
rs
*
mt
+ rr + ss + tt -
ONE
);
51
basis
[3] =
K1
* (rr - ss -
ONE
) * (-
rs
*
mt
- rr + ss + tt -
ONE
);
52
basis
[4] =
K5
* (-tt +
TWO
*
t2
);
53
basis
[5] =
K6
* (-
r2s
*
mt
+
r2
+
st
- ss -
tm2
);
54
basis
[6] =
K6
* (
rs2
*
mt
-
rt
+ rr +
s2
-
tm2
);
55
basis
[7] =
K6
* (
r2s
*
mt
+
r2
-
st
+ ss -
tm2
);
56
basis
[8] =
K6
* (-
rs2
*
mt
+
rt
- rr +
s2
-
tm2
);
57
basis
[9] =
K10
* (
rs
+
rs
*
mt
-
rt
-
st
- tt +
t2
);
58
basis
[10] =
K10
* (-
rs
-
rs
*
mt
+
rt
-
st
- tt +
t2
);
59
basis
[11] =
K10
* (
rs
+
rs
*
mt
+
rt
+
st
- tt +
t2
);
60
basis
[12] =
K10
* (-
rs
-
rs
*
mt
-
rt
+
st
- tt +
t2
);
61
basis
[13] =
K14
* (
r2s2
*
m2t
-
r2
-
s2
+
tm2
);
62
basis
[14] =
K15A
* (
r2s
+
r2s
*
mt
-
r2s2
*
mt
-
r2s2
*
m2t
+
st
-
st2
+
s2t
);
63
basis
[15] =
K15B
* (
rs2
+
rs2
*
mt
+
rt
-
rt2
+
r2s2
*
mt
+
r2s2
*
m2t
-
r2t
);
64
basis
[16] =
K15B
* (
r2s
+
r2s
*
mt
+
r2s2
*
mt
+
r2s2
*
m2t
+
st
-
st2
-
s2t
);
65
basis
[17] =
K15A
* (
rs2
+
rs2
*
mt
+
rt
-
rt2
-
r2s2
*
mt
-
r2s2
*
m2t
+
r2t
);
66
basis
[18] =
K19
* (
r2s2
*
m2t
+
r2s2
*
m3t
-
r2
-
r2
*
mt
-
s2
-
s2
*
mt
- tt +
t2
);
67
68
// Modifications
69
basis
[0] =
70
basis
[0] +
FOURTH
*
basis
[13] +
NINTH
* (
basis
[14] +
basis
[17]) +
basis
[18] *
THREESIXTYFOURTHS
;
71
basis
[1] =
72
basis
[1] +
FOURTH
*
basis
[13] +
NINTH
* (
basis
[14] +
basis
[15]) +
basis
[18] *
THREESIXTYFOURTHS
;
73
basis
[2] =
74
basis
[2] +
FOURTH
*
basis
[13] +
NINTH
* (
basis
[15] +
basis
[16]) +
basis
[18] *
THREESIXTYFOURTHS
;
75
basis
[3] =
76
basis
[3] +
FOURTH
*
basis
[13] +
NINTH
* (
basis
[16] +
basis
[17]) +
basis
[18] *
THREESIXTYFOURTHS
;
77
basis
[4] =
basis
[4] +
EIGHTH
*
basis
[18] +
NINTH
* (
basis
[14] +
basis
[15] +
basis
[16] +
basis
[17]);
78
basis
[5] =
basis
[5] -
FOURNINTHS
*
basis
[14] -
basis
[13] *
HALF
;
79
basis
[6] =
basis
[6] -
FOURNINTHS
*
basis
[15] -
basis
[13] *
HALF
;
80
basis
[7] =
basis
[7] -
FOURNINTHS
*
basis
[16] -
basis
[13] *
HALF
;
81
basis
[8] =
basis
[8] -
FOURNINTHS
*
basis
[17] -
basis
[13] *
HALF
;
82
basis
[9] =
basis
[9] -
FOURNINTHS
* (
basis
[14] +
basis
[17]) -
basis
[18] *
THREESIXTEENTHS
;
83
basis
[10] =
basis
[10] -
FOURNINTHS
* (
basis
[14] +
basis
[15]) -
basis
[18] *
THREESIXTEENTHS
;
84
basis
[11] =
basis
[11] -
FOURNINTHS
* (
basis
[15] +
basis
[16]) -
basis
[18] *
THREESIXTEENTHS
;
85
basis
[12] =
basis
[12] -
FOURNINTHS
* (
basis
[16] +
basis
[17]) -
basis
[18] *
THREESIXTEENTHS
;
86
basis
[13] =
basis
[13] -
basis
[18] *
NINESIXTEENTHS
;
basis
basis[0]
Definition
PyrF2Basis.h:48
K1
const RealT K1
Definition
PyrF2Basis.h:16
r2
RealT r2
Definition
PyrF2Basis.h:25
K14
const RealT K14
Definition
PyrF2Basis.h:20
m2t
RealT m2t
Definition
PyrF2Basis.h:45
rt2
RealT rt2
Definition
PyrF2Basis.h:35
st
RealT st
Definition
PyrF2Basis.h:30
K5
const RealT K5
Definition
PyrF2Basis.h:17
r2s2
RealT r2s2
Definition
PyrF2Basis.h:37
NINTH
const RealT NINTH
Definition
PyrF2Basis.h:9
EIGHT
const RealT EIGHT
Definition
PyrF2Basis.h:6
K15A
const RealT K15A
Definition
PyrF2Basis.h:21
FOURTH
const RealT FOURTH
Definition
PyrF2Basis.h:8
t2
RealT t2
Definition
PyrF2Basis.h:27
m3t
RealT m3t
Definition
PyrF2Basis.h:46
tm
RealT tm
Definition
PyrF2Basis.h:39
rs2
RealT rs2
Definition
PyrF2Basis.h:33
tm2
RealT tm2
Definition
PyrF2Basis.h:40
TWENTYSEVEN
const RealT TWENTYSEVEN
Definition
PyrF2Basis.h:7
TWO
const RealT TWO
Definition
PyrF2Basis.h:4
r2s
RealT r2s
Definition
PyrF2Basis.h:31
SIXTEENTHIRDS
const RealT SIXTEENTHIRDS
Definition
PyrF2Basis.h:5
ONE
const RealT ONE
Definition
PyrF2Basis.h:2
K19
const RealT K19
Definition
PyrF2Basis.h:23
THREESIXTYFOURTHS
const RealT THREESIXTYFOURTHS
Definition
PyrF2Basis.h:10
K15B
const RealT K15B
Definition
PyrF2Basis.h:22
s2
RealT s2
Definition
PyrF2Basis.h:26
s2t
RealT s2t
Definition
PyrF2Basis.h:34
THREESIXTEENTHS
const RealT THREESIXTEENTHS
Definition
PyrF2Basis.h:13
st2
RealT st2
Definition
PyrF2Basis.h:36
ZERO
const RealT ZERO
Definition
PyrF2Basis.h:3
r2t
RealT r2t
Definition
PyrF2Basis.h:32
mt
RealT mt
Definition
PyrF2Basis.h:44
K6
const RealT K6
Definition
PyrF2Basis.h:18
HALF
const RealT HALF
Definition
PyrF2Basis.h:1
FOURNINTHS
const RealT FOURNINTHS
Definition
PyrF2Basis.h:12
rt
RealT rt
Definition
PyrF2Basis.h:29
EIGHTH
const RealT EIGHTH
Definition
PyrF2Basis.h:11
K10
const RealT K10
Definition
PyrF2Basis.h:19
rs
RealT rs
Definition
PyrF2Basis.h:28
tm3
RealT tm3
Definition
PyrF2Basis.h:41
NINESIXTEENTHS
const RealT NINESIXTEENTHS
Definition
PyrF2Basis.h:14
Generated on Mon Jan 6 2025 08:59:52 for VTK by
1.9.7