BraWl
|
Functions/Subroutines | |
subroutine, public | store_state (averages, config, setup) |
Subroutine to add this configuration to the average. | |
subroutine, public | average_state (averages, setup, n_steps) |
Subroutine to compute average occupancies. | |
integer function, public | total_particle_count (setup, config) |
Function to count the total number of particles in the box. | |
subroutine, public | print_particle_count (setup, config, my_rank) |
Subroutine to print the number of atoms of each species. | |
subroutine, public | lattice_shells (setup, shells, configuration) |
Subroutine to compute lattice shell distances. | |
real(real64) function, dimension(setup%n_species, setup%n_species, n_shells), public | radial_densities (setup, configuration, n_shells, shell_distances) |
Subroutine to compute radial densities (ASRO parameters) | |
recursive subroutine | quicksort (array) |
Implementation of the quicksort algorithm for arrays. | |
subroutine, public analytics::average_state | ( | real(real64), dimension(:,:,:,:), intent(inout), allocatable | averages, |
type(run_params), intent(in) | setup, | ||
integer, intent(in) | n_steps ) |
Subroutine to compute average occupancies.
At the end of the simulation, divide the stored occupancies by the number of times we stored them, to get the average occupancy of each lattice site.
averages | Array of floats where averages are being stored |
setup | Derived type containing simulation parameters |
n_steps | Number of steps at which the state was stored |
Definition at line 80 of file analytics.f90.
subroutine, public analytics::lattice_shells | ( | type(run_params), intent(in) | setup, |
real(real64), dimension(:), allocatable | shells, | ||
integer(array_int), dimension(:,:,:,:) | configuration ) |
Subroutine to compute lattice shell distances.
Could just calculate these once, but this routine is good for a variety of lattice types.
setup | Derived type containing simulation parameters |
shells | Array where shell distances will be stored |
config | Current atomic configuration |
Definition at line 205 of file analytics.f90.
subroutine, public analytics::print_particle_count | ( | type(run_params) | setup, |
integer(array_int), dimension(:,:,:,:), intent(in) | config, | ||
integer | my_rank ) |
Subroutine to print the number of atoms of each species.
setup | Derived type containing simulation parameters |
config | Current atomic configuration |
Definition at line 135 of file analytics.f90.
|
private |
Implementation of the quicksort algorithm for arrays.
Puts an array of real numbers into size order from smallest to largest. Note that this operates on the input array—if you would like to keep the unsorted array, make a copy of it.
array | Array of real (real64) numbers to sort |
Definition at line 420 of file analytics.f90.
real(real64) function, dimension(setup%n_species,setup%n_species, n_shells), public analytics::radial_densities | ( | type(run_params), intent(in) | setup, |
integer(array_int), dimension(:,:,:,:) | configuration, | ||
integer, intent(in) | n_shells, | ||
real(real64), dimension(:), allocatable | shell_distances ) |
Subroutine to compute radial densities (ASRO parameters)
This routine computes the conditional probabilities of one type of atom neighbouring another type of atom. These are not the Warren-Cowley ASRO parameters, but you can convert to them using a simple rescaling.
setup | Derived type containing simulation parameters |
configuration | Current atomic configuration |
n_shells | Number of shells on which to compute probabilities |
shell_distances | Array of lattice shell distances |
Definition at line 293 of file analytics.f90.
subroutine, public analytics::store_state | ( | real(real64), dimension(:,:,:,:,:), intent(inout), allocatable | averages, |
integer(array_int), dimension(:,:,:,:), intent(in) | config, | ||
type(run_params), intent(in) | setup ) |
Subroutine to add this configuration to the average.
This is needed to compute the average occupancy of each lattice site at the end of a simulation.
averages | Array of floats where averages are being stored |
config | Current atomic configuration |
setup | Derived type containing simulation parameters |
Definition at line 43 of file analytics.f90.
integer function, public analytics::total_particle_count | ( | type(run_params) | setup, |
integer(array_int), dimension(:,:,:,:), intent(in) | config ) |
Function to count the total number of particles in the box.
This function was mainly used for testing during code development, to make sure no particles were dissapearing.
setup | Derived type containing simulation parameters |
config | Current atomic configuration |
Definition at line 103 of file analytics.f90.