DUNE PDELab (2.8)

bdfmcube.hh
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
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9
10#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localbasis.hh>
11#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localcoefficients.hh>
12#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localinterpolation.hh>
13
14
15namespace 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
Brezzi-Douglas-Fortin-Marini shape functions on a reference cube.
Definition: localbasis.hh:35
Layout map for Brezzi-Douglas-Fortin-Marini elements on cubes.
Definition: localcoefficients.hh:31
Brezzi-Douglas-Fortin-Marini finite elements for cubes.
Definition: bdfmcube.hh:43
unsigned int size() const
Number of shape functions in this finite element.
Definition: bdfmcube.hh:68
BDFMCubeLocalFiniteElement()
Standard constructor.
Definition: bdfmcube.hh:52
BDFMCubeLocalFiniteElement(std::bitset< 2 *dim > s)
Make set number s, where 0 <= s < 2^(2*dim)
Definition: bdfmcube.hh:59
Interpolation for Brezzi-Douglas-Fortin-Marini shape functions on cubes.
Definition: localinterpolation.hh:36
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:470
Dune namespace.
Definition: alignedallocator.hh:11
traits helper struct
Definition: localfiniteelementtraits.hh:11
A unique label for each type of element that can occur in a grid.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)