Navigation: Documentation / Collective Variables / CV:PVANG


Definition

The angle between the normal vector of the plane A and the vector pointing from the point B to the point C.

ฮพ=arccos(๐งA.(๐‚comโˆ’๐com)|๐‚comโˆ’๐com|)

The plane is defined as the best fit among atoms in the atom group A. The fit is mass weighted.

ฯˆ(๐งA')=โˆ‘i=1groupAmi[๐งA'.(๐ฑiโˆ’๐€com)]2โ†’min!

The orientation of the plane normal vector is controled by two helper vectors xdir and ydir:

๐งA=sign(๐งA'.(๐ฑdirร—๐ฒdir))๐งA'

PBC note: The minimum-image convention is not used.


Specification

Section name: PVANG

Key Type Default Description




name string unique CV name
group_a mask atoms specifying the plane A
x_direction mask single atom specifying the end of approximate x-direction vector. The vector origin is in Acom. The atom must be member of the group A.
y_direction mask single atom specifying the end of approximate y-direction vector. The vector origin is in Acom. The atom must be member of the group A.
group_b mask atoms specifying the point B, which is the origin of the vector
group_c mask atoms specifying the point C, which is the end of the vector

Keys in bold are mandatory.