dune-localfunctions
2.11
Toggle main menu visibility
Loading...
Searching...
No Matches
dune
localfunctions
brezzidouglasfortinmarini
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
// 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
8
#include <dune/geometry/type.hh>
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
17
namespace
Dune
18
{
19
43
template
<
class
D,
class
R,
unsigned
int
dim,
unsigned
int
order>
44
class
BDFMCubeLocalFiniteElement
45
{
46
using
LocalBasis =
BDFMCubeLocalBasis<D, R, dim, order>
;
47
using
LocalCoefficients =
BDFMCubeLocalCoefficients<D, R, dim, order>
;
48
using
LocalInterpolation =
BDFMCubeLocalInterpolation<D, R, dim, order>
;
49
50
public
:
51
using
Traits
=
LocalFiniteElementTraits<LocalBasis, LocalCoefficients, LocalInterpolation >
;
52
54
BDFMCubeLocalFiniteElement
() {}
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
localfiniteelementtraits.hh
Dune
Definition
bdfmcube.hh:18
Dune::coefficients
const int RannacherTurek3DLocalBasis< D, R >::coefficients[6][6]
Definition
rannacherturek3dlocalbasis.hh:121
Dune::BDFMCubeLocalFiniteElement::localCoefficients
auto localCoefficients() const -> const LocalCoefficients &
Definition
bdfmcube.hh:66
Dune::BDFMCubeLocalFiniteElement::size
unsigned int size() const
Number of shape functions in this finite element.
Definition
bdfmcube.hh:70
Dune::BDFMCubeLocalFiniteElement::BDFMCubeLocalFiniteElement
BDFMCubeLocalFiniteElement()
Standard constructor.
Definition
bdfmcube.hh:54
Dune::BDFMCubeLocalFiniteElement::localBasis
auto localBasis() const -> const LocalBasis &
Definition
bdfmcube.hh:65
Dune::BDFMCubeLocalFiniteElement::Traits
LocalFiniteElementTraits< LocalBasis, LocalCoefficients, LocalInterpolation > Traits
Definition
bdfmcube.hh:51
Dune::BDFMCubeLocalFiniteElement::type
static constexpr auto type() -> GeometryType
Definition
bdfmcube.hh:71
Dune::BDFMCubeLocalFiniteElement::localInterpolation
auto localInterpolation() const -> const LocalInterpolation &
Definition
bdfmcube.hh:67
Dune::BDFMCubeLocalFiniteElement::BDFMCubeLocalFiniteElement
BDFMCubeLocalFiniteElement(std::bitset< 2 *dim > s)
Make set number s, where 0 <= s < 2^(2*dim).
Definition
bdfmcube.hh:61
Dune::BDFMCubeLocalBasis
Brezzi-Douglas-Fortin-Marini shape functions on a reference cube.
Definition
brezzidouglasfortinmarini/cube/localbasis.hh:37
Dune::BDFMCubeLocalCoefficients
Layout map for Brezzi-Douglas-Fortin-Marini elements on cubes.
Definition
brezzidouglasfortinmarini/cube/localcoefficients.hh:33
Dune::BDFMCubeLocalInterpolation
Interpolation for Brezzi-Douglas-Fortin-Marini shape functions on cubes.
Definition
brezzidouglasfortinmarini/cube/localinterpolation.hh:36
Dune::LocalFiniteElementTraits
traits helper struct
Definition
localfiniteelementtraits.hh:13
localbasis.hh
localcoefficients.hh
localinterpolation.hh
Generated by
1.17.0