Reference documentation for deal.II version GIT 35969cdc9b 2023-12-09 01:10: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_abf.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2004 - 2023 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/mutex.h>
24 #include <deal.II/base/point.h>
27 #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 
73  void
74  evaluate(const Point<dim> &unit_point,
75  std::vector<Tensor<1, dim>> &values,
76  std::vector<Tensor<2, dim>> &grads,
77  std::vector<Tensor<3, dim>> &grad_grads,
78  std::vector<Tensor<4, dim>> &third_derivatives,
79  std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
80 
84  std::string
85  name() const override;
86 
92  static unsigned int
93  n_polynomials(const unsigned int degree);
94 
98  virtual std::unique_ptr<TensorPolynomialsBase<dim>>
99  clone() const override;
100 
101 private:
108 
113 
117  mutable std::vector<double> p_values;
118 
122  mutable std::vector<Tensor<1, dim>> p_grads;
123 
127  mutable std::vector<Tensor<2, dim>> p_grad_grads;
128 
132  mutable std::vector<Tensor<3, dim>> p_third_derivatives;
133 
137  mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
138 };
139 
140 
141 template <int dim>
142 inline std::string
144 {
145  return "ABF";
146 }
147 
148 
150 
151 #endif
Definition: point.h:112
std::vector< Tensor< 4, dim > > p_fourth_derivatives
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< Tensor< 2, dim > > p_grad_grads
std::vector< Tensor< 1, dim > > p_grads
std::vector< Tensor< 3, dim > > p_third_derivatives
const AnisotropicPolynomials< dim > polynomial_space
PolynomialsABF(const unsigned int k)
static unsigned int n_polynomials(const unsigned int degree)
Threads::Mutex mutex
std::vector< double > p_values
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
std::string name() const override
unsigned int degree() const
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:477
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:478