Reference documentation for deal.II version GIT 6a72d26406 2023-06-07 13:05:01+00:00
\(\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\}}\)
polynomials_raviart_thomas.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2021 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_polynomials_raviart_thomas_h
17 #define dealii_polynomials_raviart_thomas_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 #include <deal.II/base/point.h>
26 #include <deal.II/base/tensor.h>
29 
30 #include <mutex>
31 #include <vector>
32 
33 
35 
49 template <int dim>
51 {
52 public:
59  PolynomialsRaviartThomas(const unsigned int degree_normal,
60  const unsigned int degree_tangential);
61 
70  PolynomialsRaviartThomas(const unsigned int k);
71 
76 
89  void
90  evaluate(const Point<dim> & unit_point,
91  std::vector<Tensor<1, dim>> &values,
92  std::vector<Tensor<2, dim>> &grads,
93  std::vector<Tensor<3, dim>> &grad_grads,
94  std::vector<Tensor<4, dim>> &third_derivatives,
95  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
96 
100  std::string
101  name() const override;
102 
108  static unsigned int
109  n_polynomials(const unsigned int normal_degree,
110  const unsigned int tangential_degree);
111 
117  static unsigned int
118  n_polynomials(const unsigned int degree);
119 
124  static std::vector<unsigned int>
125  get_lexicographic_numbering(const unsigned int normal_degree,
126  const unsigned int tangential_degree);
127 
131  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
132  clone() const override;
133 
141  std::vector<Point<dim>>
143 
144 private:
148  const unsigned int normal_degree;
149 
153  const unsigned int tangential_degree;
154 
160 
164  std::vector<unsigned int> lexicographic_to_hierarchic;
165 
170  std::vector<unsigned int> hierarchic_to_lexicographic;
171 
175  std::array<std::vector<unsigned int>, dim> renumber_aniso;
176 };
177 
178 
180 
181 #endif
Definition: point.h:112
static std::vector< unsigned int > get_lexicographic_numbering(const unsigned int normal_degree, const unsigned int tangential_degree)
PolynomialsRaviartThomas(const PolynomialsRaviartThomas &other)=default
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::array< std::vector< unsigned int >, dim > renumber_aniso
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
unsigned int degree() const
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475