Reference documentation for deal.II version 9.6.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_bdm.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2004 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_polynomials_BDM_h
16#define dealii_polynomials_BDM_h
17
18
19#include <deal.II/base/config.h>
20
22#include <deal.II/base/mutex.h>
23#include <deal.II/base/point.h>
26#include <deal.II/base/tensor.h>
28
29#include <vector>
30
32
97template <int dim>
99{
100public:
109 PolynomialsBDM(const unsigned int k);
110
118 void
119 evaluate(const Point<dim> &unit_point,
120 std::vector<Tensor<1, dim>> &values,
121 std::vector<Tensor<2, dim>> &grads,
122 std::vector<Tensor<3, dim>> &grad_grads,
123 std::vector<Tensor<4, dim>> &third_derivatives,
124 std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
125
129 std::string
130 name() const override;
131
137 static unsigned int
138 n_polynomials(const unsigned int degree);
139
143 virtual std::unique_ptr<TensorPolynomialsBase<dim>>
144 clone() const override;
145
146private:
152
157 std::vector<Polynomials::Polynomial<double>> monomials;
158
163
167 mutable std::vector<double> p_values;
168
172 mutable std::vector<Tensor<1, dim>> p_grads;
173
177 mutable std::vector<Tensor<2, dim>> p_grad_grads;
178
182 mutable std::vector<Tensor<3, dim>> p_third_derivatives;
183
187 mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
188};
189
190
191template <int dim>
192inline std::string
194{
195 return "BDM";
196}
197
198
200
201#endif
Definition point.h:111
std::vector< double > p_values
std::vector< Tensor< 4, dim > > p_fourth_derivatives
std::vector< Polynomials::Polynomial< double > > monomials
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::string name() const override
const PolynomialSpace< dim > polynomial_space
virtual std::unique_ptr< TensorPolynomialsBase< dim > > clone() const override
std::vector< Tensor< 2, dim > > p_grad_grads
PolynomialsBDM(const unsigned int k)
std::vector< Tensor< 1, dim > > p_grads
std::vector< Tensor< 3, dim > > p_third_derivatives
static unsigned int n_polynomials(const unsigned int degree)
Threads::Mutex mutex
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504