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