DUNE-FEM (unstable)

raviartthomas0cube2d.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_CUBE2D_LOCALFINITEELEMENT_HH
6#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11#include "raviartthomas0cube2d/raviartthomas0cube2dall.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 RT0Cube2DLocalBasis<D,R> basis;
68 RT0Cube2DLocalCoefficients coefficients;
69 RT0Cube2DLocalInterpolation<RT0Cube2DLocalBasis<D,R> > interpolation;
70 };
71}
72#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS0_CUBE2D_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Definition: raviartthomas0cube2dall.hh:30
Definition: raviartthomas0cube2dall.hh:187
Zero order Raviart-Thomas shape functions on rectangles.
Definition: raviartthomas0cube2d.hh:25
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas0cube2d.hh:56
Definition: raviartthomas0cube2dall.hh:135
constexpr GeometryType quadrilateral
GeometryType representing a quadrilateral (a square).
Definition: type.hh:510
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 (Nov 12, 23:30, 2024)