hp2FEM  0.1
Public Member Functions | Protected Attributes
Quadrature1D Class Reference

Quadrature1D is a container class. Its aim is to call the apropriate quadrature class to calculate the coordinates and weights of te quadrature points. The Gauss-Jacobi and Newton-Cotes quadratures are implemented. This class does not store any data. More...

#include <Quadrature1D.h>

Collaboration diagram for Quadrature1D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Quadrature1D ()
 Default constructor.
 ~Quadrature1D ()
 Class destructor.
void GetCoordinatesWeights (QuadCollocType_E QuadType, unsigned long Alpha, unsigned long Beta, unsigned long IntegrandOrder, unsigned long &NumberCoords, double *const Coordinates, double *const Weights)
 Calculates the coordinates and weights of the quadrature points.
void GetCoordinatesWeights (QuadCollocType_E QuadType, unsigned long Alpha, unsigned long Beta, unsigned long NumberCoords, double *const Coordinates, double *const Weights)
 Calculates the coordinates and weights of the quadrature points.
unsigned long GetNumberCoordinates (QuadCollocType_E QuadType, unsigned long Alpha, unsigned long Beta, unsigned long IntegrandOrder)
 Returns the number of integration points.

Protected Attributes

GaussJacobiQuadrature1D GJQuad
NewtonCotesQuadrature1D NCQuad

Detailed Description

Quadrature1D is a container class. Its aim is to call the apropriate quadrature class to calculate the coordinates and weights of te quadrature points. The Gauss-Jacobi and Newton-Cotes quadratures are implemented. This class does not store any data.

Author:
Fabiano Fernandes Bargos/Marco Lcio Bittencourt
Date:
March/17/2011

Member Function Documentation

void Quadrature1D::GetCoordinatesWeights ( QuadCollocType_E  QuadType,
unsigned long  Alpha,
unsigned long  Beta,
unsigned long  IntegrandOrder,
unsigned long &  NumberCoords,
double *const  Coordinates,
double *const  Weights 
)

Calculates the coordinates and weights of the quadrature points.

Parameters:
[in]QuadType,:1D quadrature type
[in]Alpha,Beta,:specifies the weights for orthogonal polynomial basis.
[in]IntegrandOrder- order of integrand used to calculate the number of quadratute points.
[out]NumCoordinates- number of quadrature points.
[out]Coordinates- coordinates of the quadrature points.
[out]Weights- weights of the quadrature points.
void Quadrature1D::GetCoordinatesWeights ( QuadCollocType_E  QuadType,
unsigned long  Alpha,
unsigned long  Beta,
unsigned long  NumberCoords,
double *const  Coordinates,
double *const  Weights 
)

Calculates the coordinates and weights of the quadrature points.

Parameters:
[in]QuadType,:1D quadrature type
[in]Alpha,Beta,:specifies the weights for orthogonal polynomial basis.
[in]NumCoordinates- number of quadrature points.
[out]Coordinates- coordinates of the quadrature points.
[out]Weights- weights of the quadrature points.
unsigned long Quadrature1D::GetNumberCoordinates ( QuadCollocType_E  QuadType,
unsigned long  Alpha,
unsigned long  Beta,
unsigned long  IntegrandOrder 
)

Returns the number of integration points.

Parameters:
[in]QuadType,:1D quadrature type
[in]Alpha,Beta,:specifies the weights for orthogonal polynomial basis.
[in]IntegrandOrder- order of integrand used to calculate the number of quadratute points.
Returns:
an unsigned long type with the number of coordinates.

Member Data Documentation

Variable of the type QuadratureGaussJacobi1D class.

Variable of the type QuadratureNewtonCotes1D class.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Friends Defines