Process Parameter Data#
- pybamm.parameters.process_2D_data_csv(name, path=None)[source]#
Process 2D data from a csv file. Assumes data is in the form of a three columns and that all data points lie on a regular grid. The first column is assumed to be the ‘slowest’ changing variable and the second column the ‘fastest’ changing variable, which is the C convention for indexing multidimensional arrays (as opposed to the Fortran convention where the ‘fastest’ changing variable comes first).
- Parameters:
- Returns:
formatted_data – A tuple containing the name of the function and the data formatted correctly for use within three-dimensional interpolants.
- Return type:
- pybamm.parameters.process_3D_data_csv(name, path=None)[source]#
Process 3D data from a csv file. Assumes data is in the form of four columns and that all data points lie on a regular grid. The first column is assumed to be the ‘slowest’ changing variable and the third column the ‘fastest’ changing variable, which is the C convention for indexing multidimensional arrays (as opposed to the Fortran convention where the ‘fastest’ changing variable comes first).
- Parameters:
- Returns:
formatted_data – A tuple containing the name of the function and the data formatted correctly for use within three-dimensional interpolants.
- Return type: