hpAdaptiveSpaceL2.hh

Go to the documentation of this file.
1 
6 #ifndef hpAdaptiveSpaceL2_hh
7 #define hpAdaptiveSpaceL2_hh
8 
9 #include "basics/exceptions.hh"
10 #include "basics/typedefs.hh"
11 #include "geometry/mesh.hh"
12 #include "space/space.hh"
14 #include "element.hh"
15 
16 namespace hp1D {
17 
18 // ***************************************************************** hpAdaptiveSpaceL2 **
19 
27  class hpAdaptiveSpaceL2 : public concepts::SpaceOnCells<concepts::Real> {
28  public:
30 
36  ~hpAdaptiveSpaceL2() override;
37 
38  inline uint dim() const override{
39  return dim_;
40  }
41 
42  inline uint nelm() const override{
43  return nelm_;
44  }
45 
46  inline Scan* scan() const override{
47  return new concepts::PListScan<BaseElement<Real> >(*elm_);
48  }
49 
54  protected:
55  virtual std::ostream& info(std::ostream& os) const override;
56  private:
58  uint dim_;
60  uint nelm_;
63  };
64 
65 } // namespace hp1D
66 
67 #endif // hpAdaptiveSpaceL2_hh
concepts::Joiner< BaseElement< Real > *, 1 > * elm_
Linked list of the elements.
~hpAdaptiveSpaceL2() override
void recomputeShapefunctions()
Recompute shape functions, e.g.
concepts::Scan< BaseElement< concepts::Real > > Scan
Joiner class with multiple successors, i.e.
Scan * scan() const override
virtual std::ostream & info(std::ostream &os) const override
An abstract class for 1D meshes.
Definition: mesh.hh:94
uint dim_
Dimension of the FE space.
A 1D polynomial space spanned by Legrendre type polynomials.
An abstract class for scanning a mesh (a set of cells) or a space (a set of elements).
hpAdaptiveSpaceL2(concepts::Mesh1 &msh, uint p)
Abstract class for a space.
Definition: space.hh:81
uint nelm() const override
uint dim() const override
uint nelm_
Number of elements currently active in the mesh.
Scanner for a list of pointers.
1D hp-FEM
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich