Hello, I am currently working on polymer system where I am using “compute MSD” module using the dump file ehich was generated from the simulation run of 100 ns, here is my dump file generation script:-
4. PRODUCTION RUN (50 ns @ 2 fs)
NVT at volume from NPT
==========================================
reset_timestep 0
timestep 2.0 # 2 fs, as requested (watch stability!)
Use NVT for production at fixed volume from NPT
fix myprod all nvt temp 298.0 298.0 100.0
Dumps and restarts
dump myDump all atom 10000 dump.lammpstrj
dump_modify myDump sort id
Write restart files so you can resume if something happens
restart 5000000 restart1.lmp restart2.lmp
thermo 5000
50 ns = 50,000 ps = 50,000,000 fs
100 ns = 100,000 ps = 100,000,000 fs
At 2 fs/step → 25,000,000 steps
At 2 fs/step → 50,000,000 steps
run 50000000 # 100 ns @ 2 fs
After this I created another script of MSD where i used the dump.lammpstrj to compute for msd where the part of script is :-
compute 1 li msd com yes average yes
compute 2 emim msd com yes average yes
compute 3 tfsi msd com yes average yes
fix msdout all ave/time 1 1 10000 c_1[1] file msd_li.dat
fix msdout all ave/time 2 2 10000 c_2[1] file msd_emim.dat
fix msdout all ave/time 3 3 10000 c_3[1] file msd_tfsi.dat
rerun dump.lammpstrj first dump x y z box yes
for the reference the dump.lammpstrj file looks like this (first few lines):-
ITEM: TIMESTEP
419000
ITEM: NUMBER OF ATOMS
10300
ITEM: BOX BOUNDS pp pp pp
1.1403265252281745e+01 7.3894734747722907e+01
1.1390764252281752e+01 7.3882233747722921e+01
1.1244764252281744e+01 7.3736233747722906e+01
ITEM: ATOMS id type xs ys zs
1 6 0.775772 0.86388 0.272189
2 14 0.777518 0.855162 0.287326
3 14 0.785218 0.855428 0.261174
4 14 0.782322 0.880022 0.274059
5 3 0.752195 0.865121 0.264957
6 11 0.746612 0.850849 0.258994
7 11 0.741713 0.871879 0.276264
8 16 0.751356 0.880404 0.24674
9 7 0.762333 0.879665 0.227716
10 15 0.773626 0.866266 0.224697
But my problem is MSD plot which I am getting has too much fluctuations and i am not able to get linear fit , so i also went to search for it in other sources ; that it is wrapped trajectories,
so can anyone help me understand this part and help me in this problem?
Warm regards.