openforcefield.utils.structure.get_energy

openforcefield.utils.structure.get_energy(system, positions)[source]

Return the potential energy.

Parameters:
system : simtk.openmm.System

The system to check

positions : simtk.unit.Quantity of dimension (natoms,3) with units of length

The positions to use

Returns
———
energy