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_abf.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_abf_h
17 #define dealii_polynomials_abf_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>
30 
31 #include <memory>
32 #include <vector>
33 
35 
54 template <int dim>
56 {
57 public:
66  PolynomialsABF(const unsigned int k);
67 
80  void
81  evaluate(const Point<dim> & unit_point,
82  std::vector<Tensor<1, dim>> &values,
83  std::vector<Tensor<2, dim>> &grads,
84  std::vector<Tensor<3, dim>> &grad_grads,
85  std::vector<Tensor<4, dim>> &third_derivatives,
86  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
87 
91  std::string
92  name() const override;
93 
99  static unsigned int
100  n_polynomials(const unsigned int degree);
101 
105  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
106  clone() const override;
107 
108 private:
115 
120 
124  mutable std::vector<double> p_values;
125 
129  mutable std::vector<Tensor<1, dim>> p_grads;
130 
134  mutable std::vector<Tensor<2, dim>> p_grad_grads;
135 
139  mutable std::vector<Tensor<3, dim>> p_third_derivatives;
140 
144  mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
145 };
146 
147 
148 template <int dim>
149 inline std::string
151 {
152  return "ABF";
153 }
154 
155 
157 
158 #endif
PolynomialsABF::p_third_derivatives
std::vector< Tensor< 3, dim > > p_third_derivatives
Definition: polynomials_abf.h:139
PolynomialsABF
Definition: polynomials_abf.h:55
tensor_product_polynomials.h
PolynomialsABF::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_abf.cc:64
Threads::Mutex
Definition: thread_management.h:91
polynomial.h
PolynomialsABF::p_grad_grads
std::vector< Tensor< 2, dim > > p_grad_grads
Definition: polynomials_abf.h:134
PolynomialsABF::clone
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
Definition: polynomials_abf.cc:186
PolynomialsABF::PolynomialsABF
PolynomialsABF(const unsigned int k)
Definition: polynomials_abf.cc:50
TensorPolynomialsBase::degree
unsigned int degree() const
Definition: tensor_polynomials_base.h:166
PolynomialsABF::mutex
Threads::Mutex mutex
Definition: polynomials_abf.h:119
thread_management.h
PolynomialsABF::name
std::string name() const override
Definition: polynomials_abf.h:150
PolynomialsABF::polynomial_space
const AnisotropicPolynomials< dim > polynomial_space
Definition: polynomials_abf.h:114
tensor_polynomials_base.h
AnisotropicPolynomials
Definition: tensor_product_polynomials.h:287
tensor.h
Tensor< 1, dim >
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
polynomial_space.h
exceptions.h
TensorPolynomialsBase
Definition: tensor_polynomials_base.h:62
Point< dim >
config.h
PolynomialsABF::p_values
std::vector< double > p_values
Definition: polynomials_abf.h:124
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
PolynomialsABF::n_polynomials
static unsigned int n_polynomials(const unsigned int degree)
Definition: polynomials_abf.cc:158
PolynomialsABF::p_grads
std::vector< Tensor< 1, dim > > p_grads
Definition: polynomials_abf.h:129
PolynomialsABF::p_fourth_derivatives
std::vector< Tensor< 4, dim > > p_fourth_derivatives
Definition: polynomials_abf.h:144
point.h