https://mooseframework.inl.gov
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 {
32 public:
34 
36 
37 protected:
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.
Cartesian1DSampler(const InputParameters &parameters)
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
std::vector< std::vector< Real > > _grid_items
The values to use when sampling from a column&#39;s grid.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
uint8_t dof_id_type
const std::vector< Real > & _nominal_values
The values to use when not sampling from a column&#39;s grid.