Cutoff

ParallelTemperingMonteCarlo.MachineLearningPotential.Cutoff.cutoff_functionMethod
cutoff_function(r_scaled)
cutoff_function(r_ij,r_cut)
cutoff_function(dist_vec::T,r_cut) where {T<:Array}

Implementation of the type 2 cutoff function. Either accepts scaled radius r_scaled or the interatomiic distance r_ij and the cutoff radius r_cut. Calculation is described in the RuNNer documentation, given as 1/2 (cos(πx) + 1) where x is (r_ij - r_i,c)/(rc - r_i,c). As an inner cutoff is not used by the potentials we are interested in, we have not included a method. A third method is included for creating a matrix or vector to match the distances provided.

source