linearForm1D.hh

Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "basics/typedefs.hh"
10 #include "toolbox/array.hh"
11 #include "formula/formula.hh"
12 #include "function/linearForm.hh"
14 
15 namespace linearFEM {
16 
17  using concepts::Real;
18 
19  // *************************************************************** Riesz1d **
20 
26  class Riesz1d : public concepts::LinearForm<Real> {
27  public:
32  Riesz1d(const concepts::Formula<Real>& frm, const uint gauss_p = 1) :
33  frm_(frm.clone()), quad_(gauss_p) {}
34  virtual void operator()(const concepts::Element<Real>& elm,
36  private:
38  std::unique_ptr<const concepts::Formula<Real> > frm_;
41  };
42 
43 } // namespace linearFEM
44 
const concepts::Quadrature< 4 > quad_
Quadrature formula.
Definition: linearForm1D.hh:40
virtual void operator()(const concepts::Element< Real > &elm, concepts::ElementMatrix< Real > &em) const
Riesz1d(const concepts::Formula< Real > &frm, const uint gauss_p=1)
Constructor.
Definition: linearForm1D.hh:32
Abstract class for a linear form.
Linear form form 1D linear FEM.
Definition: linearForm1D.hh:26
Linear FEM in 1D, 2D and 3D.
Definition: spaceTraits.hh:19
std::unique_ptr< const concepts::Formula< Real > > frm_
Formula.
Definition: linearForm1D.hh:38
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