www.mooseframework.org
CSVTimeSequenceStepper.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef CSVTIMESEQUENCESTEPPER_H
16 #define CSVTIMESEQUENCESTEPPER_H
17 
19 #include "DelimitedFileReader.h"
20 
22 
23 template <>
25 
35 {
36 public:
38 
39  virtual void init() override;
40 
41 protected:
43  const std::string _file_name;
44 
47 
49  const std::string _delimiter;
50 
52  const std::string _column_name;
53 
55  const bool _search_by_index;
56 
58  const unsigned int _column_index;
59 };
60 
61 #endif // CSVTIMESEQUENCESTEPPER_H
Solves the PDEs at a sequence of time points given as a column in a text table file (such as a *...
InputParameters validParams< CSVTimeSequenceStepper >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const bool _search_by_index
indicates whether to access a column using its index or its name
const MooseUtils::DelimitedFileReader::HeaderFlag _header
whether the file contains a header with the column names
const std::string _column_name
name of the column containing the time data
CSVTimeSequenceStepper(const InputParameters &parameters)
const std::string _file_name
name of the file where the data is read
virtual void init() override
Initialize the time stepper.
Solves the PDEs at a sequence of given time points.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
const unsigned int _column_index
index of the column containing the time data
const std::string _delimiter
string used as a delimiter