generate_pairwise_interaction(pair_int_kernel, covalent_map, static_args)
This is a calculator generator for pairwise interaction
Input
pair_int_kernel: function type (dr, m, p1i, p1j, p2i, p2j) -> energy : the vectorized kernel function, dr is the distance, m is the topological scaling factor, p1i, p1j, p2i, p2j are pairwise parameters
covalent_map: Na * Na, int: the covalent_map matrix that marks the topological distances between atoms
static_args: dict: a dictionary that stores all static global parameters (such as lmax, kappa, etc)
Output
pair_int: function type (positions, box, pairs, mScales, p1, p2, ...) -> energy The pair interaction calculator. p1, p2 ... involved atomic parameters, the order should be consistent with the order in kernel
Source code in dmff/admp/pairwise.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
slater_disp_damping_kernel(dr, m, bi, bj, c6i, c6j, c8i, c8j, c10i, c10j)
Slater-ISA type damping for dispersion: f(x) = -e^{-x} * \sum_{k} x^k/k! x = Br - \frac{2(Br)^2 + 3Br}{(Br)^2 + 3Br + 3} see jctc 12 3851
Source code in dmff/admp/pairwise.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
slater_sr_kernel(dr, m, ai, aj, bi, bj)
Slater-ISA type short range terms see jctc 12 3851
Source code in dmff/admp/pairwise.py
159 160 161 162 163 164 165 166 167 168 169 170 171 | |