Reference documentation for deal.II version Git 4e8af90f34 2022-01-22 18:32:44 +0100
\(\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\}}\)
Public Member Functions | Static Public Attributes | List of all members
ScalarLagrangePolynomialPyramid< dim > Class Template Reference

#include <deal.II/base/polynomials_pyramid.h>

Inheritance diagram for ScalarLagrangePolynomialPyramid< dim >:
[legend]

Public Member Functions

 ScalarLagrangePolynomialPyramid (const unsigned int degree)
 
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
 
double compute_value (const unsigned int i, const Point< dim > &p) const override
 
template<int order>
Tensor< order, dim > compute_derivative (const unsigned int i, const Point< dim > &p) const
 
Tensor< 1, dim > compute_1st_derivative (const unsigned int i, const Point< dim > &p) const override
 
Tensor< 2, dim > compute_2nd_derivative (const unsigned int i, const Point< dim > &p) const override
 
Tensor< 3, dim > compute_3rd_derivative (const unsigned int i, const Point< dim > &p) const override
 
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
 
Tensor< 2, dim > compute_grad_grad (const unsigned int i, const Point< dim > &p) const override
 
std::string name () const override
 
virtual std::unique_ptr< ScalarPolynomialsBase< dim > > clone () const override
 

Static Public Attributes

static const unsigned int dimension = dim
 

Detailed Description

template<int dim>
class ScalarLagrangePolynomialPyramid< dim >

Polynomials defined on pyramid entities. This class is basis of FE_PyramidP.

Definition at line 31 of file polynomials_pyramid.h.

Constructor & Destructor Documentation

◆ ScalarLagrangePolynomialPyramid()

template<int dim>
ScalarLagrangePolynomialPyramid< dim >::ScalarLagrangePolynomialPyramid ( const unsigned int  degree)

Definition at line 43 of file polynomials_pyramid.cc.

Member Function Documentation

◆ evaluate()

template<int dim>
void ScalarLagrangePolynomialPyramid< dim >::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

Compute the value and the derivatives of the polynomials at unit_point.

The size of the vectors must either be zero or equal n(). In the first case, the function will not compute these values.

If you need values or derivatives of all polynomials then use this function, rather than using any of the compute_value, compute_grad or compute_grad_grad functions, see below, in a loop over all tensor product polynomials.

Note
Currently, only the vectors values and grads are filled.

Definition at line 182 of file polynomials_pyramid.cc.

◆ compute_value()

template<int dim>
double ScalarLagrangePolynomialPyramid< dim >::compute_value ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Definition at line 52 of file polynomials_pyramid.cc.

◆ compute_derivative()

template<int dim>
template<int order>
Tensor< order, dim > ScalarLagrangePolynomialPyramid< dim >::compute_derivative ( const unsigned int  i,
const Point< dim > &  p 
) const

Compute the orderth derivative of the ith polynomial at unit point p.

Consider using evaluate() instead.

Template Parameters
orderThe order of the derivative.
Note
Currently, only implemented for first derivative.

Definition at line 125 of file polynomials_pyramid.h.

◆ compute_1st_derivative()

template<int dim>
Tensor< 1, dim > ScalarLagrangePolynomialPyramid< dim >::compute_1st_derivative ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Definition at line 208 of file polynomials_pyramid.cc.

◆ compute_2nd_derivative()

template<int dim>
Tensor< 2, dim > ScalarLagrangePolynomialPyramid< dim >::compute_2nd_derivative ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Definition at line 219 of file polynomials_pyramid.cc.

◆ compute_3rd_derivative()

template<int dim>
Tensor< 3, dim > ScalarLagrangePolynomialPyramid< dim >::compute_3rd_derivative ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Compute the third derivative of the ith polynomial at unit point p.

Consider using evaluate() instead.

Note
Not implemented yet.

Definition at line 235 of file polynomials_pyramid.cc.

◆ compute_4th_derivative()

template<int dim>
Tensor< 4, dim > ScalarLagrangePolynomialPyramid< dim >::compute_4th_derivative ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Compute the fourth derivative of the ith polynomial at unit point p.

Consider using evaluate() instead.

Note
Not implemented yet.

Definition at line 251 of file polynomials_pyramid.cc.

◆ compute_grad()

template<int dim>
Tensor< 1, dim > ScalarLagrangePolynomialPyramid< dim >::compute_grad ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Compute the gradient of the ith polynomial at unit point p.

Consider using evaluate() instead.

Note
Not implemented yet.

Definition at line 90 of file polynomials_pyramid.cc.

◆ compute_grad_grad()

template<int dim>
Tensor< 2, dim > ScalarLagrangePolynomialPyramid< dim >::compute_grad_grad ( const unsigned int  i,
const Point< dim > &  p 
) const
override

Compute the second derivative (grad_grad) of the ith polynomial at unit point p.

Consider using evaluate() instead.

Note
Not implemented yet.

Definition at line 167 of file polynomials_pyramid.cc.

◆ name()

template<int dim>
std::string ScalarLagrangePolynomialPyramid< dim >::name ( ) const
override

Definition at line 267 of file polynomials_pyramid.cc.

◆ clone()

template<int dim>
std::unique_ptr< ScalarPolynomialsBase< dim > > ScalarLagrangePolynomialPyramid< dim >::clone ( ) const
overridevirtual

Definition at line 276 of file polynomials_pyramid.cc.

Member Data Documentation

◆ dimension

template<int dim>
const unsigned int ScalarLagrangePolynomialPyramid< dim >::dimension = dim
static

Make the dimension available to the outside.

Definition at line 37 of file polynomials_pyramid.h.


The documentation for this class was generated from the following files: