Reference documentation for deal.II version 9.5.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\}}\)
Loading...
Searching...
No Matches
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
52template <int dim>
54{
55public:
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
106private:
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
146template <int dim>
147inline std::string
149{
150 return "ABF";
151}
152
153
155
156#endif
Definition point.h:112
std::vector< Tensor< 4, dim > > p_fourth_derivatives
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
static unsigned int n_polynomials(const unsigned int degree)
Threads::Mutex mutex
std::vector< double > p_values
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
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
std::string name() const override
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473