Dune Core Modules (unstable)

raviartthomas4cube2d.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_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
6#define DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_CUBE2D_LOCALFINITEELEMENT_HH
7
9
10#include "../common/localfiniteelementtraits.hh"
11#include "raviartthomas4cube2d/raviartthomas4cube2dlocalbasis.hh"
12#include "raviartthomas4cube2d/raviartthomas4cube2dlocalcoefficients.hh"
13#include "raviartthomas4cube2d/raviartthomas4cube2dlocalinterpolation.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 RT4Cube2DLocalBasis<D,R> basis;
79 RT4Cube2DLocalCoefficients coefficients;
80 RT4Cube2DLocalInterpolation<RT4Cube2DLocalBasis<D,R> > interpolation;
81 };
82}
83#endif // DUNE_LOCALFUNCTIONS_RAVIARTTHOMAS4_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: raviartthomas4cube2dlocalbasis.hh:29
Layout map for Raviart-Thomas-4 elements on quadrilaterals.
Definition: raviartthomas4cube2dlocalcoefficients.hh:23
Second order Raviart-Thomas shape functions on cubes.
Definition: raviartthomas4cube2d.hh:29
unsigned int size() const
Number of shape functions in this finite element.
Definition: raviartthomas4cube2d.hh:67
RT4Cube2DLocalFiniteElement(int s)
Make set number s, where 0 <= s < 16.
Definition: raviartthomas4cube2d.hh:46
RT4Cube2DLocalFiniteElement()
Standard constructor.
Definition: raviartthomas4cube2d.hh:38
Second order Raviart-Thomas shape functions on the reference triangle.
Definition: raviartthomas4cube2dlocalinterpolation.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 (Jul 15, 22:36, 2024)