Chi-Tech
pwl_polyhedron_01a_reftet.cc
Go to the documentation of this file.
2
4{
5
7 const chi_mesh::Vector3& qpoint,
8 bool on_surface /*=false*/)
9{
10 double value = 0.0;
11
12 if (index == 0) { value = 1.0 - qpoint.x - qpoint.y - qpoint.z; }
13 if (index == 1) { value = qpoint.x; }
14 if (index == 2) { value = qpoint.y; }
15 if (index == 3) { value = qpoint.z; }
16
17 return value;
18}
19
21{
22 double value = 0.0;
23 if (index == 0) { value = -1.0; }
24 if (index == 1) { value = 1.0; }
25 if (index == 2) { value = 0.0; }
26 if (index == 3) { value = 0.0; }
27
28 return value;
29}
30
32{
33 double value = 0.0;
34 if (index == 0) { value = -1.0; }
35 if (index == 1) { value = 0.0; }
36 if (index == 2) { value = 1.0; }
37 if (index == 3) { value = 0.0; }
38
39 return value;
40}
41
43{
44 double value = 0.0;
45 if (index == 0) { value = -1.0; }
46 if (index == 1) { value = 0.0; }
47 if (index == 2) { value = 0.0; }
48 if (index == 3) { value = 1.0; }
49
50 return value;
51}
52
53} // namespace chi_math::cell_mapping
static double TetShape(uint32_t index, const chi_mesh::Vector3 &qpoint, bool on_surface=false)
double x
Element-0.
double y
Element-1.
double z
Element-2.