RandomSpin

class RandomSpin(scaled_spins=None)

Constructor for RandomSpin.

Parameters:

scaled_spins (list) – The limit for the initial random polarization for each atom.
Default: 1.0 for each atom..

uniqueString()

Return a unique string representing the state of the object.

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\) ).