xnn.common.deploy.openmm_force.create_torch_force#

xnn.common.deploy.openmm_force.create_torch_force(model, topology, atoms=None, force_group=0, total_charge=0.0, spin_multiplicity=1.0, cutoff=None, dtype=None)[source]#

An openmm-torch TorchForce evaluating model on the atoms of an OpenMM topology.

Parameters:
Returns:

The force, to add to an openmm.System.

Return type:

openmmtorch.TorchForce