Loading [MathJax]/extensions/MathMenu.js

dune-composites (unstable)

serendipity.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_LOCALFUNCTIONS_SERENDIPITY_LOCALFINITEELEMENT_HH
5#define DUNE_LOCALFUNCTIONS_SERENDIPITY_LOCALFINITEELEMENT_HH
6
7#include "serendipitylocalinterpolation.hh"
8#include "serendipitylocalbasis.hh"
9#include "serendipitylocalcoefficients.hh"
10
11namespace Dune
12{
21 template<class D, class R, int d, int k>
23
27
28 public:
29
32 typedef LocalFiniteElementTraits<LocalBasis,SerendipityLocalCoefficients<k,d>,LocalInterpolation> Traits;
33
37 {}
38
41 const typename Traits::LocalBasisType& localBasis () const
42 {
43 return basis;
44 }
45
48 const typename Traits::LocalCoefficientsType& localCoefficients () const
49 {
50 return coefficients;
51 }
52
55 const typename Traits::LocalInterpolationType& localInterpolation () const
56 {
57 return interpolation;
58 }
59
61 unsigned int size () const
62 {
63 return basis.size();
64 }
65
68 static constexpr GeometryType type ()
69 {
70 return GeometryTypes::cube(d);
71 }
72
73
74 private:
75 LocalBasis basis;
76 LocalCoefficients coefficients;
77 LocalInterpolation interpolation;
78 };
79
80}
81
82#endif
Serendipity basis functions of order k on the reference cube.
Definition: serendipitylocalbasis.hh:30
unsigned int size() const
number of shape functions
Definition: serendipitylocalbasis.hh:117
Attaches a shape function to an entity.
Definition: serendipitylocalcoefficients.hh:23
General Lagrange finite element for cubes with arbitrary dimension and polynomial order.
Definition: serendipity.hh:22
const Traits::LocalInterpolationType & localInterpolation() const
Definition: serendipity.hh:55
static constexpr GeometryType type()
Definition: serendipity.hh:68
const Traits::LocalCoefficientsType & localCoefficients() const
Definition: serendipity.hh:48
const Traits::LocalBasisType & localBasis() const
Definition: serendipity.hh:41
unsigned int size() const
Number of shape functions in this finite element.
Definition: serendipity.hh:61
LocalFiniteElementTraits< LocalBasis, SerendipityLocalCoefficients< k, d >, LocalInterpolation > Traits
Definition: serendipity.hh:32
SerendipityLocalFiniteElement()
Definition: serendipity.hh:36
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 5, 23:02, 2025)