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"
13 #include "function/linearForm.hh"
14 
15 namespace 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_;
49  static const Real weights_[4];
51  static const concepts::Real2d coord_[4];
52  };
53 
54 } // namespace linearFEM
55 
56 #endif // linearForm2D_hh
57 
virtual void operator()(const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const
void operator()(const linearFEM::Triangle &elm, concepts::ElementMatrix< Real > &em) const
Computes the local load vector for a triangle.
static const Real weights_[4]
Integration weights (3rd order)
Definition: linearForm2D.hh:49
Abstract class for a linear form.
void operator()(const linearFEM::Quad &elm, concepts::ElementMatrix< Real > &em) const
Computes the local load vector for a quad.
Linear FEM in 1D, 2D and 3D.
Definition: spaceTraits.hh:19
Linear form form 2D linear FEM.
Definition: linearForm2D.hh:29
Quadrilateral element with bilinear shape functions in 2D.
Definition: element2D.hh:79
static const concepts::Real2d coord_[4]
Integration points (3rd order)
Definition: linearForm2D.hh:51
concepts::Array< concepts::Real > shpfct_
Definition: linearForm2D.hh:47
Riesz2d(const concepts::Formula< Real > &frm)
Constructor.
Definition: linearForm2D.hh:34
Triangular element with linear shape functions in 2D.
Definition: element2D.hh:29
std::unique_ptr< const concepts::Formula< Real > > frm_
Formula.
Definition: linearForm2D.hh:46
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich