Adding and Manipulating Data

The code pipeline is designed to be easily scaleable, thus, incorporation of new measurements, or new materials is natively built in.

To do so, follow the outline steps:

  1. Make a branch or local copy of this repository

  2. Navigate to: ~/thermal_conductivity/lib/

  3. Create a new folder with the same name of the material you wish to add (the name of the folder is crucial as it is also how that material will be referenced).

  4. Within that folder create a new folder within which to store the raw data. (I recommend naming it ‘RAW’, though theoretically, this is not a requirement)

  5. Within this ‘RAW’ folder, paste the relevant measurement .csv files (the data MUST be in csv format otherwise the code will not be able to find it). Each .csv data file must be of the format shown below, see one of the existing materials for more examples. Note, make sure there are no commas present in the reference information otherwise python will be unable to parse the comma delimited file.

  6. Once the data is added, the material instance should be updated so that its fit can be recalculated. More information on this can be found on the Update page.

Raw Data Table format

TITLE OF REFERENCE

AUTHORS (separated by non-comma delimiter)

REFERENCE SOURCE

T (K)

k (W/m-K)

k/T

293

14.31

0.0488

300

14.43

0.0481

320

14.75

0.0461