62 void getAxes(std::vector<int> & axes);
68 void getGrid(std::vector<std::vector<Real>> & grid);
73 void getFcn(std::vector<Real> & fcn);
108 static void parse(
unsigned int &
dim,
109 std::vector<int> & axes,
110 std::vector<std::vector<Real>> & grid,
111 std::vector<Real> & f,
112 std::vector<unsigned int> & step,
113 std::string file_name);
118 std::vector<std::vector<Real>>
_grid;
135 static void splitToRealVec(
const std::string & input_string, std::vector<Real> & output_vec);
137 void updateGrid(
unsigned int &
dim,
const std::vector<Real> & axis_i,
const int axis_index);
Container for holding a function defined on a grid of arbitrary dimension.
MooseUtils::SemidynamicVector< unsigned int, 4 > GridIndex
static bool getSignificantLine(std::ifstream &file_stream, std::string &line)
Extracts the next line from file_stream that is:
std::vector< std::vector< Real > > _grid
void updateGrid(unsigned int &dim, const std::vector< Real > &axis_i, const int axis_index)
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
MooseUtils::SemidynamicVector< Real, 4 > GridPoint
Utility class template for a semidynamic vector with a maximum size N and a chosen dynamic size...
Real evaluateFcn(const GridIndex &ijk)
Evaluates the function at a given grid point.
void getAxes(std::vector< int > &axes)
Yields axes information.
std::vector< unsigned int > _step
static void splitToRealVec(const std::string &input_string, std::vector< Real > &output_vec)
Splits an input_string using space as the separator Converts the resulting items to Real...
GriddedData(std::string file_name)
Construct with a file name.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual ~GriddedData()=default
unsigned int getDim()
Returns the dimensionality of the grid.
static void parse(unsigned int &dim, std::vector< int > &axes, std::vector< std::vector< Real >> &grid, std::vector< Real > &f, std::vector< unsigned int > &step, std::string file_name)
parse the file_name extracting information.
void getFcn(std::vector< Real > &fcn)
Yields the values defined at the grid points.
void getGrid(std::vector< std::vector< Real >> &grid)
Yields the grid.
MooseUtils::SemidynamicVector< ADReal, 4 > ADGridPoint