Dune Core Modules (2.8.0)

rannacherturek.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
4#define DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9
10#include "rannachertureklocalbasis.hh"
11#include "rannachertureklocalcoefficients.hh"
12#include "rannachertureklocalinterpolation.hh"
13
14namespace Dune
15{
16
26 template< class D, class R, unsigned int d >
28 {
34
36 const typename Traits::LocalBasisType &localBasis () const
37 {
38 return localBasis_;
39 }
40
43 {
44 return localCoefficients_;
45 }
46
49 {
50 return localInterpolation_;
51 }
52
54 unsigned int size () const
55 {
56 return localBasis_.size();
57 }
58
61 {
62 return GeometryTypes::cube(d);
63 }
64
65 private:
66 typename Traits::LocalBasisType localBasis_;
67 typename Traits::LocalCoefficientsType localCoefficients_;
68 typename Traits::LocalInterpolationType localInterpolation_;
69 };
70
71} // namespace Dune
72
73#endif // #ifndef DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
please doc me
Definition: rannachertureklocalinterpolation.hh:28
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:470
Dune namespace.
Definition: alignedallocator.hh:11
traits helper struct
Definition: localfiniteelementtraits.hh:11
LB LocalBasisType
Definition: localfiniteelementtraits.hh:14
LC LocalCoefficientsType
Definition: localfiniteelementtraits.hh:18
LI LocalInterpolationType
Definition: localfiniteelementtraits.hh:22
layout for Rannacher-Turek elements
Definition: rannachertureklocalcoefficients.hh:24
Rannacher-Turek shape functions.
Definition: rannacherturek.hh:28
unsigned int size() const
Number of shape functions in this finite element.
Definition: rannacherturek.hh:54
const Traits::LocalInterpolationType & localInterpolation() const
return local interpolation
Definition: rannacherturek.hh:48
GeometryType type() const
return geometry type
Definition: rannacherturek.hh:60
const Traits::LocalBasisType & localBasis() const
return local basis
Definition: rannacherturek.hh:36
const Traits::LocalCoefficientsType & localCoefficients() const
return local coefficients
Definition: rannacherturek.hh:42
LocalFiniteElementTraits< RannacherTurekLocalBasis< D, R, d >, RannacherTurekLocalCoefficients< d >, RannacherTurekLocalInterpolation< D, R, d > > Traits
export traits class
Definition: rannacherturek.hh:33
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)