You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the topic of your question: Usage / Documentation, maybe Bug
Add your question below:
When I run the LyPyphilic lateral_diffusion.MSD module on simulations of Amber Lipid21 lipids in GROMACS and then calculate the diffusion coefficient, I get an answer that is the wrong order of magnitude for standard lipids. The following code is based off the example notebook.
I have tried messing with the dt argument of MSD. My simulation uses a tilmestep of 0.002 ps (2 fs) and saves a trajectory frame every 100000 steps (200 ps = 0.2 ns). Therefore I wouldn't expect that setting dt to 0.2 would change anything, but setting it does change the calculated diffusion coefficient (2 orders of magnitude higher when set). The documentation says:
dt(float, optional) – The time, in nanoseconds, between consecutive frames in universe.trajectory. The defualt is None, in which case dt is taken to be universe.trajectory.dt divided by 1000.
In my code, u_DO.trajectory.dt is 200, so if I were to not set dt, the result should also be 0.2.
Is there something I am not understanding, or is there maybe a unit conversion error somewhere in the code?
The text was updated successfully, but these errors were encountered:
What is the topic of your question: Usage / Documentation, maybe Bug
Add your question below:
When I run the LyPyphilic
lateral_diffusion.MSD
module on simulations of Amber Lipid21 lipids in GROMACS and then calculate the diffusion coefficient, I get an answer that is the wrong order of magnitude for standard lipids. The following code is based off the example notebook.The resulting graph shows really high MSD:
And the diffusion coefficients are ~10000x too large
Lipid diffusivity should be on the order of 1e-8 cm^2/sec, and Amber Lipid14 did capture this (table 9) (there isn't diffusion data in the Lipid21 paper)
I have tried messing with the
dt
argument ofMSD
. My simulation uses a tilmestep of 0.002 ps (2 fs) and saves a trajectory frame every 100000 steps (200 ps = 0.2 ns). Therefore I wouldn't expect that settingdt
to 0.2 would change anything, but setting it does change the calculated diffusion coefficient (2 orders of magnitude higher when set). The documentation says:In my code,
u_DO.trajectory.dt
is 200, so if I were to not set dt, the result should also be 0.2.Is there something I am not understanding, or is there maybe a unit conversion error somewhere in the code?
The text was updated successfully, but these errors were encountered: