Dune Core Modules (unstable)

raviartthomas0cube3d.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_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
6#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11#include "raviartthomas0cube3d/raviartthomas0cube3dall.hh"
12
13namespace Dune
14{
23 template<class D, class R>
25 {
26 public:
31
33 {}
34
36 basis(s),
37 interpolation(s)
38 {}
39
40 const typename Traits::LocalBasisType& localBasis () const
41 {
42 return basis;
43 }
44
45 const typename Traits::LocalCoefficientsType& localCoefficients () const
46 {
47 return coefficients;
48 }
49
50 const typename Traits::LocalInterpolationType& localInterpolation () const
51 {
52 return interpolation;
53 }
54
56 unsigned int size () const
57 {
58 return basis.size();
59 }
60
61 static constexpr GeometryType type ()
62 {
64 }
65
66 private:
67 RT0Cube3DLocalBasis<D,R> basis;
68 RT0Cube3DLocalCoefficients coefficients;
69 RT0Cube3DLocalInterpolation<RT0Cube3DLocalBasis<D,R> > interpolation;
70 };
71}
72#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE3D_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Definition: raviartthomas0cube3dall.hh:30
Definition: raviartthomas0cube3dall.hh:216
Zero order Raviart-Thomas shape functions on cubes.
Definition: raviartthomas0cube3d.hh:25
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas0cube3d.hh:56
Definition: raviartthomas0cube3dall.hh:158
constexpr GeometryType hexahedron
GeometryType representing a hexahedron.
Definition: type.hh:534
Dune namespace.
Definition: alignedallocator.hh:13
traits helper struct
Definition: localfiniteelementtraits.hh:13
LB LocalBasisType
Definition: localfiniteelementtraits.hh:16
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:20
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:24
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)