jax_md_mod.custom_energy.periodic_dihedral#
- periodic_dihedral(displacement_or_metric, dihedral_idxs, phase_angle, force_constant, multiplicity)[source]#
Peridoc dihedral angle interaction.
https://manual.gromacs.org/documentation/2019/reference-manual/functions/bonded-interactions.html
- Parameters:
displacement_or_metric (
Union[Callable[[Array,Array],Array],Callable[[Array,Array],float]]) – Displacement functiondihedral_idxs (
Array) – Indices of particles (i, j, k, l) building the dihedralsphase_angle (
Array) – Dihedral phase angle in degrees.force_constant (
Array) – Force constantmultiplicity ([<class 'float'>, <class 'jax.Array'>]) – Dihedral multiplicity
- Returns:
Peridoc dihedral potential energy function.