Dune Core Modules (2.9.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// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5
6#ifndef DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
7#define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
8
9#include <cstddef>
10#include <vector>
11
12#include <dune/localfunctions/common/localkey.hh>
13#include <dune/localfunctions/whitney/edges0.5/common.hh>
14
15namespace Dune {
16
18 //
19 // Coefficients
20 //
21
23
29 template<std::size_t dim>
30 class EdgeS0_5Coefficients : private EdgeS0_5Common<dim> {
31 using EdgeS0_5Common<dim>::s;
32
33 std::vector<LocalKey> li;
34
35 public:
38 for(std::size_t i = 0; i < s; i++)
39 li[i] = LocalKey(i, dim-1, 0);
40 }
41
43 std::size_t size () const { return s; }
44
46 const LocalKey& localKey(std::size_t i) const { return li[i]; }
47 };
48
49} // namespace Dune
50
51#endif // DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_COEFFICIENTS_HH
Coefficients for lowest order edge elements on simplices.
Definition: coefficients.hh:30
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: coefficients.hh:46
EdgeS0_5Coefficients()
Standard constructor.
Definition: coefficients.hh:37
std::size_t size() const
number of coefficients
Definition: coefficients.hh:43
Describe position of one degree of freedom.
Definition: localkey.hh:23
Dune namespace.
Definition: alignedallocator.hh:13
Common base class for edge elements.
Definition: common.hh:19
std::size_t s
The number of base functions.
Definition: common.hh:34
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)