com1DFA.particleTools.savePartToCsv

savePartToCsv(particleProperties, dictList, outDir, countParticleCsv=None)[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

  • countParticleCsv (int) – number of particlesDict to be saved according to time step - ranging from 0…n where n is the total number of saved particleDicts - if list of dicts is saved this parameter is ignored