https://mooseframework.inl.gov
CSVSampler.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 
17 class CSVSampler : public Sampler
18 {
19 public:
21 
23 
24 protected:
26  virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
27 
28 private:
30  std::vector<std::vector<Real>> _data;
31 };
A class used to generate samples from a CSV file.
Definition: CSVSampler.h:17
std::vector< std::vector< Real > > _data
Data read in from the CSV file.
Definition: CSVSampler.h:30
CSVSampler(const InputParameters &parameters)
Definition: CSVSampler.C:33
static InputParameters validParams()
Definition: CSVSampler.C:16
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.
Definition: CSVSampler.C:81
const InputParameters & parameters() const
uint8_t dof_id_type