Name

RandomSpin — Class for representing a random initial spin configuration.

Synopsis

Namespace: NanoLanguage
RandomSpin(scaled_spins)

Description

The constructor of RandomSpin.

RandomSpin Arguments

scaled_spins

The initial scaled spin for each atom will be set to a random number between -1 and 1 (but not larger than the specified scaled_spins), corresponding to the net spin-polarization in fractions of the atomic polarization according to Hund's rule.

Type: A sequence of numbers with the same length as the number of atoms in the system; or a list of tuples with atom indices and corresponding scaled spin values; or a list of tuples with element and scaled spin value; or a combination of the latter two.

Default: A random value in the range [-1,1] for each atom

Usage Examples

See InitialSpin for a detailed discussion on setting the initial spin.

Notes

RandomSpin works essentially the same way InitialSpin does, except that the input parameter scaled_spins is used as a limit \alpha_i for the initial spin polarization on each atom i. The actual initial spin set for atom i will be a random number in the interval [0,\alpha_i] (or [\alpha_i,0] if \alpha_i<0).