Reference documentation for deal.II version GIT ffb4c3937f 2023-03-31 14:25:02+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_bdm.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2020 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_BDM_h
17 #define dealii_polynomials_BDM_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 #include <deal.II/base/mutex.h>
24 #include <deal.II/base/point.h>
27 #include <deal.II/base/tensor.h>
29 
30 #include <vector>
31 
33 
98 template <int dim>
100 {
101 public:
110  PolynomialsBDM(const unsigned int k);
111 
124  void
125  evaluate(const Point<dim> & unit_point,
126  std::vector<Tensor<1, dim>> &values,
127  std::vector<Tensor<2, dim>> &grads,
128  std::vector<Tensor<3, dim>> &grad_grads,
129  std::vector<Tensor<4, dim>> &third_derivatives,
130  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
131 
135  std::string
136  name() const override;
137 
143  static unsigned int
144  n_polynomials(const unsigned int degree);
145 
149  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
150  clone() const override;
151 
152 private:
158 
163  std::vector<Polynomials::Polynomial<double>> monomials;
164 
169 
173  mutable std::vector<double> p_values;
174 
178  mutable std::vector<Tensor<1, dim>> p_grads;
179 
183  mutable std::vector<Tensor<2, dim>> p_grad_grads;
184 
188  mutable std::vector<Tensor<3, dim>> p_third_derivatives;
189 
193  mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
194 };
195 
196 
197 template <int dim>
198 inline std::string
200 {
201  return "BDM";
202 }
203 
204 
206 
207 #endif
Definition: point.h:110
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::vector< double > p_values
std::vector< Tensor< 4, dim > > p_fourth_derivatives
std::vector< Polynomials::Polynomial< double > > monomials
std::string name() const override
const PolynomialSpace< dim > polynomial_space
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
std::vector< Tensor< 2, dim > > p_grad_grads
PolynomialsBDM(const unsigned int k)
std::vector< Tensor< 1, dim > > p_grads
std::vector< Tensor< 3, dim > > p_third_derivatives
static unsigned int n_polynomials(const unsigned int degree)
Threads::Mutex mutex
unsigned int degree() const
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475