--
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...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at http://groups.google.com/group/plumed-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Dear Giovanni and Gareth:
Thank you for your assistance. I started by getting my initial (inefficient) approach working. The following plumed.dat file does exactly what I want, although you are right that it is inefficient when there are many thousands of independently restrained water molecules (especially with MPI).
INCLUDE FILE=popc2.group
COM ATOMS=popc LABEL=com1
DISTANCE ATOMS=com1,6678 COMPONENTS LABEL=d1
COMBINE ARG=d1.z POWERS=2 PERIODIC=NO LABEL=e1
DISTANCE ATOMS=com1,6682 COMPONENTS LABEL=d2
COMBINE ARG=d2.z POWERS=2 PERIODIC=NO LABEL=e2
DISTANCE ATOMS=com1,6686 COMPONENTS LABEL=d3
COMBINE ARG=d3.z POWERS=2 PERIODIC=NO LABEL=e3
DISTANCE ATOMS=com1,6690 COMPONENTS LABEL=d4
COMBINE ARG=d4.z POWERS=2 PERIODIC=NO LABEL=e4
DISTANCE ATOMS=com1,6694 COMPONENTS LABEL=d5
COMBINE ARG=d5.z POWERS=2 PERIODIC=NO LABEL=e5
LOWER_WALLS ARG=e1,e2,e3,e4,e5 AT=2.25,2.25,2.25,2.25,2.25 KAPPA=200,200,200,200,200 EXP=2,2,2,2,2 EPS=1,1,1,1,1 OFFSET=0,0,0,0,0 LABEL=lwall
PRINT ARG=lwall.bias FILE=wall STRIDE=10
Just to provide numerical confirmation of your suggestion that this approach is inefficient, on a single core I get: 3 ns/day without plumed, 3 ns/day with the 5-water plumed.dat file above, and 2 ns/day with the whole 9000-water plumed.dat. However, on 8 cores the inefficiency is magnified: I get 17 ns/day without plumed, 12 ns/day with the 5-water plumed.dat, and 1.2 ns/day with the whole 9000-water plumed.dat.
I am now looking into the approaches that you suggested: (i) COORDINATION or (ii) DENSITY/SUBCELL. In this respect, I have a question about how these methods will add forces to bias the dynamics, especially the COORDINATION approach. It seems to me that COORDINATION is not differentiable since there are either 0 or 1 or 2, etc. water molecules that are coordinated. I have essentially the same question about the DENSITY/SUBCELL approach. I can see how either of these energetic terms could be used to drive a bias in a MC simulation, but would appreciate it if you can help me to make sure that these methods can drive a bias in an MD simulation before I work on them.
Thank you again for all of your help.
Thanks again for the help. I did get COORDINATION to work. The following plumed.dat file lead to a time of 19.6 ns/day (vs 26 ns/day without plumed). This efficiency is 75%. Not perfect, but much better than the DISTANCES plumed routine and also much better than thousands of restraints within gromacs (via my source code hack).INCLUDE FILE=central_lipid_atoms.groupINCLUDE FILE=water.groupCOORDINATION GROUPA=central_lipid_atoms GROUPB=water R_0=0.8 NLIST NL_CUTOFF=1.0 NL_STRIDE=10 LABEL=d1
UPPER_WALLS ARG=d1 AT=0 KAPPA=200 OFFSET=0 EXP=1 EPS=1 LABEL=uwall
PRINT ARG=uwall.bias FILE=wall STRIDE=10I had to play with KAPPA and EXP to find a combination that didn;t crash when there was water in the bilayer at the start. (i.e., KAPPA=1000 EXP=1 crashed, as did KAPPA=10, EXP=2).This is a workable solution for me and I am grateful for your assistance. If you do get the DENSITY/SUBCELL method working and think that it might be more efficient, then please let me know.(Also, it would be nice if I could somehow force the UPPER_WALLS command to act only along the z dimension. Is that possible? I don;t see the option to use d1.z when d1 is a COORDINATION).
Thank you,