MCStates
ParallelTemperingMonteCarlo.MCStates.MCState — Type
MCState(temp::Number, beta::Number, config::Config{N, BC, T}, dist2_mat::Matrix{Number}, new_dist2_vec::VorS, new_en::Number, en_tot::Number, potentialvariables::AbstractPotentialVariables, ensemble_variables::AbstractEnsembleVariables; max_displ = [0.1, 0.1, 1.0], max_boxlength = max_length(config.bc), count_atom = [0, 0], count_vol = [0, 0], count_exc = [0, 0]) where {T, N, BC}
MCState(temp::Number, beta::Number, config::Config, ensemble::Etype, pot::Ptype; kwargs...)Creates an MC state vector at a given temperature temp containing temperature-dependent information
- Fieldnames:
temp: temperaturebeta: inverse temperatureconfig: actual configuration in Markov chainConfigdist_2mat: matrix of squared distances d_ij between atoms i and j; generated automatically when potentialpotgivennew_dist2_vec: calculates the new r2 between atoms based on a trial movenew_en: new energy value for trial configuraitonen_tot: total energy ofconfig; generated automatically whenpotgivenpotential_variables: mutable struct containing energy-related variables for the current configurationensemble_variables: mutable struct containing ensemble-related variables for the current configuraitonham: vector containing sampled energies - generated in MC runcount_atom: number of accepted atom moves - total and between adjustment of step sizes; key-word argumentcount_vol: number of accepted volume moves - total and between adjustment of step sizes; key-word argumentcount_exc: number of attempted (10%) and accepted exchanges with neighbouring trajectories; key-word argument
ParallelTemperingMonteCarlo.MCStates.MCState — Method
(MCState(temp::Number, beta::Number, config::Config{N, BC, T}, dist2_mat::Matrix{Z}, new_dist2_vec::VorS, new_en::Number, en_tot::Number, potentialvariables::AbstractPotentialVariables, ensemble_variables::AbstractEnsembleVariables; max_displ = [0.1, 0.1, 1.0], max_boxlength = max_length(config.bc), count_atom = [0, 0], count_vol = [0, 0], count_exc = [0, 0]) where {T, N, BC}) where Z <: Number
MCState(temp::Number, beta::Number, config::Config, ensemble::Etype, pot::Ptype; kwargs...)Constructor for the MCState struct.
ParallelTemperingMonteCarlo.MCStates.max_length — Method
max_length(bc::SphericalBC)
max_length(bc::CubicBC)
max_length(bc::RhombicBC)Returns the max box_length allowed when a volume change step is performed. For spherical boundary, it is not used during the MC steps.