Hi everyone,
I am trying to metadynamics simulation on 2 CVs, z distance, and local density (using DENSITY and AROUND) in a cubic section of my simulation box. I have gone through the tutorial and used the same parameters for different parameters, height, sigma, bias factor. I also tried changing these values a bit based on the suggestions in the earlier thread available in the forum, links.
But for every run after a few ns simulations, I get the error: the system is looking for a value outside the grid along the 0 (ds.z) index. I checked the values of my CVs (ds.z and dens1) and they are within the defined GRID_MAX and GRID_MIN. I didn't provide GRID_BIN or GRID_SPACING as suggested by Max in a previous thread (link 1).
One thing I noticed in the previous threads, people used an Upper wall at GRID_MAX to restrict CVs along with metadynamics. My question is do we need additional to constrain the CVs or does metadynamics take care of constraining the CVs in the given MIN and MAX GRID?
This my plumed file. Please let me know any suggestions and recommendations to make this work.
#############################
RESTART
WHOLEMOLECULES ENTITY0=1-3774 ENTITY1=3775-3848
c: COM ATOMS=3775-3848
ds: DISTANCE ATOMS=1910,c COMPONENTS
vol: VOLUME
ene: ENERGY
rxy: MATHEVAL ARG=ds.x,ds.y VAR=x,y FUNC=sqrt((x-0.271023)*(x-0.271023)+(y-0.164407)*(y-0.164407)) PERIODIC=NO
Theta: ANGLE ATOMS=1910,c,3840
Phi: TORSION ATOMS=1910,c,3840,3784
Psi: TORSION ATOMS=985,1910,c,3840
DENSITY SPECIES=3849-21498 LABEL=dens
AROUND ATOM=1910 DATA=dens SIGMA=0.1 XLOWER=-0.3 XUPPER=0.4 YLOWER=-0.3 YUPPER=0.7 ZLOWER=0.0 ZUPPER=1 LABEL=dens1
metad: METAD ARG=ds.z,dens1 PACE=500 SIGMA=0.1,1 HEIGHT=1 FILE=HILLS GRID_MIN=0,0 GRID_MAX=1.5,120
PRINT STRIDE=500 ARG=* FILE=COLVAR
DUMPMASSCHARGE FILE=mcfile
###############################################
Thank you very much,
Lakshman