quadFunctions.hh

Go to the documentation of this file.
1 
6 #ifndef quadFunctions_hh
7 #define quadFunctions_hh
8 
9 #include "basics/typedefs.hh"
10 
11 namespace concepts {
12  // forward declaration
13  class Quad;
14 }
15 
16 namespace hp2D {
17 
18  // ********************************************************* QuadFunctions **
19 
23  class QuadFunctions {
24  public:
32  static void edgeOrientation(const uint i, uint& pIndex, uint& qIndex);
33 
37  static void vertexIndex(const uint i, uint ll[2]);
38 
44  static void edgeIndex(const uint i, const uint qIndex, uint ll[2]);
45 
50  static uint index(const uint ll[2], const ushort p[2]) {
51  // copy'n paste from TColumnTensor::operator[]
52  return ll[0]+ll[1]*(1+p[0]);
53  }
54  };
55 
56  // ************************************************* InfiniteQuadFunctions **
57 
63  public:
67  static void vertexIndex(const uint i, uint ll[2]);
68 
73  static void edgeIndex(const uint i, uint ll[2]);
74 
79  static uint index(const uint ll[2], const ushort p[2]) {
80  // copy'n paste from TColumnTensor::operator[]
81  return ll[0]+ll[1]*(1+p[0]);
82  }
83  };
84 
85 
86 } // namespace hp2D
87 
88 #endif // quadFunctions_hh
static void edgeIndex(const uint i, const uint qIndex, uint ll[2])
Computes the tensor product index ll for an edge with index i and precomputed indices qIndex and rInd...
static void edgeOrientation(const uint i, uint &pIndex, uint &qIndex)
Helps distributing the polynomial degree to the edges.
static void edgeIndex(const uint i, uint ll[2])
Computes the tensor product index ll for an edge with index i.
Auxiliary functions for quadrilaterals.
2D hp-FEM for H1-conforming elements.
static void vertexIndex(const uint i, uint ll[2])
Computes the tensor product index ll for a vertex with index i.
Auxiliary functions for infinite quadrilaterals.
static uint index(const uint ll[2], const ushort p[2])
Computes the linear index from the tensor product index ll using the polynomial degrees p.
static uint index(const uint ll[2], const ushort p[2])
Computes the linear index from the tensor product index ll using the polynomial degrees p.
static void vertexIndex(const uint i, uint ll[2])
Computes the tensor product index ll for a vertex with index i.
unsigned short ushort
Abbreviation for unsigned short.
Definition: typedefs.hh:48
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich