aa_rand Subroutine

public subroutine aa_rand(axis, angle)

Generates a random orientation in axis-angle representation. The axis is a random vector drawn from a uniform distribution on the surface of a unit sphere. The current implementation in based on the algorithm from Allen & Tildesley p. 349.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(out), dimension(3) :: axis
real(kind=rp), intent(out) :: angle