deal.II version GIT relicensing-2165-gc91f007519 2024-11-20 01:40:00+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
Public Types | Public Member Functions | Private Attributes | List of all members
QGaussRadauChebyshev< dim > Class Template Reference

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

Inheritance diagram for QGaussRadauChebyshev< dim >:
Inheritance graph
[legend]

Public Types

enum  EndPoint { left , right }
 

Public Member Functions

 QGaussRadauChebyshev (const unsigned int n, const EndPoint end_point=QGaussRadauChebyshev::EndPoint::left)
 Generate a formula with n quadrature points.
 
 QGaussRadauChebyshev (QGaussRadauChebyshev< dim > &&) noexcept=default
 
 QGaussRadauChebyshev (const unsigned int n, const EndPoint end_point)
 

Private Attributes

const EndPoint end_point
 

Detailed Description

template<int dim>
class QGaussRadauChebyshev< dim >

Gauss-Radau-Chebyshev quadrature rules integrate the weighted product \(\int_{-1}^1 f(x) w(x) dx\) with weight given by: \(w(x) = 1/\sqrt{1-x^2}\) with the additional constraint that a quadrature point lies at one of the two extrema of the interval. The nodes and weights are known analytically, and are exact for monomials up to the order \(2n-2\), where \(n\) is the number of quadrature points. Here we rescale the quadrature formula so that it is defined on the interval \([0,1]\) instead of \([-1,1]\). So the quadrature formulas integrate exactly the integral \(\int_0^1 f(x) w(x) dx\) with the weight: \(w(x) = 1/\sqrt{x(1-x)}\). By default the quadrature is constructed with the left endpoint as quadrature node, but the quadrature node can be imposed at the right endpoint through the variable ep that can assume the values left or right.

Definition at line 581 of file quadrature_lib.h.

Member Enumeration Documentation

◆ EndPoint

template<int dim>
enum QGaussRadauChebyshev::EndPoint

EndPoint is used to specify which of the two endpoints of the unit interval is used also as quadrature point.

Enumerator
left 

Left end point.

right 

Right end point.

Definition at line 588 of file quadrature_lib.h.

Constructor & Destructor Documentation

◆ QGaussRadauChebyshev() [1/3]

template<int dim>
QGaussRadauChebyshev< dim >::QGaussRadauChebyshev ( const unsigned int  n,
const EndPoint  end_point = QGaussRadauChebyshev< dim >::EndPoint::left 
)

Generate a formula with n quadrature points.

Definition at line 1366 of file quadrature_lib.cc.

◆ QGaussRadauChebyshev() [2/3]

template<int dim>
QGaussRadauChebyshev< dim >::QGaussRadauChebyshev ( QGaussRadauChebyshev< dim > &&  )
defaultnoexcept

Move constructor.

◆ QGaussRadauChebyshev() [3/3]

QGaussRadauChebyshev< 1 >::QGaussRadauChebyshev ( const unsigned int  n,
const EndPoint  end_point 
)

Definition at line 1346 of file quadrature_lib.cc.

Member Data Documentation

◆ end_point

template<int dim>
const EndPoint QGaussRadauChebyshev< dim >::end_point
private

Definition at line 610 of file quadrature_lib.h.


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