Stokhos
Development
|
Defines quadrature for a tensor product basis by anisotropic Smolyak sparse grids. More...
#include <Stokhos_AnisoSparseGridQuadrature.hpp>
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. More... | |
virtual | ~AnisoSparseGridQuadrature () |
Destructor. | |
virtual const Teuchos::Array < Teuchos::Array< value_type > > & | getQuadPoints () const |
Get quadrature points. More... | |
virtual const Teuchos::Array < value_type > & | getQuadWeights () const |
Get quadrature weights. More... | |
virtual const Teuchos::Array < Teuchos::Array< value_type > > & | getBasisAtQuadPoints () const |
Get values of basis at quadrature points. More... | |
Public Member Functions inherited from Stokhos::Quadrature< ordinal_type, value_type > | |
Quadrature () | |
Constructor. | |
virtual | ~Quadrature () |
Destructor. | |
virtual ordinal_type | size () const =0 |
Get number of quadrature points. | |
virtual std::ostream & | print (std::ostream &os) const =0 |
Print quadrature data. | |
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 AnisoSparseGridQuadrature * | sgq |
Static pointer for VPISparseGrid interface. | |
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.
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.
product_basis | product basis |
sparse_grid_level | sparse grid level defining the order of the quadrature. If equal to 0, the level is calculated using a heuristic formula. |
References Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::coordinate_bases, Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::quad_points, Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::quad_values, Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::quad_weights, and Stokhos::AnisoSparseGridQuadrature< ordinal_type, value_type >::sgq.
|
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 >.
|
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 >.
|
virtual |
Get quadrature weights.
Array is of size Q where Q is the number of quadrature points.
Implements Stokhos::Quadrature< ordinal_type, value_type >.