Volumetric map simulations

From: Carlo Guardiani (carlo.guardiani_at_uniroma1.it)
Date: Thu Mar 25 2021 - 05:22:10 CDT

Dear NAMD experts,
I am trying to run simulations with volumetric map-based
variables. At the moment I am trying to bias the number
of water molecules inside the pore of an ion channel
following the instructions in the Reference manual for
the Collective Variables Module. I built the pore occupancy
map using VMD on a preliminary trajectory

set sel [atomselect top "water and (z > -40) and (z < 25) and
(sqrt(x*x+y*y) < 12)"]

volmap occupancy $sel -allframes -combine max -o Occupancy.dx

package require volutil

volutil -o Occupancy_smooth.dx -pad -smooth 0.0001 Occupancy.dx

The map, visualized with VMD, looks reasonable in that all
the pore region appears to be filled.

Following the manual, I also created a file where all water
molecules are marked in the occupancy column. Is that correct ?
Maybe I had to mark only the water molecule initially inside the
pore ? The file was generated with the following tcl script

mol load pdb TMD_4HKR_to_6BBF_frame_0.pdb
set all [atomselect top "all"]
$all set occupancy 0
set wat [atomselect top "water and (name O)"]
$wat set occupancy 1
$all writepdb mark_water.pdb

I added the following commands to the main NAMD input file

mGridForce yes
mGridForcePotFile Cavity Occupancy_smooth.dx
mGridForceFile Cavity mark_water.pdb
mGridForceCol Cavity O
mGridForceChargeCol Cavity B
mGridForceScale Cavity 0.0 0.0 0.0

colvars on
colvarsConfig ./ColvarConfig.conf

Finally, I defined in file ColvarConfig.conf a collective
variable that, I expected, should count the number of water
molecules in the cavity.

colvar {
   name nwaters
   mapTotal {
    mapName Cavity
    componentCoeff 1.0
   }
}

harmonic {
  colvars nwaters
  centers 277 # centered around initial number of water
molecules
  forceConstant 50000
}

As you can see, I applied an harmonic bias to keep the number
of water molecules in the cavity close to the initial value
(277 molecules). Here comes the problem: according to the
.traj file the value of collective variable nwaters is constantly
equal to zero which is clearly wrong. The system was run for 5.0 ns
with NAMD 2.14. During the simulation the number of water molecules
inside the pore made oscillations of the order of 10% with respect
to the initial value. However, I suspect that an unbiased equilibrium
simulation would have done the same, so that this cannot be used as
a diagnostic criterium that the simulation is doing what it was
intended to do.

Could you please tell me what to do ? This is the first time I run this
kind of simulations so that some trivial mistake is highly possible.

Many thanks for your help,

Carlo Guardiani

-- 
________________________________________________________
Le informazioni 
contenute in questo messaggio di posta elettronica sono strettamente 
riservate e indirizzate esclusivamente al destinatario. Si prega di non 
leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non 
si è il legittimo destinatario dello stesso. Qualora tale messaggio sia 
stato ricevuto per errore, si prega di restituirlo al mittente e di 
cancellarlo permanentemente dal proprio computer.
The information contained 
in this e mail message is strictly confidential and intended for the use of 
the addressee only.  If you are not the intended recipient, please do not 
read, copy, forward or store it on your computer. If you have received the 
message in error, please forward it back to the sender and delete it 
permanently from your computer system.

This archive was generated by hypermail 2.1.6 : Fri Dec 31 2021 - 23:17:11 CST