DUNE-FEM (unstable)

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// 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_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
6#define DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
7
9
10#include <dune/localfunctions/common/localfiniteelementtraits.hh>
11
12#include "rannachertureklocalbasis.hh"
13#include "rannachertureklocalcoefficients.hh"
14#include "rannachertureklocalinterpolation.hh"
15
16namespace Dune
17{
18
28 template< class D, class R, unsigned int d >
30 {
36
38 const typename Traits::LocalBasisType &localBasis () const
39 {
40 return localBasis_;
41 }
42
45 {
46 return localCoefficients_;
47 }
48
51 {
52 return localInterpolation_;
53 }
54
56 unsigned int size () const
57 {
58 return localBasis_.size();
59 }
60
63 {
64 return GeometryTypes::cube(d);
65 }
66
67 private:
68 typename Traits::LocalBasisType localBasis_;
69 typename Traits::LocalCoefficientsType localCoefficients_;
70 typename Traits::LocalInterpolationType localInterpolation_;
71 };
72
73} // namespace Dune
74
75#endif // #ifndef DUNE_RANNACHER_TUREK_LOCALFINITEELEMENT_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
please doc me
Definition: rannachertureklocalinterpolation.hh:31
constexpr GeometryType cube(unsigned int dim)
Returns a GeometryType representing a hypercube of dimension dim.
Definition: type.hh:462
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
layout for Rannacher-Turek elements
Definition: rannachertureklocalcoefficients.hh:27
Rannacher-Turek shape functions.
Definition: rannacherturek.hh:30
unsigned int size() const
Number of shape functions in this finite element.
Definition: rannacherturek.hh:56
const Traits::LocalInterpolationType & localInterpolation() const
return local interpolation
Definition: rannacherturek.hh:50
GeometryType type() const
return geometry type
Definition: rannacherturek.hh:62
const Traits::LocalBasisType & localBasis() const
return local basis
Definition: rannacherturek.hh:38
const Traits::LocalCoefficientsType & localCoefficients() const
return local coefficients
Definition: rannacherturek.hh:44
LocalFiniteElementTraits< RannacherTurekLocalBasis< D, R, d >, RannacherTurekLocalCoefficients< d >, RannacherTurekLocalInterpolation< D, R, d > > Traits
export traits class
Definition: rannacherturek.hh:35
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)