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"
13 #include "function/linearForm.hh"
14 #include "integration.hh"
15 #include "timestepping/vectors.hh"
16 
17 #include "triangle.hh"
18 #include "meshInfo.hh"
19 
20 #define DEBUG_FILLDATA 0
21 
22 using concepts::Real;
23 
24 namespace linDG2D {
25 
30  public:
42  MeshInfo& mi,
43  Real omega, Real tau,
44  uint nQuadPts) :
45  timestepping::TimeLinearForm(), frm_(frm), bc_(bc) , mi_(mi),
46  omega_(omega), tau_(tau), nQuadPts_(nQuadPts) { }
51  void operator() (const concepts::Element<Real> &elmBase,
53  private:
56  const MeshInfo& mi_;
57  const Real omega_;
58  const Real tau_;
59  const uint nQuadPts_;
60  };
61 
66  class ScalarProductLf : public concepts::LinearForm<Real> {
67  public:
73  : frm_(frm), nQuadPts_(nQuadPts) { };
78  void operator() (const concepts::Element<Real> &elmBase,
80  private:
82  const uint nQuadPts_;
83  };
84 
85 } // namespace linDG2D
86 
87 #endif //dgLinearForms_hh
DG right hand side for time dependent problems with diffusion in 2D.
Definition: linearForm.hh:29
LaplaceTimeLf(concepts::Formula< Real > &frm, concepts::BoundaryConditions *bc, MeshInfo &mi, Real omega, Real tau, uint nQuadPts)
Constructor.
Definition: linearForm.hh:40
const concepts::BoundaryConditions * bc_
Definition: linearForm.hh:55
Timestepping methods used to solve PDEs in time and space.
Definition: alpha.hh:18
Abstract class for a linear form.
DG FEM for 2D problems using piecewise linear shape functions.
Definition: bilinearForm.hh:15
Mesh info about edges for DG FEM in 2D.
Definition: meshInfo.hh:25
ScalarProductLf(concepts::Formula< Real > &frm, uint nQuadPts)
Constructor.
Definition: linearForm.hh:72
void operator()(const concepts::Element< Real > &elmBase, concepts::ElementMatrix< Real > &em)
Application operator.
const concepts::Formula< Real > & frm_
Definition: linearForm.hh:81
const concepts::Formula< Real > & frm_
Definition: linearForm.hh:54
Pure L2 scalar product linear form for DG in 2D.
Definition: linearForm.hh:66
Abstract class implementing time dependent linear forms.
Definition: vectors.hh:35
const MeshInfo & mi_
Definition: linearForm.hh:56
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
void operator()(const concepts::Element< Real > &elmBase, concepts::ElementMatrix< Real > &em)
Application operator.
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich