BraWl
Loading...
Searching...
No Matches
random_site.f90 File Reference

Assorted routines for getting random lattice sites and neighbours. More...

Go to the source code of this file.

Modules

module  random_site
 

Functions/Subroutines

pure integer function, dimension(4), public random_site::simple_cubic_random_site (setup)
 Function to get a random site on the simple cubic lattice.
 
pure integer function, dimension(4), public random_site::simple_cubic_random_nbr (setup, site)
 Function to get a random neighbour of a site on the simple cubic lattice.
 
pure integer function, dimension(4), public random_site::bcc_random_site (setup)
 Function to get a random site on the bcc lattice.
 
pure integer function, dimension(4), public random_site::bcc_random_nbr (setup, site)
 Function to get a random neighbour of a site on the bcc lattice.
 
pure integer function, dimension(4), public random_site::fcc_random_site (setup)
 Function to get a random site on the fcc lattice.
 
pure integer function, dimension(4), public random_site::fcc_random_nbr (setup, site)
 Function to get a random neighbour of a site on the fcc lattice.
 
subroutine, public random_site::pair_swap (config, idx1, idx2)
 Function to swap a pair of lattice site occupancies.
 

Variables

integer, dimension(3, 6), parameter random_site::sc_nbrs = reshape((/ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, -1, 0, -1, 0, -1, 0, 0 /), (/3, 6/))
 
integer, dimension(3, 8), parameter random_site::bcc_nbrs = reshape((/ 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, -1, -1, -1 /), (/3, 8/))
 
integer, dimension(3, 12), parameter random_site::fcc_nbrs = reshape((/ 0, 1, 1, 0, 1, -1, 0, -1, 1, 0, -1, -1, 1, 1, 0, 1, -1, 0, 1, 0, 1, 1, 0, -1, -1, 1, 0, -1, -1, 0, -1, 0, 1, -1, 0, -1 /), (/3, 12/))
 

Detailed Description

Assorted routines for getting random lattice sites and neighbours.

This module contains routines for obtaining random sites on the various implemented lattice types.

Author
C. D. Woodgate
Date
2019-2025

Definition in file random_site.f90.