Dear all,
In case it can be useful, please find a patch to use the projection of a distance (on a cartesian axis or plane) as CV.
It will enable the optional DIR modifier to DISTANCE, with the following syntax:
DISTANCE LIST {group1} {group2} [DIR projection] ...
The modifier [DIR projection] can be DIR followed by X,Y,Z,XY,XZ or YZ.
For instance,
PRINT W_STRIDE 100
DISTANCE LIST 1 2 SIGMA 0.5 DIR X # projection on X axis
DISTANCE LIST 1 2 DIR Y # projection on Y axis
DISTANCE LIST 1 2 DIR Z # projection on Z axis
DISTANCE LIST 1 2 DIR XZ # projection on XZ plane
DISTANCE LIST 1 2 # no projection
HILLS HEIGHT 0.1 W_STRIDE 1000
WELLTEMPERED SIMTEMP 300 BIASFACTOR 10
ENDMETA
With the above example, in COLVAR one would therefore find that ...
CV4 ^2 = CV1 ^2 + CV3 ^2
CV5 ^2 = CV1 ^2 + CV2 ^2 + CV3 ^2
Note that it is an experimental feature, so please exercise due caution.
PS. I don't know how google groups handles file attachments. In case it gets removed, I will repost it later.
Best,
Toni
--
Toni Giorgino, PhD -
toni.g...@gmail.com - fax
+39 0382 1850209Research Unit on Biomedical Informatics, Barcelona Biomedical Parc (GRIB-IMIM-PRBB,
grib.imim.es)