Process Parameter Data#

pybamm.parameters.process_1D_data(name, path=None)[source]#

Process 1D data from a csv file

pybamm.parameters.process_2D_data(name, path=None)[source]#

Process 2D data from a JSON file

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:
  • name (str) – The name to be given to the function

  • path (str) – The path to the file where the three dimensional data is stored.

Returns:

formatted_data – A tuple containing the name of the function and the data formatted correctly for use within three-dimensional interpolants.

Return type:

tuple

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:
  • name (str) – The name to be given to the function

  • path (str) – The path to the file where the three dimensional data is stored.

Returns:

formatted_data – A tuple containing the name of the function and the data formatted correctly for use within three-dimensional interpolants.

Return type:

tuple