Reference

Module providing physics calculations

physics.calculate_force(p1, p2)

Calculates the force on particle1 due to particle2 (and vice versa)

Module provides methods for reading and writing sim data to and from log files

file_io.export_dict(path_dict, sim_name)

Writes sim data to the log file

Stored the path_dict under the key sim_name

Parameters:
  • path_dict (dict) – The simulation data in dictionary form
  • sim_name (str) – The name of the simulation
Returns:

None

file_io.read_db(sim_name)

Reads sim data from the log file

Parameters:sim_name (str) – The name of the simulation as stored in the log file
Returns:The simulation data in dictionary form
Return type:dict

Module providing basic vector math