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_adini.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2009 - 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
17#ifndef dealii_polynomials_adini_h
18#define dealii_polynomials_adini_h
19
20#include <deal.II/base/config.h>
21
22#include <deal.II/base/point.h>
24#include <deal.II/base/table.h>
25#include <deal.II/base/tensor.h>
26
28
43template <int dim>
45{
46public:
51
65 void
66 evaluate(const Point<dim> & unit_point,
67 std::vector<double> & values,
68 std::vector<Tensor<1, dim>> &grads,
69 std::vector<Tensor<2, dim>> &grad_grads,
70 std::vector<Tensor<3, dim>> &third_derivatives,
71 std::vector<Tensor<4, dim>> &fourth_derivatives) const override;
72
78 double
79 compute_value(const unsigned int i, const Point<dim> &p) const override;
80
84 virtual Tensor<1, dim>
85 compute_1st_derivative(const unsigned int i,
86 const Point<dim> & p) const override;
87
91 virtual Tensor<2, dim>
92 compute_2nd_derivative(const unsigned int i,
93 const Point<dim> & p) const override;
94
98 virtual Tensor<3, dim>
99 compute_3rd_derivative(const unsigned int i,
100 const Point<dim> & p) const override;
101
105 virtual Tensor<4, dim>
106 compute_4th_derivative(const unsigned int i,
107 const Point<dim> & p) const override;
108
116 compute_grad(const unsigned int i, const Point<dim> &p) const override;
117
125 compute_grad_grad(const unsigned int i, const Point<dim> &p) const override;
126
130 std::string
131 name() const override;
132
136 virtual std::unique_ptr<ScalarPolynomialsBase<dim>>
137 clone() const override;
138
139private:
145
151
157
163
169
175};
176
177
178
179template <int dim>
180inline Tensor<1, dim>
182 const Point<dim> & /*p*/) const
183{
184 Assert(false, ExcNotImplemented());
185 return {};
186}
187
188
189
190template <int dim>
191inline Tensor<2, dim>
193 const Point<dim> & /*p*/) const
194{
195 Assert(false, ExcNotImplemented());
196 return {};
197}
198
199
200
201template <int dim>
202inline Tensor<3, dim>
204 const Point<dim> & /*p*/) const
205{
206 Assert(false, ExcNotImplemented());
207 return {};
208}
209
210
211
212template <int dim>
213inline Tensor<4, dim>
215 const Point<dim> & /*p*/) const
216{
217 Assert(false, ExcNotImplemented());
218 return {};
219}
220
221
222
223template <int dim>
224inline std::string
226{
227 return "PolynomialsAdini";
228}
229
230
231
233
234#endif
Definition point.h:112
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:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)