https://mooseframework.inl.gov
Loading...
Searching...
No Matches
QuadratureSampler.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "Sampler.h"
13
15
20{
21public:
23
25
26 Real getQuadratureWeight(dof_id_type row_index) const;
27
28protected:
30 virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
31
33 std::unique_ptr<const PolynomialQuadrature::Quadrature> _grid;
34};
const InputParameters & parameters() const
A class used to produce samples based on quadrature for Polynomial Chaos.
static InputParameters validParams()
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
Real getQuadratureWeight(dof_id_type row_index) const
std::unique_ptr< const PolynomialQuadrature::Quadrature > _grid
Quadrature weights and points.