Configurations

ParallelTemperingMonteCarlo.Configurations.ConfigType
Config(pos::Vector{SVector{3,T}}, bc::BC) where BC <: AbstractBC
Config{N}(pos::Vector{SVector{3,T}}, bc::BC) where BC <: AbstractBC
Config(pos::PositionArray, bc::BC) where BC <: AbstractBC

Generates a configuration of N atomic positions, each position saved as SVector of length 3.

  • Fieldnames:
    • pos: vector of x,y, and z coordinates of every atom
    • bc: boundary condition
source
ParallelTemperingMonteCarlo.Configurations.distance2Method
distance2(a::PositionVector,b::PositionVector) 
distance2(a::PositionVector,b::PositionVector,bc::SphericalBC)
distance2(a::PositionVector,b::PositionVector,bc::CubicBC)
distance2(a::PositionVector,b::PositionVector,bc::RhombicBC)

Method 1&2 - Finds the distance between two positions a and b. Method 3 - Finds the distance between two positions a and the nearest image of b in a cubic box. Method 4 - Finds the distance between two positions a and the nearest image of b in a rhombic box. Minimum image convension in the z-direction is the same as the cubic box. In x and y-direction, first the box is transformed into a rectangular box, then MIC is done, finally the new coordinates are transformed back.

source
ParallelTemperingMonteCarlo.Configurations.get_tanMethod
get_tan(a::PositionVector,b::PositionVector)
get_tan(a::PositionVector,b::PositionVector,bc::SphericalBC)
get_tan(a::PositionVector,b::PositionVector,bc::CubicBC)
get_tan(a::PositionVector,b::PositionVector,bc::RhombicBC)

Method 1&2 : tan of the angle between the line connecting two points a and b, and the z-direction Method 3: tan of the angle between the line connecting two points a and the nearest image of b, and the z-direction in a cubic boundary Method 4: tan of the angle between the line connecting two points a and the nearest image of b, and the z-direction in a rhombic boundary

source