Reference documentation for deal.II version Git e3a3ec7800 2020-08-07 14:08:19 +0200
\(\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 
52 template <int dim>
54 {
55 public:
64  PolynomialsABF(const unsigned int k);
65 
78  void
79  evaluate(const Point<dim> & unit_point,
80  std::vector<Tensor<1, dim>> &values,
81  std::vector<Tensor<2, dim>> &grads,
82  std::vector<Tensor<3, dim>> &grad_grads,
83  std::vector<Tensor<4, dim>> &third_derivatives,
84  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
85 
89  std::string
90  name() const override;
91 
97  static unsigned int
98  n_polynomials(const unsigned int degree);
99 
103  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
104  clone() const override;
105 
106 private:
113 
118 
122  mutable std::vector<double> p_values;
123 
127  mutable std::vector<Tensor<1, dim>> p_grads;
128 
132  mutable std::vector<Tensor<2, dim>> p_grad_grads;
133 
137  mutable std::vector<Tensor<3, dim>> p_third_derivatives;
138 
142  mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
143 };
144 
145 
146 template <int dim>
147 inline std::string
149 {
150  return "ABF";
151 }
152 
153 
155 
156 #endif
unsigned int degree() const
std::vector< double > p_values
std::vector< Tensor< 3, dim > > p_third_derivatives
std::vector< Tensor< 1, dim > > p_grads
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:363
std::vector< Tensor< 4, dim > > p_fourth_derivatives
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
static unsigned int n_polynomials(const unsigned int degree)
std::string name() const override
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:362
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
const AnisotropicPolynomials< dim > polynomial_space
std::vector< Tensor< 2, dim > > p_grad_grads
PolynomialsABF(const unsigned int k)
Threads::Mutex mutex