Dune Core Modules (2.6.0)

p23d.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_P2_3DLOCALFINITEELEMENT_HH
4#define DUNE_P2_3DLOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "p23d/p23dlocalbasis.hh"
10#include "p23d/p23dlocalcoefficients.hh"
11#include "p23d/p23dlocalinterpolation.hh"
12
13namespace Dune
14{
15
18 template<class D, class R>
20 {
21 public:
26 P23DLocalInterpolation<P23DLocalBasis<D,R> > > Traits;
27
31 {}
32
35 const typename Traits::LocalBasisType& localBasis () const
36 {
37 return basis;
38 }
39
43 {
44 return coefficients;
45 }
46
50 {
51 return interpolation;
52 }
53
55 unsigned int size () const
56 {
57 return basis.size();
58 }
59
62 static constexpr GeometryType type ()
63 {
65 }
66
67 private:
69 P23DLocalCoefficients coefficients;
70 P23DLocalInterpolation<P23DLocalBasis<D,R> > interpolation;
71 };
72
73}
74
75#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Quadratic Lagrange shape functions on the tetrahedron.
Definition: p23dlocalbasis.hh:26
Layout map for P23D elements.
Definition: p23dlocalcoefficients.hh:21
Definition: p23d.hh:20
unsigned int size() const
Number of shape functions in this finite element.
Definition: p23d.hh:55
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: p23d.hh:42
const Traits::LocalBasisType & localBasis() const
Definition: p23d.hh:35
P23DLocalFiniteElement()
Definition: p23d.hh:30
static constexpr GeometryType type()
Definition: p23d.hh:62
const Traits::LocalInterpolationType & localInterpolation() const
Definition: p23d.hh:49
LocalFiniteElementTraits< P23DLocalBasis< D, R >, P23DLocalCoefficients, P23DLocalInterpolation< P23DLocalBasis< D, R > > > Traits
Definition: p23d.hh:26
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)