rysElement.hh

Go to the documentation of this file.
1 
9 #ifndef CONCEPTS_RYSELEMENT1D_HH
10 #define CONCEPTS_RYSELEMENT1D_HH
11 
12 #include "basics/typedefs.hh"
14 #include "geometry/connector.hh"
15 #include "geometry/cell1D.hh"
16 #include "geometry/integral.hh"
17 #include "space/element.hh"
18 #include "space/tmatrix.hh"
19 #include "integration/quadRule.hh"
21 #include "lineGraphics.hh"
22 #include "integration/rys.hh"
23 #include "element.hh"
24 
25 
26 namespace hp1D {
27  using concepts::Real;
28 
29  // *************************************************************** RysMixin ***
30 
33  template<class F>
34  class RysMixin : public BaseElement<F> {
35  public:
37  BaseElement<F>(cell,p) {
39  }
40 
44  void recomputeShapefunctions() override;
45 
47  const concepts::Rys* shpfct() const override { return shpfct_.get(); }
48 
49  private:
51  std::unique_ptr<concepts::Rys> shpfct_;
52 
53  };
54 
55  template<class F>
57 
58 } // namespace hp1D
59 
60 #endif // CONCEPTS_RYSELEMENT1D_HH
const concepts::Rys * shpfct() const override
Returns the shape functions.
Definition: rysElement.hh:47
virtual const concepts::EdgeNd & cell() const
Returns the cell on which the element is built.
Definition: element.hh:99
Rys shape functions mixin.
Definition: rysElement.hh:34
std::unique_ptr< concepts::Rys > shpfct_
The shape functions.
Definition: rysElement.hh:51
1D generic element.
Definition: element.hh:225
Rys shape function basis over an element [a,b].
Definition: rys.hh:22
A 1D cell in any dimension: edge.
Definition: cell1D.hh:32
unsigned short ushort
Abbreviation for unsigned short.
Definition: typedefs.hh:48
RysMixin(const concepts::EdgeNd &cell, ushort p)
Definition: rysElement.hh:36
void recomputeShapefunctions() override
Recompute shape functions, e.g.
ushort p() const
Definition: element.hh:103
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
1D hp-FEM
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich