valence
#
Convert SMIRNOFF valence parameters into tensors.
Functions:
-
convert_valence_handlers
–Convert a list of SMIRNOFF valence handlers into a tensor potential and
convert_valence_handlers
#
convert_valence_handlers(
handlers: list[SMIRNOFFCollection],
handler_type: str,
parameter_cols: tuple[str, ...],
) -> tuple[TensorPotential, list[ValenceParameterMap]]
Convert a list of SMIRNOFF valence handlers into a tensor potential and associated parameter maps.
Notes
This function assumes that all parameters come from the same force field
Parameters:
-
handlers
(list[SMIRNOFFCollection]
) –The list of SMIRNOFF valence handlers to convert.
-
handler_type
(str
) –The type of valence handler being converted.
-
parameter_cols
(tuple[str, ...]
) –The ordering of the parameter array columns.
Returns:
-
tuple[TensorPotential, list[ValenceParameterMap]]
–The potential containing tensors of the parameter values, and a list of parameter maps which map the parameters to the interactions they apply to.