Dune Core Modules (2.6.0)

dualp1.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_DUAL_P1LOCALFINITEELEMENT_HH
4#define DUNE_DUAL_P1LOCALFINITEELEMENT_HH
5
7
8#include <dune/localfunctions/common/localfiniteelementtraits.hh>
9#include "dualp1/dualp1localbasis.hh"
10#include "dualp1/dualp1localcoefficients.hh"
11#include "dualp1/dualp1localinterpolation.hh"
12
13namespace Dune
14{
15
31 template<class D, class R, int dim, bool faceDual=false>
33 {
34 public:
38 DualP1LocalInterpolation<dim,DualP1LocalBasis<D,R,dim,faceDual> > > Traits;
39
43 {}
44
47 const typename Traits::LocalBasisType& localBasis () const
48 {
49 return basis;
50 }
51
55 {
56 return coefficients;
57 }
58
62 {
63 return interpolation;
64 }
65
67 unsigned int size () const
68 {
69 return basis.size();
70 }
71
74 static constexpr GeometryType type ()
75 {
76 return GeometryTypes::simplex(dim);
77 }
78
79 private:
82 DualP1LocalInterpolation<dim,DualP1LocalBasis<D,R,dim,faceDual> > interpolation;
83 };
84
85
86
87}
88
89#endif
Dual Lagrange shape functions on the simplex.
Definition: dualp1localbasis.hh:32
Local coefficients for dual simplex P1 elements.
Definition: dualp1localcoefficients.hh:21
The local dual p1 finite element on simplices.
Definition: dualp1.hh:33
DualP1LocalFiniteElement()
Definition: dualp1.hh:42
unsigned int size() const
Number of shape functions in this finite element.
Definition: dualp1.hh:67
LocalFiniteElementTraits< DualP1LocalBasis< D, R, dim, faceDual >, DualP1LocalCoefficients< dim >, DualP1LocalInterpolation< dim, DualP1LocalBasis< D, R, dim, faceDual > > > Traits
Definition: dualp1.hh:38
const Traits::LocalInterpolationType & localInterpolation() const
Definition: dualp1.hh:61
const Traits::LocalBasisType & localBasis() const
Definition: dualp1.hh:47
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: dualp1.hh:54
static constexpr GeometryType type()
Definition: dualp1.hh:74
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:277
constexpr GeometryType simplex(unsigned int dim)
Returns a GeometryType representing a simplex of dimension dim.
Definition: type.hh:696
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)