Class documentation of Concepts

Loading...
Searching...
No Matches
linearForm.hh
Go to the documentation of this file.
1
6#ifndef dgLinearForms_hh
7#define dgLinearForms_hh
8
9#include "basics/typedefs.hh"
10#include "formula/formula.hh"
11#include "formula/boundary.hh"
14#include "element.hh"
15
16#include <vector>
17
18#define DEBUG_FILLDATA 0
19
20namespace linDG3D {
21 using concepts::Real;
22
23 // ************************************************************** ConstRhs **
24
31 public:
32 ConstRhs(Real c = 1.0) : c_(c) {}
38 virtual void operator()(const concepts::Element<Real>& elm,
44 void operator()(const FvdgElement& elm,
46 private:
47 Real c_;
48 };
49
50 // *********************************************************** FvdgTimeRhs **
53 public:
59 timestepping::TimeLinearForm(),
60 frm_(frm) {}
67 private:
68 const concepts::Formula<Real>& frm_;
69 };
70
71 //******************************************************** FvdgTimeRhsDiff **
74 public:
83 concepts::BoundaryConditions* bc, bool symm = false) :
84 timestepping::TimeLinearForm(), frm_(frm), eps_(eps), bc_(bc) {
85 symm_ = symm ? -1 : 1;
86 }
93 private:
94 const concepts::Formula<Real>& frm_;
95 const Real eps_;
97 int symm_;
98 };
99
100} // namespace linDG3D
101
102#endif //dgLinearForms_hh
void operator()(const FvdgElement &elm, concepts::ElementMatrix< Real > &em)
virtual void operator()(const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em)
Fvdg right hand side for time dependent problems with diffusion.
Definition linearForm.hh:73
FvdgTimeRhsDiff(concepts::Formula< Real > &frm, Real eps, concepts::BoundaryConditions *bc, bool symm=false)
Definition linearForm.hh:82
void operator()(const concepts::Element< Real > &elmBase, concepts::ElementMatrix< Real > &em)
Fvdg right hand side for time dependent problems.
Definition linearForm.hh:52
FvdgTimeRhs(concepts::Formula< Real > &frm)
Definition linearForm.hh:58
void operator()(const concepts::Element< Real > &elmBase, concepts::ElementMatrix< Real > &em)
double Real
Definition typedefs.hh:39