Dune Core Modules (2.6.0)

pk3d.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_Pk3DLOCALFINITEELEMENT_HH
4#define DUNE_Pk3DLOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "pk3d/pk3dlocalbasis.hh"
10#include "pk3d/pk3dlocalcoefficients.hh"
11#include "pk3d/pk3dlocalinterpolation.hh"
12
13namespace Dune
14{
15
18 template<class D, class R, unsigned int k>
20 {
21 public:
26 Pk3DLocalInterpolation<Pk3DLocalBasis<D,R,k> > > Traits;
27
31 {}
32
39 Pk3DLocalFiniteElement (const unsigned int vertexmap[4]) :
40 coefficients(vertexmap)
41 {}
42
45 const typename Traits::LocalBasisType& localBasis () const
46 {
47 return basis;
48 }
49
53 {
54 return coefficients;
55 }
56
60 {
61 return interpolation;
62 }
63
65 unsigned int size () const
66 {
67 return basis.size();
68 }
69
72 static constexpr GeometryType type ()
73 {
75 }
76
77 private:
79 Pk3DLocalCoefficients<k> coefficients;
80 Pk3DLocalInterpolation<Pk3DLocalBasis<D,R,k> > interpolation;
81 };
82
83}
84
85#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Lagrange shape functions of arbitrary order on the reference tetrahedron.
Definition: pk3dlocalbasis.hh:28
Please doc me!
Definition: pk3dlocalcoefficients.hh:23
Definition: pk3d.hh:20
const Traits::LocalBasisType & localBasis() const
Definition: pk3d.hh:45
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pk3d.hh:52
Pk3DLocalFiniteElement(const unsigned int vertexmap[4])
Definition: pk3d.hh:39
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pk3d.hh:59
unsigned int size() const
Number of shape functions in this finite element.
Definition: pk3d.hh:65
LocalFiniteElementTraits< Pk3DLocalBasis< D, R, k >, Pk3DLocalCoefficients< k >, Pk3DLocalInterpolation< Pk3DLocalBasis< D, R, k > > > Traits
Definition: pk3d.hh:26
static constexpr GeometryType type()
Definition: pk3d.hh:72
Pk3DLocalFiniteElement()
Definition: pk3d.hh:30
constexpr GeometryType tetrahedron
GeometryType representing a tetrahedron.
Definition: type.hh:751
Dune namespace.
Definition: alignedallocator.hh:10
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
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 (Dec 26, 23:30, 2024)