Chi-Tech
chi_math::Quadrature Class Reference

#include <quadrature.h>

Inheritance diagram for chi_math::Quadrature:
ChiObject chi_math::PointQuadrature chi_math::QuadratureConical chi_math::QuadratureGaussChebyshev chi_math::QuadratureGaussLegendre chi_math::QuadratureHexahedron chi_math::QuadratureJacobi chi_math::QuadratureQuadrilateral chi_math::QuadratureTetrahedron chi_math::QuadratureTriangle chi_math::QuadratureWedge

Public Member Functions

const std::pair< double, double > & GetRange () const
 
void SetRange (const std::pair< double, double > &in_range)
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Static Public Member Functions

static chi::InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Data Fields

QuadratureOrder order_
 
std::vector< chi_math::QuadraturePointXYZqpoints_
 
std::vector< double > weights_
 

Protected Member Functions

 Quadrature (const chi::InputParameters &params)
 
 Quadrature (QuadratureOrder in_order)
 

Protected Attributes

std::pair< double, double > range_
 
bool verbose_ = false
 

Detailed Description

Parent class for quadratures.

Definition at line 33 of file quadrature.h.

Constructor & Destructor Documentation

◆ Quadrature() [1/2]

chi_math::Quadrature::Quadrature ( const chi::InputParameters params)
explicitprotected

Definition at line 84 of file quadrature.cc.

◆ Quadrature() [2/2]

chi_math::Quadrature::Quadrature ( QuadratureOrder  in_order)
inlineexplicitprotected

Definition at line 50 of file quadrature.h.

Member Function Documentation

◆ GetInputParameters()

chi::InputParameters chi_math::Quadrature::GetInputParameters ( )
static

Definition at line 66 of file quadrature.cc.

◆ GetRange()

const std::pair< double, double > & chi_math::Quadrature::GetRange ( ) const
inline

Get the range on which the quadrature is defined (relevant for one-dimensional quadratures only).

Definition at line 58 of file quadrature.h.

◆ SetRange()

void chi_math::Quadrature::SetRange ( const std::pair< double, double > &  in_range)

Set the range on which the quadrature is defined. (relevant for one-dimensional quadratures only). Note that calling this method results in translation of the abscissae and scaling of the weights.

Definition at line 91 of file quadrature.cc.

Field Documentation

◆ order_

QuadratureOrder chi_math::Quadrature::order_

Definition at line 36 of file quadrature.h.

◆ qpoints_

std::vector<chi_math::QuadraturePointXYZ> chi_math::Quadrature::qpoints_

Definition at line 37 of file quadrature.h.

◆ range_

std::pair<double, double> chi_math::Quadrature::range_
protected

Interval on which the quadrature is defined (relevant for one-dimensional quadratures only).

Definition at line 45 of file quadrature.h.

◆ verbose_

bool chi_math::Quadrature::verbose_ = false
protected

Definition at line 46 of file quadrature.h.

◆ weights_

std::vector<double> chi_math::Quadrature::weights_

Definition at line 38 of file quadrature.h.


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