deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+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\}}\)
Loading...
Searching...
No Matches
polynomials_abf.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2004 - 2025 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13#ifndef dealii_polynomials_abf_h
14#define dealii_polynomials_abf_h
15
16
17#include <deal.II/base/config.h>
18
20#include <deal.II/base/mutex.h>
21#include <deal.II/base/point.h>
24#include <deal.II/base/tensor.h>
27
28#include <memory>
29#include <vector>
30
32
49template <int dim>
51{
52public:
61 PolynomialsABF(const unsigned int k);
62
70 void
71 evaluate(const Point<dim> &unit_point,
72 std::vector<Tensor<1, dim>> &values,
73 std::vector<Tensor<2, dim>> &grads,
74 std::vector<Tensor<3, dim>> &grad_grads,
75 std::vector<Tensor<4, dim>> &third_derivatives,
76 std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
77
81 std::string
82 name() const override;
83
89 static unsigned int
90 n_polynomials(const unsigned int degree);
91
95 virtual std::unique_ptr<TensorPolynomialsBase<dim>>
96 clone() const override;
97
98private:
105
110
114 mutable std::vector<double> p_values;
115
119 mutable std::vector<Tensor<1, dim>> p_grads;
120
124 mutable std::vector<Tensor<2, dim>> p_grad_grads;
125
129 mutable std::vector<Tensor<3, dim>> p_third_derivatives;
130
134 mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
135};
136
137
138template <int dim>
139inline std::string
141{
142 return "ABF";
143}
144
145
147
148#endif
Definition point.h:111
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:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39