xnn.ffnn.models.ffield.resolve_torsion#
- xnn.ffnn.models.ffield.resolve_torsion(p, torp, tor, key)[source]#
Look up a torsion parameter, resolving reversal and wildcards.
The lookup order is that of ReaxFF codes (LAMMPS
pair_style reaxff): the exact type, its reversall-k-j-i, then theX-j-k-XandX-k-j-Xwildcards. As a last resort the central-bond swapsi-k-j-l/l-j-k-iare tried, so a type that a library spells only that way still finds parameters; they never shadow an exact, reversed or wildcard match. Unmatched types get0.0.