On May 4, 2019, at 8:16 AM, a.h.sa...@gmail.com wrote:Hello folks!I am new to MDAnalysis.
I do simulation in LAMMPS with LJ units. I read the MDAnalysis manual and realized that the lj unit is not automatically detected by it. How can load the dump files (LAMMPSDUMP) with lj unit system? Can I redefine MDAnalysis (basic) units in LJ and use them in my analysis?
Dear Oliver,
AlthoughI know it have been long time since I posted this issued, I would like to discuss the problem of LJ unit in MDAnalysis again. Before further explanation, I need to mention that instead of using a DCD and DATA for importing a LAMMPS-generated universe in MDAnalysis, I am using an ordinary LAMMPS atom-style dump file (recognized as LAMMPSDUMP in MDAnalysis). A dump file contains id, type, x, y, z properties of an atom. Hence, the coordinates are in unscaled or ordinary format.
Following your ideas, I first load a LAMMPSDUMP file without any additional specifications. The loaded universe suffers two issues:
While I can resolve the first issue using a trajectory transformation with sigma=0.01 based on your response, I do not know how the second one happens.
Tp have correct time difference between frames, I also changed the dt when a universe loaded.
It was not important for me at this stage to have the real units, my goal were only to correctly load the universe and work with correct numbers in the MDAnalysis platform.
Attached to this email you can find the first 10 frames of a simulation output in LAMMPS dump, and the code snippet I used to load the dump file in MDAnalyze.
Thank you very much in advance for your help.
Best regards,
Amir
Hi,
Dear Oliver,
AlthoughI know it have been long time since I posted this issued, I would like to discuss the problem of LJ unit in MDAnalysis again. Before further explanation, I need to mention that instead of using a DCD and DATA for importing a LAMMPS-generated universe in MDAnalysis, I am using an ordinary LAMMPS atom-style dump file (recognized as LAMMPSDUMP in MDAnalysis). A dump file contains id, type, x, y, z properties of an atom. Hence, the coordinates are in unscaled or ordinary format.
Following your ideas, I first load a LAMMPSDUMP file without any additional specifications. The loaded universe suffers two issues:
While I can resolve the first issue using a trajectory transformation with sigma=0.01 based on your response, I do not know how the second one happens.
Tp have correct time difference between frames, I also changed the dt when a universe loaded.
It was not important for me at this stage to have the real units, my goal were only to correctly load the universe and work with correct numbers in the MDAnalysis platform.
Attached to this email you can find the first 10 frames of a simulation output in LAMMPS dump, and the pythonic code snippet I used to load it in MDAnalyze.
Thank you very much in advance for your help.
Best regards,
Amir
Hi,
def remove_unscaling(ts, vector=[xlen,ylen,zlen]):ts.positions /= vectorreturn tsu.trajectory.add_transformations(remove_unscaling)
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/e276e0d8-dd02-4b7a-b63f-c423dc7cf38f%40googlegroups.com.
<test_lj.py><N80epsilon5.0r3.0lz51.0sig0.2nc0ens1_frame10.bug.trj>
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/7F02425F-B8B7-4D0D-8BC8-A47B52BC3CD6%40gmail.com.