rysSpace.hh

Go to the documentation of this file.
1 
6 #ifndef RysSpace1D_hh
7 #define RysSpace1D_hh
8 
9 #include "basics/exceptions.hh"
10 #include "basics/typedefs.hh"
11 #include "geometry/mesh.hh"
12 #include "space/space.hh"
14 #include "rysElement.hh"
15 
16 namespace hp1D {
17 
18 
19  // ***************************************************************** Space **
20 
26  class RysSpace : public concepts::SpaceOnCells<concepts::Real> {
27  public:
29 
33  RysSpace(concepts::Mesh1& msh, uint p);
34  ~RysSpace() override;
35 
36  inline uint dim() const { return elm_->T().n(); }
37  inline uint nelm() const { return 1u; }
38  inline Scan* scan() const {
40  }
41 
46  protected:
47  virtual std::ostream& info(std::ostream& os) const;
48  private:
51 
53  std::unique_ptr<hp1D::RysElement<concepts::Real> > elm_;
54 
55  };
56 
57 } // namespace hp1D
58 
59 #endif // RysSpace1D_hh
A scanner over a single element.
concepts::Scan< BaseElement< concepts::Real > > Scan
Definition: rysSpace.hh:28
uint dim() const
Definition: rysSpace.hh:36
Scan * scan() const
Definition: rysSpace.hh:38
virtual std::ostream & info(std::ostream &os) const
An abstract class for 1D meshes.
Definition: mesh.hh:94
~RysSpace() override
A 1D polynomial space spanned by the Rys basis.
Definition: rysSpace.hh:26
concepts::Mesh1 & msh_
Mesh.
Definition: rysSpace.hh:50
uint nelm() const
Definition: rysSpace.hh:37
RysSpace(concepts::Mesh1 &msh, uint p)
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
void recomputeShapefunctions()
Recompute shape functions, e.g.
std::unique_ptr< hp1D::RysElement< concepts::Real > > elm_
The element.
Definition: rysSpace.hh:53
Abstract class for a space.
Definition: space.hh:81
1D hp-FEM
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich