Reference documentation for deal.II version 9.2.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\}}\)
polynomials_bdm.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2019 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/point.h>
26 #include <deal.II/base/tensor.h>
29 
30 #include <vector>
31 
33 
100 template <int dim>
102 {
103 public:
112  PolynomialsBDM(const unsigned int k);
113 
126  void
127  evaluate(const Point<dim> & unit_point,
128  std::vector<Tensor<1, dim>> &values,
129  std::vector<Tensor<2, dim>> &grads,
130  std::vector<Tensor<3, dim>> &grad_grads,
131  std::vector<Tensor<4, dim>> &third_derivatives,
132  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
133 
137  std::string
138  name() const override;
139 
145  static unsigned int
146  n_polynomials(const unsigned int degree);
147 
151  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
152  clone() const override;
153 
154 private:
160 
165  std::vector<Polynomials::Polynomial<double>> monomials;
166 
171 
175  mutable std::vector<double> p_values;
176 
180  mutable std::vector<Tensor<1, dim>> p_grads;
181 
185  mutable std::vector<Tensor<2, dim>> p_grad_grads;
186 
190  mutable std::vector<Tensor<3, dim>> p_third_derivatives;
191 
195  mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
196 };
197 
198 
199 template <int dim>
200 inline std::string
202 {
203  return "BDM";
204 }
205 
206 
208 
209 #endif
Threads::Mutex
Definition: thread_management.h:91
PolynomialsBDM::n_polynomials
static unsigned int n_polynomials(const unsigned int degree)
Definition: polynomials_bdm.cc:433
polynomial.h
PolynomialsBDM::PolynomialsBDM
PolynomialsBDM(const unsigned int k)
Definition: polynomials_bdm.cc:30
PolynomialsBDM::name
std::string name() const override
Definition: polynomials_bdm.h:201
TensorPolynomialsBase::degree
unsigned int degree() const
Definition: tensor_polynomials_base.h:166
PolynomialSpace< dim >
thread_management.h
PolynomialsBDM::evaluate
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
Definition: polynomials_bdm.cc:56
tensor_polynomials_base.h
tensor.h
Tensor< 1, dim >
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
PolynomialsBDM::mutex
Threads::Mutex mutex
Definition: polynomials_bdm.h:170
polynomial_space.h
PolynomialsBDM::p_values
std::vector< double > p_values
Definition: polynomials_bdm.h:175
exceptions.h
TensorPolynomialsBase
Definition: tensor_polynomials_base.h:62
PolynomialsBDM
Definition: polynomials_bdm.h:101
PolynomialsBDM::monomials
std::vector< Polynomials::Polynomial< double > > monomials
Definition: polynomials_bdm.h:165
PolynomialsBDM::p_third_derivatives
std::vector< Tensor< 3, dim > > p_third_derivatives
Definition: polynomials_bdm.h:190
Point< dim >
PolynomialsBDM::polynomial_space
const PolynomialSpace< dim > polynomial_space
Definition: polynomials_bdm.h:159
config.h
PolynomialsBDM::p_grads
std::vector< Tensor< 1, dim > > p_grads
Definition: polynomials_bdm.h:180
PolynomialsBDM::p_grad_grads
std::vector< Tensor< 2, dim > > p_grad_grads
Definition: polynomials_bdm.h:185
PolynomialsBDM::p_fourth_derivatives
std::vector< Tensor< 4, dim > > p_fourth_derivatives
Definition: polynomials_bdm.h:195
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
PolynomialsBDM::clone
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
Definition: polynomials_bdm.cc:448
point.h