Dune Core Modules (2.8.0)

mimetic.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_MIMETICLOCALFINITEELEMENT_HH
4#define DUNE_MIMETICLOCALFINITEELEMENT_HH
5
7
8#include "common/localfiniteelementtraits.hh"
9#include "mimetic/mimeticall.hh"
10
11namespace Dune
12{
20 template<class D, class R, int dim>
22 {
24 MimeticLocalBasis<D,R,dim> basis;
25 MimeticLocalCoefficients coefficients;
26 MimeticLocalInterpolation<MimeticLocalBasis<D,R,dim> > interpolation;
27
28 public:
31 MimeticLocalInterpolation<MimeticLocalBasis<D,R,dim> > > Traits;
32
34 {}
35
37 : gt(basicType,dim)
38 {}
39
40 MimeticLocalFiniteElement (Dune::GeometryType::BasicType basicType, unsigned int variant)
41 : gt(basicType,dim), basis(variant), coefficients(variant)
42 {}
43
44 const typename Traits::LocalBasisType& localBasis () const
45 {
46 return basis;
47 }
48
49 const typename Traits::LocalCoefficientsType& localCoefficients () const
50 {
51 return coefficients;
52 }
53
54 const typename Traits::LocalInterpolationType& localInterpolation () const
55 {
56 return interpolation;
57 }
58
59 Dune::GeometryType type () const { return gt; }
60 };
61}
62
63#endif
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:123
BasicType
Each entity can be tagged by one of these basic types plus its space dimension.
Definition: type.hh:129
!
Definition: mimeticall.hh:86
Definition: mimetic.hh:22
Dune namespace.
Definition: alignedallocator.hh:11
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 21, 23:30, 2024)