Change the length of a specified bond. Variable atoms
specifies
which atoms or rather which part of the molecule needs to be moved for
this specific bond. The given length is going to be the new bond length,
not by how much the bond length is changed.
The move vector is determined automatically by the given length and atom
bond. This vector can also be given manually with no regards to length,
by setting the variable vec
.
List of two atom ids of the bond to be adjusted
List of atoms that need to be moved by changing the bond length (can also be one id)
New bond length
Set this vector to manually define the translation vector
Examples
mol.part_move([0, 1], [1, 2, 3], 0.5)