https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Cartesian1DSampler.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
31{
32public:
34
36
37protected:
39 virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
40
42 const std::vector<Real> & _nominal_values;
44 std::vector<dof_id_type> _grid_range;
46 std::vector<std::vector<Real>> _grid_items;
47};
Similar to CartesianProduct, this object creates a sampling scheme that produces a grid of samples,...
std::vector< dof_id_type > _grid_range
The range of rows in which to apply the grid for each column.
static InputParameters validParams()
std::vector< std::vector< Real > > _grid_items
The values to use when sampling from a column's grid.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
const std::vector< Real > & _nominal_values
The values to use when not sampling from a column's grid.
const InputParameters & parameters() const