giorginolab / vmd_diffusion_coefficient

Computing Diffusion Coefficients in Macromolecular Simulations: The Diffusion Coefficient Tool for VMD
https://doi.org/10.21105/joss.01698
BSD 3-Clause "New" or "Revised" License
30 stars 13 forks source link

Selection in Diffusion Coefficient Tool #13

Closed jiroegbu closed 1 year ago

jiroegbu commented 2 years ago

Hi, good day. I have a system containing lithium and perchlorate ions, I can easily determine diffusion coefficients for lithium ion using selection as type 2 which represents lithium in my trajectory and data file. However, for perchlorate ion it is not working. I used "type 3" as selection to mean the chlorine in the perchlorate structure but it does not work. I also tried "type 3 or type 4" to mean both the chlorine and the 4 oxygen in the ion and it still did not work). What is the way around this? Thank you.

tonigi commented 2 years ago

What is the error?

jiroegbu commented 2 years ago

Each selected atom should belong to a separate molecule

tonigi commented 2 years ago

You have to figure out a selection which matches only one atom per molecule. That depends on your case. Upload the loaded files if further help is needed.

jiroegbu commented 2 years ago

I believe the type 3 selection represents the single chlorine atom in the perchlorate ion which contains one chlorine atom and 4 oxygen atoms. I have added a link to download the file I am analyzing (86mb)

https://drive.google.com/file/d/16SDWEM23TBozODGeP9xfsHm2A9ZOdEFp/view?usp=sharing

tonigi commented 2 years ago

There seem to be 2 problems.

jiroegbu commented 2 years ago

Thanks. I understand the second point. Any idea for how to fix the first?

tonigi commented 1 year ago

Sorry for the late reply. Have a look at VMD's functions, such as bondsrecalc, or topotools