vasp.rotate.cell: Rotates the content of a cell by a specific angle.

Usage Arguments Details Value Author(s) See Also

Usage

1
vasp.rotate.cell(cell, lattice = NULL, angle = NULL)

Arguments

cell

A data.frame containing at least two named columns "x" and "y" with Cartesian coordinates or an object of class "vasp".

lattice

A data.frame of dimension 3x3 containing the lattice vectors in its rows and their coordinates in its columns. See vasp.import. If the argument 'cell' is an object of class "vasp" 'lattice' can is omitted.

angle

Specifies the angle with which the cell is going to be rotated. If no value is supplied the angle between the two lattice vectors is determined and the content will be shifted clockwise by half of its value.

Details

In the current version of this function only a rotation in the x-y plane is possible. If no angle is provided the angle between the two lattice vectors is determined and the content will be shifted clockwise by half of its value. Internally a rotation matrix is applied to all the coordinates in the cell. It is intended to be a generic function working with both the specific content of the cell, like the atom positions, and an object of class "vasp".

Value

Same object like the input "cell" but with modified coordinates.

Author(s)

Philipp Mueller

See Also

vasp.import

Other vasp: vasp.bonds, vasp.diff, vasp.import, vasp.reproduce


theGreatWhiteShark/vasp2R documentation built on May 31, 2019, 9:10 a.m.