dune-localfunctions  2.11
raviartthomas4cube2d.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_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
6 #define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
7 
8 #include <dune/geometry/type.hh>
9 
10 #include "../common/localfiniteelementtraits.hh"
14 
15 namespace Dune
16 {
27  template<class D, class R>
29  {
30 
31  public:
36 
39  {}
40 
47  basis(s),
48  interpolation(s)
49  {}
50 
51  const typename Traits::LocalBasisType& localBasis () const
52  {
53  return basis;
54  }
55 
57  {
58  return coefficients;
59  }
60 
62  {
63  return interpolation;
64  }
65 
67  unsigned int size () const
68  {
69  return basis.size();
70  }
71 
72  static constexpr GeometryType type ()
73  {
74  return GeometryTypes::quadrilateral;
75  }
76 
77  private:
79  RT4Cube2DLocalCoefficients coefficients;
81  };
82 }
83 #endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
static constexpr GeometryType type()
Definition: raviartthomas4cube2d.hh:72
traits helper struct
Definition: localfiniteelementtraits.hh:12
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas4cube2d.hh:67
Second order Raviart-Thomas shape functions on cubes.
Definition: raviartthomas4cube2d.hh:28
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:20
Second order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas4cube2dlocalbasis.hh:28
RT4Cube2DLocalFiniteElement(int s)
Make set number s, where 0 <= s < 16.
Definition: raviartthomas4cube2d.hh:46
Definition: bdfmcube.hh:17
Second order Raviart-Thomas shape functions on the reference triangle.
Definition: raviartthomas4cube2dlocalinterpolation.hh:24
const Traits::LocalBasisType & localBasis() const
Definition: raviartthomas4cube2d.hh:51
const Traits::LocalInterpolationType & localInterpolation() const
Definition: raviartthomas4cube2d.hh:61
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: raviartthomas4cube2d.hh:56
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:24
LB LocalBasisType
Definition: localfiniteelementtraits.hh:16
RT4Cube2DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas4cube2d.hh:38
Layout map for Raviart-Thomas-4 elements on quadrilaterals.
Definition: raviartthomas4cube2dlocalcoefficients.hh:22
LocalFiniteElementTraits< RT4Cube2DLocalBasis< D, R >, RT4Cube2DLocalCoefficients, RT4Cube2DLocalInterpolation< RT4Cube2DLocalBasis< D, R > > > Traits
Definition: raviartthomas4cube2d.hh:35