Reference documentation for deal.II version GIT relicensing-245-g36f19064f7 2024-03-29 07:20: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\}}\)
Loading...
Searching...
No Matches
polynomials_adini.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2009 - 2024 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
16#ifndef dealii_polynomials_adini_h
17#define dealii_polynomials_adini_h
18
19#include <deal.II/base/config.h>
20
21#include <deal.II/base/point.h>
23#include <deal.II/base/table.h>
24#include <deal.II/base/tensor.h>
25
27
42template <int dim>
44{
45public:
50
64 void
65 evaluate(const Point<dim> &unit_point,
66 std::vector<double> &values,
67 std::vector<Tensor<1, dim>> &grads,
68 std::vector<Tensor<2, dim>> &grad_grads,
69 std::vector<Tensor<3, dim>> &third_derivatives,
70 std::vector<Tensor<4, dim>> &fourth_derivatives) const override;
71
77 double
78 compute_value(const unsigned int i, const Point<dim> &p) const override;
79
83 virtual Tensor<1, dim>
84 compute_1st_derivative(const unsigned int i,
85 const Point<dim> &p) const override;
86
90 virtual Tensor<2, dim>
91 compute_2nd_derivative(const unsigned int i,
92 const Point<dim> &p) const override;
93
97 virtual Tensor<3, dim>
98 compute_3rd_derivative(const unsigned int i,
99 const Point<dim> &p) const override;
100
104 virtual Tensor<4, dim>
105 compute_4th_derivative(const unsigned int i,
106 const Point<dim> &p) const override;
107
115 compute_grad(const unsigned int i, const Point<dim> &p) const override;
116
124 compute_grad_grad(const unsigned int i, const Point<dim> &p) const override;
125
129 std::string
130 name() const override;
131
135 virtual std::unique_ptr<ScalarPolynomialsBase<dim>>
136 clone() const override;
137
138private:
144
150
156
162
168
174};
175
176
177
178template <int dim>
179inline Tensor<1, dim>
181 const Point<dim> & /*p*/) const
182{
184 return {};
185}
186
187
188
189template <int dim>
190inline Tensor<2, dim>
192 const Point<dim> & /*p*/) const
193{
195 return {};
196}
197
198
199
200template <int dim>
201inline Tensor<3, dim>
203 const Point<dim> & /*p*/) const
204{
206 return {};
207}
208
209
210
211template <int dim>
212inline Tensor<4, dim>
214 const Point<dim> & /*p*/) const
215{
217 return {};
218}
219
220
221
222template <int dim>
223inline std::string
225{
226 return "PolynomialsAdini";
227}
228
229
230
232
233#endif
Definition point.h:111
std::string name() const override
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > clone() const override
virtual Tensor< 2, dim > compute_2nd_derivative(const unsigned int i, const Point< dim > &p) const override
Table< 2, double > dyy
Table< 2, double > dy
virtual Tensor< 3, dim > compute_3rd_derivative(const unsigned int i, const Point< dim > &p) const override
double compute_value(const unsigned int i, const Point< dim > &p) const override
virtual Tensor< 1, dim > compute_1st_derivative(const unsigned int i, const Point< dim > &p) const override
void evaluate(const Point< dim > &unit_point, std::vector< double > &values, std::vector< Tensor< 1, dim > > &grads, std::vector< Tensor< 2, dim > > &grad_grads, std::vector< Tensor< 3, dim > > &third_derivatives, std::vector< Tensor< 4, dim > > &fourth_derivatives) const override
Tensor< 2, dim > compute_grad_grad(const unsigned int i, const Point< dim > &p) const override
Table< 2, double > dxy
Table< 2, double > dx
Table< 2, double > coef
Table< 2, double > dxx
virtual Tensor< 4, dim > compute_4th_derivative(const unsigned int i, const Point< dim > &p) const override
Tensor< 1, dim > compute_grad(const unsigned int i, const Point< dim > &p) const override
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:502
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:503
#define DEAL_II_NOT_IMPLEMENTED()