Reference documentation for deal.II version 9.6.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
polynomials_raviart_thomas.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2004 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_polynomials_raviart_thomas_h
16#define dealii_polynomials_raviart_thomas_h
17
18
19#include <deal.II/base/config.h>
20
22#include <deal.II/base/point.h>
25#include <deal.II/base/tensor.h>
28
29#include <mutex>
30#include <vector>
31
32
34
48template <int dim>
50{
51public:
58 PolynomialsRaviartThomas(const unsigned int degree_normal,
59 const unsigned int degree_tangential);
60
69 PolynomialsRaviartThomas(const unsigned int k);
70
75
83 void
84 evaluate(const Point<dim> &unit_point,
85 std::vector<Tensor<1, dim>> &values,
86 std::vector<Tensor<2, dim>> &grads,
87 std::vector<Tensor<3, dim>> &grad_grads,
88 std::vector<Tensor<4, dim>> &third_derivatives,
89 std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
90
94 std::string
95 name() const override;
96
102 static unsigned int
103 n_polynomials(const unsigned int normal_degree,
104 const unsigned int tangential_degree);
105
111 static unsigned int
112 n_polynomials(const unsigned int degree);
113
118 static std::vector<unsigned int>
120 const unsigned int tangential_degree);
121
125 virtual std::unique_ptr<TensorPolynomialsBase<dim>>
126 clone() const override;
127
135 std::vector<Point<dim>>
137
138private:
142 const unsigned int normal_degree;
143
147 const unsigned int tangential_degree;
148
154
158 std::vector<unsigned int> lexicographic_to_hierarchic;
159
164 std::vector<unsigned int> hierarchic_to_lexicographic;
165
169 std::array<std::vector<unsigned int>, dim> renumber_aniso;
170};
171
172
174
175#endif
Definition point.h:111
static std::vector< unsigned int > get_lexicographic_numbering(const unsigned int normal_degree, const unsigned int tangential_degree)
PolynomialsRaviartThomas(const PolynomialsRaviartThomas &other)=default
std::array< std::vector< unsigned int >, dim > renumber_aniso
void evaluate(const Point< dim > &unit_point, std::vector< Tensor< 1, dim > > &values, std::vector< Tensor< 2, dim > > &grads, std::vector< Tensor< 3, dim > > &grad_grads, std::vector< Tensor< 4, dim > > &third_derivatives, std::vector< Tensor< 5, dim > > &fourth_derivatives) const override
std::string name() const override
PolynomialsRaviartThomas(const unsigned int degree_normal, const unsigned int degree_tangential)
static unsigned int n_polynomials(const unsigned int normal_degree, const unsigned int tangential_degree)
std::vector< unsigned int > lexicographic_to_hierarchic
std::vector< unsigned int > hierarchic_to_lexicographic
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
const AnisotropicPolynomials< dim > polynomial_space
std::vector< Point< dim > > get_polynomial_support_points() const
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504