Class documentation of Concepts

Loading...
Searching...
No Matches
bf_advection.hh
Go to the documentation of this file.
1
6#ifndef hp2dbf_advection_hh
7#define hp2dbf_advection_hh
8
9#include <memory>
11#include "basics/typedefs.hh"
15
16
17namespace concepts {
18 // forward declarations
19 template<class F>
20 class Array;
21
22 template<class F, uint dim>
23 class Point;
24
25 template<class F>
26 class Element;
27
28 template<class F>
29 class ElementMatrix;
30
31 template<typename F, typename G>
32 class ElementFormula;
33}
34
35namespace vectorial {
36 // forward declarations
37 template<class F, class G>
38 class BilinearForm;
39}
40
41namespace hp2D {
42 // forward declarations
43 template<class F>
44 class Quad;
45
46 class InfiniteLaguerreQuad;
47
48 using concepts::Real;
49
50
51 // ************************************************************* Advection **
52
71 template<class F = Real>
72 class Advection : public concepts::BilinearForm<F,Real>,
74 {
75 public:
78 : hp2D::LinearFormHelper_1<F>(frm1, frm2)
79 {}
80
84 {}
85
86 virtual ~Advection() {}
87
88 virtual Advection<F>* clone() const {
89 return new Advection<F>(this->frm_);
90 }
91
92 virtual void operator()(const concepts::Element<Real>& elmX,
93 const concepts::Element<Real>& elmY,
95
96 protected:
97 virtual std::ostream& info(std::ostream& os) const;
98 private:
100 bool operator()(const Quad<Real>* elmX,
101 const Quad<Real>* elmY,
104 bool operator()(const InfiniteLaguerreQuad* elmX,
105 const InfiniteLaguerreQuad* elmY,
107 };
108
109 // ********************************************************* setupAdvection **
110
134 template<class F>
138 bool transpose = true);
139
140
141} // namespace hp2D
142
143#endif // hp2dbf_advection_hh
virtual Advection< F > * clone() const
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
concepts::ElementFormulaContainer< concepts::Point< F, 2 > > frm_
ElementFormula.
double Real
Definition typedefs.hh:39
GenericElement< KarniadakisMixin< F > > Element
template aliases for backwards compatibility
Definition element.hh:267
void setupAdvection(vectorial::BilinearForm< F, typename concepts::Realtype< F >::type > &bf, const concepts::ElementFormulaContainer< concepts::Point< F, 2 > > frm, bool transpose=true)