Added flat-bottom cylindrical restraints in x and y.
authorJustin Lemkul <jalemkul@vt.edu>
Thu, 14 Aug 2014 23:04:34 +0000 (19:04 -0400)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 10 Sep 2014 05:17:33 +0000 (07:17 +0200)
commitcb466e44535ac45f2ee8341dcae39207b5813abe
tree3be4c3281ec2384e5c05e5a13690aa70e1621a2a
parent1ff3f3bf02fa4457248228557ab0d3ffbbb7cd76
Added flat-bottom cylindrical restraints in x and y.

The code previously only allowed the long axis of the cylinder
to be aligned along z.  This patch allows the cylinder to be
aligned along any axis.

Old topologies and .tpr files will still work for all geometries with
g values from 2 to 5, as 2 is now just a synonym for a z-directional
cylinder.  The new values are g=6 for x, g=7 for y, and g=8 for z.
The manual has been updated to reflect these changes.

Introduced a new static function that computes forces and energy for the
flat-bottom restraint.

Refs #1577

Change-Id: I40e0bd35225170e13a18ee54f6798470e697f29d
docs/manual/forcefield.tex
src/gromacs/bonded/bonded.cpp
src/gromacs/gmxpreprocess/readir.c
src/gromacs/legacyheaders/types/enums.h