Dune Core Modules (2.6.0)

prismp1.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_P13DLOCALFINITEELEMENT_HH
4#define DUNE_P13DLOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9
10#include "prismp1/prismp1localbasis.hh"
11#include "prismp1/prismp1localcoefficients.hh"
12#include "prismp1/prismp1localinterpolation.hh"
13
14namespace Dune
15{
16
19 template<class D, class R>
21 {
22 public:
26 PrismP1LocalInterpolation<PrismP1LocalBasis<D,R> > > Traits;
27
31 {}
32
33
36 const typename Traits::LocalBasisType& localBasis () const
37 {
38 return basis;
39 }
40
44 {
45 return coefficients;
46 }
47
51 {
52 return interpolation;
53 }
54
56 unsigned int size () const
57 {
58 return basis.size();
59 }
60
63 static constexpr GeometryType type ()
64 {
66 }
67
68 private:
70 PrismP1LocalCoefficients coefficients;
71 PrismP1LocalInterpolation<PrismP1LocalBasis<D,R> > interpolation;
72 };
73
74}
75
76#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
Linear Lagrange shape functions on the prism.
Definition: prismp1localbasis.hh:26
Layout map for PrismP1 elements.
Definition: prismp1localcoefficients.hh:22
First-order Lagrangian finite element on a prism.
Definition: prismp1.hh:21
PrismP1LocalFiniteElement()
Definition: prismp1.hh:30
const Traits::LocalBasisType & localBasis() const
Definition: prismp1.hh:36
unsigned int size() const
Number of shape functions in this finite element.
Definition: prismp1.hh:56
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: prismp1.hh:43
LocalFiniteElementTraits< PrismP1LocalBasis< D, R >, PrismP1LocalCoefficients, PrismP1LocalInterpolation< PrismP1LocalBasis< D, R > > > Traits
Definition: prismp1.hh:26
const Traits::LocalInterpolationType & localInterpolation() const
Definition: prismp1.hh:50
static constexpr GeometryType type()
Definition: prismp1.hh:63
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 (Dec 26, 23:30, 2024)