Reference documentation for deal.II version 9.3.3
polynomials_bdm.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2004 - 2020 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
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_BDM_h
17#define dealii_polynomials_BDM_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>
29
30#include <vector>
31
33
98template <int dim>
100{
101public:
110 PolynomialsBDM(const unsigned int k);
111
124 void
125 evaluate(const Point<dim> & unit_point,
126 std::vector<Tensor<1, dim>> &values,
129 std::vector<Tensor<4, dim>> &third_derivatives,
130 std::vector<Tensor<5, dim>> &fourth_derivatives) const override;
131
135 std::string
136 name() const override;
137
143 static unsigned int
144 n_polynomials(const unsigned int degree);
145
149 virtual std::unique_ptr<TensorPolynomialsBase<dim>>
150 clone() const override;
151
152private:
158
163 std::vector<Polynomials::Polynomial<double>> monomials;
164
169
173 mutable std::vector<double> p_values;
174
179
184
188 mutable std::vector<Tensor<3, dim>> p_third_derivatives;
189
193 mutable std::vector<Tensor<4, dim>> p_fourth_derivatives;
194};
195
196
197template <int dim>
198inline std::string
200{
201 return "BDM";
202}
203
204
206
207#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