Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
QuadratureRule Class Referenceabstract

Virtual class for defining a Quadrature Rule to integrate quantities in the iso-parametric elements. More...

#include <QuadratureRule.hpp>

Inheritance diagram for QuadratureRule:
Collaboration diagram for QuadratureRule:

Public Member Functions

 QuadratureRule (std::string name)
 Creates a QuadratureRule for Element integration. More...
 
virtual ~QuadratureRule ()=0
 Destroys this QuadratureRule object. More...
 
virtual unsigned int GetNumberOfQuadraturePoints ()=0
 Gets Number of Integration Points. More...
 
virtual void GetQuadraturePoints (std::string name, Eigen::VectorXd &Weights, Eigen::MatrixXd &Points)=0
 Gets Gauss Integration Points. More...
 
std::string GetQuadratureName ()
 Gets the Element's Quadrature Name. More...
 

Private Attributes

std::string Name
 Element's Quadrature Name. More...
 

Detailed Description

Virtual class for defining a Quadrature Rule to integrate quantities in the iso-parametric elements.

See also
Element.hpp GaussQuadrature.hpp LobattoQuadrature.hpp

Constructor & Destructor Documentation

◆ QuadratureRule()

QuadratureRule::QuadratureRule ( std::string  name)

Creates a QuadratureRule for Element integration.

Parameters
nameGeneric name of the Element for this quadrature rule.
nQpNumber of quadrature points.
Note
More details can be found at Quadrature Rule.
See also
QuadratureRule::Name.

◆ ~QuadratureRule()

virtual QuadratureRule::~QuadratureRule ( )
pure virtual

Destroys this QuadratureRule object.

Member Function Documentation

◆ GetNumberOfQuadraturePoints()

virtual unsigned int QuadratureRule::GetNumberOfQuadraturePoints ( )
pure virtual

Gets Number of Integration Points.

Returns
The number of Quadrature Points.

Implemented in GaussQuadrature, and LobattoQuadrature.

◆ GetQuadratureName()

std::string QuadratureRule::GetQuadratureName ( )

Gets the Element's Quadrature Name.

◆ GetQuadraturePoints()

virtual void QuadratureRule::GetQuadraturePoints ( std::string  name,
Eigen::VectorXd &  Weights,
Eigen::MatrixXd &  Points 
)
pure virtual

Gets Gauss Integration Points.

Parameters
nameGeneric name of the Element for this quadrature rule.
WeightsThe Gauss quadrature weights.
PointsThe Gauss quadrature coordinates.

Implemented in GaussQuadrature, and LobattoQuadrature.

Member Data Documentation

◆ Name

std::string QuadratureRule::Name
private

Element's Quadrature Name.