valence
#
Valence potential energy functions.
Modules:
-
smee
–Differentiably evaluate energies of molecules using SMIRNOFF force fields
Functions:
-
compute_harmonic_bond_energy
–Compute the potential energy [kcal / mol] of a set of bonds for a given
-
compute_harmonic_angle_energy
–Compute the potential energy [kcal / mol] of a set of valence angles for a given
-
compute_cosine_proper_torsion_energy
–Compute the potential energy [kcal / mol] of a set of proper torsions
-
compute_cosine_improper_torsion_energy
–Compute the potential energy [kcal / mol] of a set of improper torsions
compute_harmonic_bond_energy
#
compute_harmonic_bond_energy(
system: TensorSystem,
potential: TensorPotential,
conformer: Tensor,
) -> Tensor
Compute the potential energy [kcal / mol] of a set of bonds for a given
conformer using a harmonic potential of the form 1/2 * k * (r - length) ** 2
Parameters:
-
system
(TensorSystem
) –The system to compute the energy for.
-
potential
(TensorPotential
) –The potential energy function to evaluate.
-
conformer
(Tensor
) –The conformer [Å] to evaluate the potential at with
shape=(n_confs, n_particles, 3)
orshape=(n_particles, 3)
.
Returns:
-
Tensor
–The computed potential energy [kcal / mol].
Source code in smee/potentials/valence.py
compute_harmonic_angle_energy
#
compute_harmonic_angle_energy(
system: TensorSystem,
potential: TensorPotential,
conformer: Tensor,
) -> Tensor
Compute the potential energy [kcal / mol] of a set of valence angles for a given
conformer using a harmonic potential of the form 1/2 * k * (theta - angle) ** 2
Parameters:
-
system
(TensorSystem
) –The system to compute the energy for.
-
potential
(TensorPotential
) –The potential energy function to evaluate.
-
conformer
(Tensor
) –The conformer [Å] to evaluate the potential at with
shape=(n_confs, n_particles, 3)
orshape=(n_particles, 3)
.
Returns:
-
Tensor
–The computed potential energy [kcal / mol].
Source code in smee/potentials/valence.py
compute_cosine_proper_torsion_energy
#
compute_cosine_proper_torsion_energy(
system: TensorSystem,
potential: TensorPotential,
conformer: Tensor,
) -> Tensor
Compute the potential energy [kcal / mol] of a set of proper torsions for a given conformer using a cosine potential of the form:
k*(1+cos(periodicity*theta-phase))
Parameters:
-
system
(TensorSystem
) –The system to compute the energy for.
-
potential
(TensorPotential
) –The potential energy function to evaluate.
-
conformer
(Tensor
) –The conformer [Å] to evaluate the potential at with
shape=(n_confs, n_particles, 3)
orshape=(n_particles, 3)
.
Returns:
-
Tensor
–The computed potential energy [kcal / mol].
Source code in smee/potentials/valence.py
compute_cosine_improper_torsion_energy
#
compute_cosine_improper_torsion_energy(
system: TensorSystem,
potential: TensorPotential,
conformer: Tensor,
) -> Tensor
Compute the potential energy [kcal / mol] of a set of improper torsions for a given conformer using a cosine potential of the form:
k*(1+cos(periodicity*theta-phase))
Parameters:
-
system
(TensorSystem
) –The system to compute the energy for.
-
potential
(TensorPotential
) –The potential energy function to evaluate.
-
conformer
(Tensor
) –The conformer [Å] to evaluate the potential at with
shape=(n_confs, n_particles, 3)
orshape=(n_particles, 3)
.
Returns:
-
Tensor
–The computed potential energy [kcal / mol].