DFT-EFE
 
Loading...
Searching...
No Matches
dftefe::quadrature::QuadratureRule Class Reference

#include <QuadratureRule.h>

Inheritance diagram for dftefe::quadrature::QuadratureRule:

Public Member Functions

virtual ~QuadratureRule ()=default
 
 QuadratureRule (const size_type dim, const std::vector< utils::Point > &points, const std::vector< double > &weights)
 Constructor to create a tensor structured quadrature with arbitrary 1D points and weights. More...
 
virtual const std::vector< utils::Point > & getPoints () const
 A function to return the quad points in the parametric space. More...
 
virtual const std::vector< utils::Point > & get1DPoints () const
 A function to return the 1D quad points in the parametric space. This function throws an error if this quadrature Rule is not tensor structured. More...
 
virtual const std::vector< double > & getWeights () const
 A function to returns the weights of the quadrature points. More...
 
virtual const std::vector< double > & get1DWeights () const
 A function to return the 1D quad points in the parametric space. This function throws an error if this quadrature Rule is not tensor structured. More...
 
virtual bool isTensorStructured () const
 
virtual size_type nPoints () const
 
virtual size_type n1DPoints () const
 
virtual size_type getDim () const
 

Protected Member Functions

 QuadratureRule ()
 

Protected Attributes

size_type d_dim
 
size_type d_numPoints
 
size_type d_num1DPoints
 
std::vector< utils::Pointd_points
 
std::vector< utils::Pointd_1DPoints
 
std::vector< double > d_weights
 
std::vector< double > d_1DWeights
 
bool d_isTensorStructured
 

Constructor & Destructor Documentation

◆ ~QuadratureRule()

virtual dftefe::quadrature::QuadratureRule::~QuadratureRule ( )
virtualdefault

◆ QuadratureRule() [1/2]

dftefe::quadrature::QuadratureRule::QuadratureRule ( const size_type  dim,
const std::vector< utils::Point > &  points,
const std::vector< double > &  weights 
)

Constructor to create a tensor structured quadrature with arbitrary 1D points and weights.

Parameters
[in]dimthe dimension of the cell.
[in]pointsThe parametric points on which the 1D quad points are located.
[in]weightsthe weight of the quad points

◆ QuadratureRule() [2/2]

dftefe::quadrature::QuadratureRule::QuadratureRule ( )
protected

Member Function Documentation

◆ get1DPoints()

const std::vector< dftefe::utils::Point > & dftefe::quadrature::QuadratureRule::get1DPoints ( ) const
virtual

A function to return the 1D quad points in the parametric space. This function throws an error if this quadrature Rule is not tensor structured.

Returns
returns the vector of dftefe::utils::Point containing the 1D quad points
Here is the call graph for this function:

◆ get1DWeights()

const std::vector< double > & dftefe::quadrature::QuadratureRule::get1DWeights ( ) const
virtual

A function to return the 1D quad points in the parametric space. This function throws an error if this quadrature Rule is not tensor structured.

Returns
returns the vector of dftefe::utils::Point containing the 1D quad points
Here is the call graph for this function:

◆ getDim()

size_type dftefe::quadrature::QuadratureRule::getDim ( ) const
virtual
Here is the caller graph for this function:

◆ getPoints()

const std::vector< dftefe::utils::Point > & dftefe::quadrature::QuadratureRule::getPoints ( ) const
virtual

A function to return the quad points in the parametric space.

Returns
returns the vector of dftefe::utils::Point containing the quad points
Here is the caller graph for this function:

◆ getWeights()

const std::vector< double > & dftefe::quadrature::QuadratureRule::getWeights ( ) const
virtual

A function to returns the weights of the quadrature points.

Returns
returns the vector doubles containing the weights
Here is the caller graph for this function:

◆ isTensorStructured()

bool dftefe::quadrature::QuadratureRule::isTensorStructured ( ) const
virtual

◆ n1DPoints()

size_type dftefe::quadrature::QuadratureRule::n1DPoints ( ) const
virtual

◆ nPoints()

size_type dftefe::quadrature::QuadratureRule::nPoints ( ) const
virtual
Here is the caller graph for this function:

Member Data Documentation

◆ d_1DPoints

std::vector<utils::Point> dftefe::quadrature::QuadratureRule::d_1DPoints
protected

◆ d_1DWeights

std::vector<double> dftefe::quadrature::QuadratureRule::d_1DWeights
protected

◆ d_dim

size_type dftefe::quadrature::QuadratureRule::d_dim
protected

◆ d_isTensorStructured

bool dftefe::quadrature::QuadratureRule::d_isTensorStructured
protected

◆ d_num1DPoints

size_type dftefe::quadrature::QuadratureRule::d_num1DPoints
protected

◆ d_numPoints

size_type dftefe::quadrature::QuadratureRule::d_numPoints
protected

◆ d_points

std::vector<utils::Point> dftefe::quadrature::QuadratureRule::d_points
protected

◆ d_weights

std::vector<double> dftefe::quadrature::QuadratureRule::d_weights
protected

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