Dune Core Modules (2.8.0)

coefficients.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_WHITNEY_EDGES0_5_COEFFICIENTS_HH
5#define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
6
7#include <cstddef>
8#include <vector>
9
10#include <dune/localfunctions/common/localkey.hh>
11#include <dune/localfunctions/whitney/edges0.5/common.hh>
12
13namespace Dune {
14
16 //
17 // Coefficients
18 //
19
21
27 template<std::size_t dim>
28 class EdgeS0_5Coefficients : private EdgeS0_5Common<dim> {
29 using EdgeS0_5Common<dim>::s;
30
31 std::vector<LocalKey> li;
32
33 public:
36 for(std::size_t i = 0; i < s; i++)
37 li[i] = LocalKey(i, dim-1, 0);
38 }
39
41 std::size_t size () const { return s; }
42
44 const LocalKey& localKey(std::size_t i) const { return li[i]; }
45 };
46
47} // namespace Dune
48
49#endif // DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
Coefficients for lowest order edge elements on simplices.
Definition: coefficients.hh:28
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: coefficients.hh:44
EdgeS0_5Coefficients()
Standard constructor.
Definition: coefficients.hh:35
std::size_t size() const
number of coefficients
Definition: coefficients.hh:41
Describe position of one degree of freedom.
Definition: localkey.hh:21
Dune namespace.
Definition: alignedallocator.hh:11
Common base class for edge elements.
Definition: common.hh:17
std::size_t s
The number of base functions.
Definition: common.hh:32
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)