deal.II version GIT relicensing-6868-gafcc71a9cb 2026-10-12 01:10: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_pyramid.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) 2021 - 2026 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
14#ifndef dealii_polynomials_pyramid_h
15#define dealii_polynomials_pyramid_h
16
17#include <deal.II/base/config.h>
18
19#include <deal.II/base/point.h>
21#include <deal.II/base/tensor.h>
22
24
26
36template <int dim>
39{
40public:
44 static constexpr unsigned int dimension = dim;
45
46 /*
47 * Constructor taking the polynomial @p degree as input.
48 * This constructor only works for linear elements.
49 */
50 ScalarLagrangePolynomialPyramid(const unsigned int degree);
51
52 /*
53 * Constructor taking the polynomial @p degree, the number of polynomials
54 * @p n_dofs and the support points as input.
55 */
57 const unsigned int degree,
58 const unsigned int n_dofs,
59 const std::vector<Point<dim>> &support_points);
60
61 std::string
62 name() const override;
63
64 virtual std::unique_ptr<ScalarPolynomialsBase<dim>>
65 clone() const override;
66
67private:
73 double
75 const unsigned int i,
76 const unsigned int j,
77 const unsigned int k,
78 const Point<dim> &p) const override;
79
85 double
86 evaluate_orthogonal_basis_function(const unsigned int i,
87 const Point<dim> &p) const override;
88
96 const unsigned int i,
97 const unsigned int j,
98 const unsigned int k,
99 const Point<dim> &p) const override;
100
107 evaluate_orthogonal_basis_derivative(const unsigned int i,
108 const Point<dim> &p) const override;
109};
110
111
113
114#endif
Definition point.h:111
Tensor< 1, dim > evaluate_orthogonal_basis_derivative(const unsigned int i, const Point< dim > &p) const override
double evaluate_orthogonal_basis_function_by_degree(const unsigned int i, const unsigned int j, const unsigned int k, const Point< dim > &p) const override
double evaluate_orthogonal_basis_function(const unsigned int i, const Point< dim > &p) const override
Tensor< 1, dim > evaluate_orthogonal_basis_derivative_by_degree(const unsigned int i, const unsigned int j, const unsigned int k, const Point< dim > &p) const override
static constexpr unsigned int dimension
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > clone() const override
std::string name() const override
virtual unsigned int degree() const
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39