www.mooseframework.org
CSVTimeSequenceStepper.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
13 #include "DelimitedFileReader.h"
14 
24 {
25 public:
27 
29 
30  virtual void init() override;
31 
32 protected:
34  const std::string _file_name;
35 
38 
40  const std::string _delimiter;
41 
43  const std::string _column_name;
44 
46  const bool _search_by_index;
47 
49  const unsigned int _column_index;
50 };
Solves the PDEs at a sequence of time points given as a column in a text table file (such as a *...
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)
static InputParameters validParams()
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.
const unsigned int _column_index
index of the column containing the time data
const std::string _delimiter
string used as a delimiter