Printing COM distances between two COM groups produces nan

422 views
Skip to first unread message

billy.willi...@gmail.com

unread,
Nov 3, 2016, 11:57:53 PM11/3/16
to PLUMED users
Hi there Plumed experts,

I am using the following plumed input entitled plumed-print-distance.dat:

com1: COM ATOMS=1-3
com2: COM ATOMS=64-67

d1: DISTANCE ATOMS=49,25
d2: DISTANCE ATOMS=5,49
d3: DISTANCE ATOMS=44,36
d4: DISTANCE ATOMS=2,64

PRINT STRIDE=1 ARG=d1,d2,d3,d4 FILE=All_dist_thin

And the following plumed command:

plumed driver --plumed plumed-print-distance.dat --mf_trr ./meta_thin.trr --trajectory-stride 1

And it produces nan for the CV labeled 'd4'.

Both the COLVAR file and the HILLS file from the original GROMACS trajectory include values for 'd4'.  But when I try and print the distances with plumed driver using the same pre-defined CVs it will not produce a number for 'd4'.

Any help on the correct syntax to use to print these distances would be appreciated.

Kind regards,

Billy

billy.willi...@gmail.com

unread,
Nov 4, 2016, 12:02:07 AM11/4/16
to PLUMED users
I've read here that:


Notice that by default the driver has no knowledge about the masses and charges of your atoms! Thus, if you want to compute quantities depending charges (e.g. DHENERGY) or masses (e.g. COM) you should pass the proper information to the driver. You can do it either with the –pdb option or with the –mc option. The latter will read a file produced by DUMPMASSCHARGE.

Could someone please point me in the right direction about how to use the -pdb option?

Giovanni Bussi

unread,
Nov 4, 2016, 3:47:57 AM11/4/16
to plumed...@googlegroups.com
You should put masses in the occupancy field of the PDB.

Notice that PDB have a fixed column format that might be error prone. My recommendation is to run a short (1 step) md using DUMPMASSCHARGE to produce a mass/charge file then read it back from the driver command line with "--mc". See the example on the DUMPMASSCHARGE documentation.

Giovanni


--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users+unsubscribe@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at https://groups.google.com/group/plumed-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/8f162692-e8b1-4e12-bbd8-709de6fe4063%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages