Hi everyone,
I’m trying to compute the center of excess charge (CEC) using CENTER_OF_MULTICOLVAR, but I’m running into an issue with how to combine multiple transformed coordination numbers.
Here is my input:
UNITS LENGTH=A ENERGY=eV TIME=ps
HYDROGENS: GROUP NDX_FILE=H_water_N3.ndx NDX_GROUP=H_water_N3
water_oxygens: GROUP NDX_FILE=O_water.ndx NDX_GROUP=O_water
cn1: COORDINATIONNUMBER SPECIESA=HYDROGENS SPECIESB=2641,2642,2643,2644,2645 SWITCH={COSINUS D_0=1.1 R_0=0.2} LOWMEM
cn2: COORDINATIONNUMBER SPECIESA=water_oxygens SPECIESB=HYDROGENS SWITCH={COSINUS D_0=1.1 R_0=0.2} LOWMEM
w1: MTRANSFORM_MORE DATA=cn1 SWITCH={COSINUS D_0=0 R_0=1} LOWMEM MEAN LOWEST HIGHEST
w2: MTRANSFORM_MORE DATA=cn2 SWITCH={COSINUS D_0=2 R_0=1} LOWMEM MEAN LOWEST HIGHEST
cec: CENTER_OF_MULTICOLVAR DATA=w
pcec: POSITION ATOM=cec
d: DISTANCE ATOMS=cec,2645
PRINT ARG=d,pcec.x,pcec.y,pcec.z STRIDE=1 FILE=colvars.dat
PLUMED gives the following error:
ERROR in input to action CENTER_OF_MULTICOLVAR with label cec : action labelled w does not exist or does not have vessels
What I want to do is use both w1 and w2 as weights in the CENTER_OF_MULTICOLVAR.
My question is: how should I properly combine w1 and w2 so they can be passed to CENTER_OF_MULTICOLVAR?
Thanks!
--
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 view this discussion visit https://groups.google.com/d/msgid/plumed-users/63fd7172-46c3-495d-9555-3bf2e8a12a8dn%40googlegroups.com.
Hi, thanks for the detailed explanation, that helps a lot.
What I want is to compute a single center that includes both hydrogens and oxygens together, where:
hydrogens are weighted by w1
oxygens are weighted by w2
So effectively I am trying to compute something like:
) /i.e. a weighted average over all atoms (H + O) using their respective transformed coordination numbers.
Thanks again!