https://mooseframework.inl.gov
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 
14 #include "PolynomialQuadrature.h"
15 
19 class QuadratureSampler : public Sampler
20 {
21 public:
23 
25 
26  Real getQuadratureWeight(dof_id_type row_index) const;
27 
28 protected:
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 };
A class used to produce samples based on quadrature for Polynomial Chaos.
static InputParameters validParams()
QuadratureSampler(const InputParameters &parameters)
Real getQuadratureWeight(dof_id_type row_index) const
std::unique_ptr< const PolynomialQuadrature::Quadrature > _grid
Quadrature weights and points.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
const InputParameters & parameters() const
uint8_t dof_id_type