com1DFA.particleTools.savePartToCsv

savePartToCsv(particleProperties, dictList, outDir)[source]

Save each particle dictionary from a list to a csv file; works also for one dictionary instead of list

Parameters
  • particleProperties (str) – all particle properties that shall be saved to csv file (e.g.: m, velocityMagnitude, ux,..)

  • dictList (list or dict) – list of dictionaries or single dictionary

  • outDir (str) – path to output directory; particlesCSV will be created in this outDir