Dune Core Modules (2.6.0)

pyramidp1.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3
4#ifndef DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
5#define DUNE_PYRAMID_P1_LOCALFINITEELEMENT_HH
6
8
9#include <dune/localfunctions/common/localfiniteelementtraits.hh>
10
11#include "pyramidp1/pyramidp1localbasis.hh"
12#include "pyramidp1/pyramidp1localcoefficients.hh"
13#include "pyramidp1/pyramidp1localinterpolation.hh"
14
15namespace Dune
16{
17
20 template<class D, class R>
22 {
23 public:
27 PyramidP1LocalInterpolation<PyramidP1LocalBasis<D,R> > > Traits;
28
29
30
34 {}
35
36
39 const typename Traits::LocalBasisType& localBasis () const
40 {
41 return basis;
42 }
43
47 {
48 return coefficients;
49 }
50
54 {
55 return interpolation;
56 }
57
59 unsigned int size () const
60 {
61 return basis.size();
62 }
63
66 static constexpr GeometryType type ()
67 {
69 }
70
71 private:
73 PyramidP1LocalCoefficients coefficients;
74 PyramidP1LocalInterpolation<PyramidP1LocalBasis<D,R> > interpolation;
75 };
76
77}
78
79#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Linear Lagrange shape functions on the pyramid.
Definition: pyramidp1localbasis.hh:27
Layout map for PyramidP1 elements.
Definition: pyramidp1localcoefficients.hh:21
First-order Lagrangian finite element on a prism.
Definition: pyramidp1.hh:22
LocalFiniteElementTraits< PyramidP1LocalBasis< D, R >, PyramidP1LocalCoefficients, PyramidP1LocalInterpolation< PyramidP1LocalBasis< D, R > > > Traits
Definition: pyramidp1.hh:27
unsigned int size() const
Number of shape functions in this finite element.
Definition: pyramidp1.hh:59
const Traits::LocalBasisType & localBasis() const
Definition: pyramidp1.hh:39
static constexpr GeometryType type()
Definition: pyramidp1.hh:66
const Traits::LocalInterpolationType & localInterpolation() const
Definition: pyramidp1.hh:53
PyramidP1LocalFiniteElement()
Definition: pyramidp1.hh:33
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: pyramidp1.hh:46
constexpr GeometryType pyramid
GeometryType representing a 3D pyramid.
Definition: type.hh:757
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 (Nov 24, 23:30, 2024)