Class documentation of Concepts

Loading...
Searching...
No Matches
linearForm2D.hh
Go to the documentation of this file.
1
6#ifndef linearForm2D_hh
7#define linearForm2D_hh
8
9#include "basics/typedefs.hh"
11#include "toolbox/array.hh"
12#include "formula/formula.hh"
14
15namespace linearFEM {
16
17 using concepts::Real;
18
19 class Quad;
20 class Triangle;
21
22 // *************************************************************** Riesz2d **
23
29 class Riesz2d : public concepts::LinearForm<Real> {
30 public:
35 frm_(frm.clone()), shpfct_(0) {}
36 virtual void operator()(const concepts::Element<Real>& elm,
39 void operator()(const linearFEM::Quad& elm,
44 private:
46 std::unique_ptr<const concepts::Formula<Real> > frm_;
47 mutable concepts::Array<concepts::Real> shpfct_;
49 static const Real weights_[4];
51 static const concepts::Real2d coord_[4];
52 };
53
54} // namespace linearFEM
55
56#endif // linearForm2D_hh
57
void operator()(const linearFEM::Triangle &elm, concepts::ElementMatrix< Real > &em) const
Computes the local load vector for a triangle.
void operator()(const linearFEM::Quad &elm, concepts::ElementMatrix< Real > &em) const
Computes the local load vector for a quad.
Riesz2d(const concepts::Formula< Real > &frm)
double Real
Definition typedefs.hh:39