dune-localfunctions  2.7.0
bdfmcube.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
4 #define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
5 
6 #include <dune/geometry/type.hh>
7 
9 
13 
14 
15 namespace Dune
16 {
17 
41  template<class D, class R, unsigned int dim, unsigned int order>
43  {
47 
48  public:
50 
53 
59  BDFMCubeLocalFiniteElement (std::bitset<2*dim> s)
60  : basis( s ), interpolation( s )
61  {}
62 
63  auto localBasis () const -> const LocalBasis& { return basis; }
64  auto localCoefficients () const -> const LocalCoefficients& { return coefficients; }
65  auto localInterpolation () const -> const LocalInterpolation& { return interpolation; }
66 
68  unsigned int size () const { return basis.size(); }
69  static constexpr auto type () -> GeometryType { return GeometryTypes::cube(dim); }
70 
71  private:
72  LocalBasis basis;
73  LocalCoefficients coefficients;
74  LocalInterpolation interpolation;
75  };
76 
77 } // namespace Dune
78 
79 #endif // #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
localbasis.hh
Dune::BDFMCubeLocalBasis
Brezzi-Douglas-Fortin-Marini shape functions on a reference cube.
Definition: brezzidouglasfortinmarini/cube/localbasis.hh:34
Dune::BDFMCubeLocalFiniteElement::localCoefficients
auto localCoefficients() const -> const LocalCoefficients &
Definition: bdfmcube.hh:64
localfiniteelementtraits.hh
Dune
Definition: bdfmcube.hh:15
Dune::BDFMCubeLocalFiniteElement
Brezzi-Douglas-Fortin-Marini finite elements for cubes.
Definition: bdfmcube.hh:42
Dune::BDFMCubeLocalFiniteElement::size
unsigned int size() const
Number of shape functions in this finite element.
Definition: bdfmcube.hh:68
Dune::BDFMCubeLocalFiniteElement::BDFMCubeLocalFiniteElement
BDFMCubeLocalFiniteElement()
Standard constructor.
Definition: bdfmcube.hh:52
Dune::LocalFiniteElementTraits
traits helper struct
Definition: localfiniteelementtraits.hh:10
localcoefficients.hh
Dune::BDFMCubeLocalFiniteElement::localInterpolation
auto localInterpolation() const -> const LocalInterpolation &
Definition: bdfmcube.hh:65
Dune::BDFMCubeLocalFiniteElement::BDFMCubeLocalFiniteElement
BDFMCubeLocalFiniteElement(std::bitset< 2 *dim > s)
Make set number s, where 0 <= s < 2^(2*dim)
Definition: bdfmcube.hh:59
Dune::BDFMCubeLocalFiniteElement::localBasis
auto localBasis() const -> const LocalBasis &
Definition: bdfmcube.hh:63
Dune::BDFMCubeLocalCoefficients
Layout map for Brezzi-Douglas-Fortin-Marini elements on cubes.
Definition: localcoefficients.hh:30
localinterpolation.hh
Dune::BDFMCubeLocalInterpolation
Interpolation for Brezzi-Douglas-Fortin-Marini shape functions on cubes.
Definition: brezzidouglasfortinmarini/cube/localinterpolation.hh:35
Dune::BDFMCubeLocalFiniteElement::type
static constexpr auto type() -> GeometryType
Definition: bdfmcube.hh:69