Dune Core Modules (2.6.0)

prismp2.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_PRISM2_3DLOCALFINITEELEMENT_HH
4#define DUNE_PRISM2_3DLOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "prismp2/prismp2localbasis.hh"
10#include "prismp2/prismp2localcoefficients.hh"
11#include "prismp2/prismp2localinterpolation.hh"
12
13namespace Dune
14{
15
18 template<class D, class R>
20 {
21 public:
26 PrismP2LocalInterpolation<PrismP2LocalBasis<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 PrismP2LocalCoefficients coefficients;
70 PrismP2LocalInterpolation<PrismP2LocalBasis<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 prism.
Definition: prismp2localbasis.hh:26
Layout map for PrismP2 elements.
Definition: prismp2localcoefficients.hh:21
Definition: prismp2.hh:20
unsigned int size() const
Number of shape functions in this finite element.
Definition: prismp2.hh:55
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: prismp2.hh:42
LocalFiniteElementTraits< PrismP2LocalBasis< D, R >, PrismP2LocalCoefficients, PrismP2LocalInterpolation< PrismP2LocalBasis< D, R > > > Traits
Definition: prismp2.hh:26
const Traits::LocalInterpolationType & localInterpolation() const
Definition: prismp2.hh:49
static constexpr GeometryType type()
Definition: prismp2.hh:62
PrismP2LocalFiniteElement()
Definition: prismp2.hh:30
const Traits::LocalBasisType & localBasis() const
Definition: prismp2.hh:35
constexpr GeometryType prism
GeometryType representing a 3D prism.
Definition: type.hh:763
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)