Stokhos Development
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type > Class Template Reference

Defines quadrature for a tensor product basis by anisotropic Smolyak sparse grids. More...

#include <Stokhos_AnisoSparseGridQuadrature.hpp>

Inheritance diagram for Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >:
Inheritance graph
[legend]
Collaboration diagram for Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AnisoSparseGridQuadrature (const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &product_basis, ordinal_type sparse_grid_level, value_type dim_weights[], value_type duplicate_tol=1.0e-12, ordinal_type growth_rate=Pecos::MODERATE_RESTRICTED_GROWTH)
 Constructor.
virtual ~AnisoSparseGridQuadrature ()
 Destructor.
virtual const Teuchos::Array
< Teuchos::Array< value_type > > & 
getQuadPoints () const
 Get quadrature points.
virtual const Teuchos::Array
< value_type > & 
getQuadWeights () const
 Get quadrature weights.
virtual const Teuchos::Array
< Teuchos::Array< value_type > > & 
getBasisAtQuadPoints () const
 Get values of basis at quadrature points.

Protected Member Functions

template<>
Stokhos::AnisoSparseGridQuadrature
< int, double > * 
sgq (NULL)

Protected Attributes

Teuchos::Array< Teuchos::RCP
< const OneDOrthogPolyBasis
< ordinal_type, value_type > > > 
coordinate_bases
 Coordinate bases.
Teuchos::Array< Teuchos::Array
< value_type > > 
quad_points
 Quadrature points.
Teuchos::Array< value_type > quad_weights
 Quadrature weights.
Teuchos::Array< Teuchos::Array
< value_type > > 
quad_values
 Quadrature values.

Static Protected Attributes

static AnisoSparseGridQuadraturesgq
 Static pointer for VPISparseGrid interface.

Detailed Description

template<typename ordinal_type, typename value_type>
class Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >

Defines quadrature for a tensor product basis by anisotropic Smolyak sparse grids.

Requires Dakota webbur quadrature package, which is currently provided through TriKota. To enable, configure Stokhos with TriKota enabled and see the TriKota instructions for building TriKota with Dakota.


Constructor & Destructor Documentation

template<typename ordinal_type , typename value_type >
Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::AnisoSparseGridQuadrature ( const Teuchos::RCP< const ProductBasis< ordinal_type, value_type > > &  product_basis,
ordinal_type  sparse_grid_level,
value_type  dim_weights[],
value_type  duplicate_tol = 1.0e-12,
ordinal_type  growth_rate = Pecos::MODERATE_RESTRICTED_GROWTH 
)

Constructor.

Parameters:
product_basisproduct basis
sparse_grid_levelsparse grid level defining the order of the quadrature. If equal to 0, the level is calculated using a heuristic formula.

Member Function Documentation

template<typename ordinal_type , typename value_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::getBasisAtQuadPoints ( ) const [virtual]

Get values of basis at quadrature points.

Array is dimensioned Q-by-P where Q is the number of quadrature points and P is the size of the basis.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

template<typename ordinal_type , typename value_type >
const Teuchos::Array< Teuchos::Array< value_type > > & Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::getQuadPoints ( ) const [virtual]

Get quadrature points.

Array is dimensioned Q-by-d where Q is the number of quadrature points and d is the dimension of the basis.

Implements Stokhos::Quadrature< ordinal_type, value_type >.

template<typename ordinal_type , typename value_type >
const Teuchos::Array< value_type > & Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::getQuadWeights ( ) const [virtual]

Get quadrature weights.

Array is of size Q where Q is the number of quadrature points.

Implements Stokhos::Quadrature< ordinal_type, value_type >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator