levelRiesz.hh

Go to the documentation of this file.
1 #ifndef levelRiesz_hh
2 #define levelRiesz_hh
3 
4 #include "hp1D.hh"
5 #include "hp2D.hh"
6 #include "formula.hh"
7 #include "function.hh"
8 
9 using concepts::Real;
10 using concepts::Real2d;
11 
12 namespace hp1D{
13 
14  //*************************************************** LevelRiesz *****
34  class LevelRiesz : public concepts::LinearForm<concepts::Real> {
35  public:
36 
48  const concepts::ElementFormulaContainer<Real>& levelFunction,
49  const concepts::ElementFormulaContainer<Real2d>& levelFunctionGrad,
50  const concepts::ElementFormulaContainer<Real>& observable);
51 
53 
59  virtual void operator()(const concepts::Element<Real>& elm,
61 
62  protected:
63 
64  virtual std::ostream& info(std::ostream& os) const;
65 
66  private:
67 
72 
73 
74  };//class LevelRiesz
75 
76 }// namespace hp1D
77 
78 #endif //levelRiesz_hh
const concepts::ElementFormulaContainer< Real > observable_
Definition: levelRiesz.hh:71
const concepts::Space< Real > & space2D_
Definition: levelRiesz.hh:68
virtual void operator()(const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const
This method loops over all elements of the 2D space and cells levelRieszElement on each one of them.
Point< Real, 2 > Real2d
virtual std::ostream & info(std::ostream &os) const
Abstract class for a linear form.
This class creates a linearform corresponding to the integral:
Definition: levelRiesz.hh:34
LevelRiesz(const concepts::Space< Real > &space2D, const concepts::ElementFormulaContainer< Real > &levelFunction, const concepts::ElementFormulaContainer< Real2d > &levelFunctionGrad, const concepts::ElementFormulaContainer< Real > &observable)
Constructor The level function $\psi$ and it's gradient are defined on a 2D space.
const concepts::ElementFormulaContainer< Real > levelFunction_
Definition: levelRiesz.hh:69
const concepts::ElementFormulaContainer< Real2d > levelFunctionGrad_
Definition: levelRiesz.hh:70
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