mlund / faunus

A Framework for Metropolis Monte Carlo Simulation of Molecular Systems
https://faunus.readthedocs.io
MIT License
66 stars 34 forks source link

Improve analysis (rerun, on the fly output) #196

Open rc83 opened 5 years ago

rc83 commented 5 years ago

Faunus do – beside running MC simulations – also analysis of data. It would be beneficial to perform the same analysis on an existing trajectory without actually running the simulation. It shall be considered that several properties may change during the simulation, e.g., an atomic charge, and not all formats can handle them, e.g., xtc format stores only atomic coordinates, pqr format stores coordinates, charges and radii.

The analysis is performed in parallel to the simulation. However only summary values are usually written at the end. It can be reasonable to write out the analysis result progressively. Either values for every (n-th) step if desirable or as an average over a block of n steps. The output can be written to separate files or in various formats, e.g., csv, hdf5, depending on the nature of data.

mlund commented 4 years ago

mdtraj uses an HDF5 trajectory format that I suspect could be expanded with charges: