DUNE PDELab (git)

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// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5#ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
6#define DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11
12#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localbasis.hh>
13#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localcoefficients.hh>
14#include <dune/localfunctions/brezzidouglasfortinmarini/cube/localinterpolation.hh>
15
16
17namespace Dune
18{
19
43 template<class D, class R, unsigned int dim, unsigned int order>
45 {
49
50 public:
52
55
61 BDFMCubeLocalFiniteElement (std::bitset<2*dim> s)
62 : basis( s ), interpolation( s )
63 {}
64
65 auto localBasis () const -> const LocalBasis& { return basis; }
66 auto localCoefficients () const -> const LocalCoefficients& { return coefficients; }
67 auto localInterpolation () const -> const LocalInterpolation& { return interpolation; }
68
70 unsigned int size () const { return basis.size(); }
71 static constexpr auto type () -> GeometryType { return GeometryTypes::cube(dim); }
72
73 private:
74 LocalBasis basis;
75 LocalCoefficients coefficients;
76 LocalInterpolation interpolation;
77 };
78
79} // namespace Dune
80
81#endif // #ifndef DUNE_LOCALFUNCTIONS_BREZZIDOUGLASFORTINMARINI_BDFMCUBE_HH
Brezzi-Douglas-Fortin-Marini shape functions on a reference cube.
Definition: localbasis.hh:37
Layout map for Brezzi-Douglas-Fortin-Marini elements on cubes.
Definition: localcoefficients.hh:33
Brezzi-Douglas-Fortin-Marini finite elements for cubes.
Definition: bdfmcube.hh:45
unsigned int size() const
Number of shape functions in this finite element.
Definition: bdfmcube.hh:70
BDFMCubeLocalFiniteElement()
Standard constructor.
Definition: bdfmcube.hh:54
BDFMCubeLocalFiniteElement(std::bitset< 2 *dim > s)
Make set number s, where 0 <= s < 2^(2*dim)
Definition: bdfmcube.hh:61
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:114
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:462
Dune namespace.
Definition: alignedallocator.hh:13
traits helper struct
Definition: localfiniteelementtraits.hh:13
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 (Nov 24, 23:30, 2024)