ivcurves.precise.build_precise_json#

ivcurves.precise.build_precise_json(case_parameter_sets, vth, temp_cell, atol, num_pts, test_set_json=None)#

Builds a dict of precise IV curve solutions compliant with the IV Curve JSON schema.

Parameters:
  • case_parameter_sets (dict) – A mapping of test case indices to a list of test case parameters.

  • vth (numeric) – Thermal voltage of the cell \(V_{th}\) [V] The thermal voltage of the cell (in volts) may be calculated as \(k_B T_c / q\), where \(k_B\) is Boltzmann’s constant (J/K), \(T_c\) is the temperature of the p-n junction in Kelvin, and \(q\) is the charge of an electron (coulombs).

  • temp_cell (numeric) – The test set’s cell temperature.

  • atol (numeric) – The absolute tolerance allowed when generating the IV curve data from the test case’s parameters.

  • num_pts (int) – Number of points calculated on IV curve.

  • test_set_json (dict, optional) – An empty dict providing the structure of the JSON file to be written.

Return type:

dict