IPPL API Reference
Independent Parallel Particle Layer C++ API
Loading...
Searching...
No Matches
ippl::MidpointQuadrature< T, NumNodes1D, ElementType > Class Template Reference

This is a class representing the midpoint quadrature rule. More...

#include <MidpointQuadrature.h>

+ Inheritance diagram for ippl::MidpointQuadrature< T, NumNodes1D, ElementType >:
+ Collaboration diagram for ippl::MidpointQuadrature< T, NumNodes1D, ElementType >:

Public Member Functions

 MidpointQuadrature (const ElementType &ref_element)
 Construct a new Midpoint Quadrature object.
 
void computeNodesAndWeights () override
 Computes the quadrature nodes and weights.
 
- Public Member Functions inherited from ippl::Quadrature< T, NumNodes1D, ElementType >
 Quadrature (const ElementType &ref_element)
 Construct a new Quadrature object.
 
size_t getOrder () const
 Returns the order of the quadrature rule. (order = degree + 1)
 
size_t getDegree () const
 Returns the degree of exactness of the quadrature rule.
 
Vector< T, numElementNodes > getWeightsForRefElement () const
 Get the quadrature weights for the reference element.
 
Vector< Vector< T, dim >, numElementNodes > getIntegrationNodesForRefElement () const
 Get the integration (quadrature) nodes for the reference element.
 
Vector< T, NumNodes1D > getIntegrationNodes1D (const T &a, const T &b) const
 Get the quadrature nodes for one dimension. (With respect to the given domain [a, b])
 
Vector< T, NumNodes1D > getWeights1D (const T &a, const T &b) const
 Get the quadrature weights for one dimension. (With respect to the given domain [a, b])
 

Additional Inherited Members

- Static Public Attributes inherited from ippl::Quadrature< T, NumNodes1D, ElementType >
static constexpr unsigned numNodes1D = NumNodes1D
 
static constexpr unsigned dim = ElementType::dim
 
static constexpr unsigned numElementNodes
 
- Protected Attributes inherited from ippl::Quadrature< T, NumNodes1D, ElementType >
unsigned degree_m
 
const ElementType & ref_element_m
 
Vector< T, NumNodes1D > integration_nodes_m
 
Vector< T, NumNodes1D > weights_m
 
a_m
 
b_m
 

Detailed Description

template<typename T, unsigned NumNodes1D, typename ElementType>
class ippl::MidpointQuadrature< T, NumNodes1D, ElementType >

This is a class representing the midpoint quadrature rule.

Template Parameters
Tfloating point number type of the quadrature nodes and weights
NumNodes1Dnumber of quadrature nodes for one dimension
ElementTypeelement type for which the quadrature rule is defined

Constructor & Destructor Documentation

◆ MidpointQuadrature()

template<typename T , unsigned NumNodes1D, typename ElementType >
ippl::MidpointQuadrature< T, NumNodes1D, ElementType >::MidpointQuadrature ( const ElementType &  ref_element)

Construct a new Midpoint Quadrature object.

Parameters
ref_elementreference element to compute the quadrature nodes on

Member Function Documentation

◆ computeNodesAndWeights()

template<typename T , unsigned NumNodes1D, typename ElementType >
void ippl::MidpointQuadrature< T, NumNodes1D, ElementType >::computeNodesAndWeights ( )
overridevirtual

Computes the quadrature nodes and weights.

Implements ippl::Quadrature< T, NumNodes1D, ElementType >.


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