xnn.ffnn.models.ffield.match_torsion#
- xnn.ffnn.models.ffield.match_torsion(torp, tor, central_swaps=True)[source]#
The library torsion type that parameterizes a concrete torsion.
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. Withcentral_swapsthe central-bond swapsi-k-j-l/l-j-k-iare tried as a last resort, so a type that a library spells only that way still finds parameters; they never shadow an exact, reversed or wildcard match. LAMMPS does not try them.- Parameters:
- Returns:
The matching library type, or
Nonewhen the torsion is not parameterized.- Return type:
str or None