DUNE PDELab (git)

raviartthomas3cube2d.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_RAVIARTTHOMAS3_CUBE2D_LOCALFINITEELEMENT_HH
6#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS3_CUBE2D_LOCALFINITEELEMENT_HH
7
9
10#include "../common/localfiniteelementtraits.hh"
11#include "raviartthomas3cube2d/raviartthomas3cube2dlocalbasis.hh"
12#include "raviartthomas3cube2d/raviartthomas3cube2dlocalcoefficients.hh"
13#include "raviartthomas3cube2d/raviartthomas3cube2dlocalinterpolation.hh"
14
15namespace 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
56 const typename Traits::LocalCoefficientsType& localCoefficients () const
57 {
58 return coefficients;
59 }
60
61 const typename Traits::LocalInterpolationType& localInterpolation () const
62 {
63 return interpolation;
64 }
65
67 unsigned int size () const
68 {
69 return basis.size();
70 }
71
72 static constexpr GeometryType type ()
73 {
75 }
76
77 private:
78 RT3Cube2DLocalBasis<D,R> basis;
79 RT3Cube2DLocalCoefficients coefficients;
80 RT3Cube2DLocalInterpolation<RT3Cube2DLocalBasis<D,R> > interpolation;
81 };
82}
83#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS3_CUBE2D_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Second order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas3cube2dlocalbasis.hh:29
Layout map for Raviart-Thomas-3 elements on quadrilaterals.
Definition: raviartthomas3cube2dlocalcoefficients.hh:23
Second order Raviart-Thomas shape functions on cubes.
Definition: raviartthomas3cube2d.hh:29
RT3Cube2DLocalFiniteElement(int s)
Make set number s, where 0 <= s < 16.
Definition: raviartthomas3cube2d.hh:46
RT3Cube2DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas3cube2d.hh:38
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas3cube2d.hh:67
Second order Raviart-Thomas shape functions on the reference quadrilateral.
Definition: raviartthomas3cube2dlocalinterpolation.hh:25
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 13, 23:29, 2024)