Potential Templates
GMSO ships a library of built-in potential templates stored as JSON files in
gmso/lib/jsons/. Each template defines a named functional form, its
mathematical expression (as a SymPy-compatible string), and the physical
dimensions expected for each parameter.
Templates are loaded via PotentialTemplateLibrary and
are used internally by forcefield parsers and writers to validate that
parameters carry the correct units.
The more common use case will be to use the expressions of these templates in a GMSO .xml file, where the independent parameters for the expression are defined for each unique interaction type.
Non-bonded Potentials
LennardJonesPotential
The classic 12-6 Lennard-Jones pair potential. Widely used for van der Waals interactions in atomistic and united-atom forcefields.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Well depth; controls the strength of the interaction. |
|
length |
Finite distance at which the potential is zero; related to particle size. |
BuckinghamPotential
Exponential-6 (Buckingham) pair potential. Replaces the steep repulsive \(r^{-12}\) wall of Lennard-Jones with a physically motivated exponential repulsion term.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Prefactor for the repulsive exponential term. |
|
1/length |
Exponent controlling the range of repulsion. |
|
energy·length6 |
Prefactor for the attractive dispersion term. |
MiePotential
Generalised Mie pair potential. Lennard-Jones is the special case \(n = 12\), \(m = 6\).
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Well depth. |
|
length |
Length-scale parameter. |
|
dimensionless |
Repulsive exponent. |
|
dimensionless |
Attractive exponent. |
Bond Potentials
HarmonicBondPotential
Standard harmonic (quadratic) bond-stretching potential.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/length2 |
Force constant. |
|
length |
Equilibrium bond length. |
LAMMPSHarmonicBondPotential
LAMMPS convention for the harmonic bond. The factor of ½ is absorbed into
k, so the force constant value is twice the physical spring constant
compared to HarmonicBondPotential.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/length2 |
Force constant (note: equals 2× the physical spring constant). |
|
length |
Equilibrium bond length. |
FixedBondPotential
Rigid constraint that fixes the bond length to exactly r_eq. Expressed
as a Dirac delta to be consistent with the potential template framework.
Parameter |
Dimensions |
Description |
|---|---|---|
|
length |
Fixed (constrained) bond length. |
FENEBondPotential
Finitely Extensible Nonlinear Elastic (FENE) bond. Used in coarse-grained polymer models to prevent bond extension beyond a maximum length.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/length2 |
Spring constant. |
|
length |
Maximum extensible bond length. |
LAMMPSFENEBondPotential
FENE bond with an embedded Weeks-Chandler-Andersen (WCA) repulsion, as implemented in LAMMPS.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/length2 |
FENE spring constant. |
|
length |
Maximum extensible bond length. |
|
energy |
WCA well depth. |
|
length |
WCA length-scale parameter. |
HOOMDFENEWCABondPotential
FENE + WCA bond as implemented in HOOMD-blue. Adds a displacement offset
delta relative to the LAMMPS form.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/length2 |
FENE spring constant. |
|
length |
Maximum extensible bond length. |
|
energy |
WCA well depth. |
|
length |
WCA length-scale parameter. |
|
length |
Position offset applied before evaluating the potential. |
Angle Potentials
HarmonicAnglePotential
Standard harmonic angle-bending potential.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/angle2 |
Bending force constant. |
|
angle |
Equilibrium bond angle. |
LAMMPSHarmonicAnglePotential
LAMMPS convention for the harmonic angle. The factor of ½ is absorbed into
k.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/angle2 |
Force constant (equals 2× the physical bending constant). |
|
angle |
Equilibrium bond angle. |
FixedAnglePotential
Rigid angle constraint.
Parameter |
Dimensions |
Description |
|---|---|---|
|
angle |
Fixed (constrained) bond angle. |
Torsion / Dihedral Potentials
PeriodicTorsionPotential
Single-term periodic (cosine) dihedral. The default torsion form in many AMBER- and CHARMM-derived forcefields.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Torsion barrier height. |
|
dimensionless |
Periodicity (multiplicity) of the dihedral. |
|
angle |
Phase offset. |
HarmonicTorsionPotential
Harmonic dihedral restraint. Penalises deviations from a reference torsion angle.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/angle2 |
Torsion force constant. |
|
angle |
Reference dihedral angle. |
OPLSTorsionPotential
Four-term cosine expansion used in the OPLS forcefield family.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Coefficient for the first cosine term. |
|
energy |
Coefficient for the second cosine term. |
|
energy |
Coefficient for the third cosine term. |
|
energy |
Coefficient for the fourth cosine term. |
FourierTorsionPotential
Five-term Fourier dihedral expansion. Extends the OPLS form with a constant
offset term k0.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Constant offset. |
|
energy |
Coefficient for the first cosine term. |
|
energy |
Coefficient for the second cosine term. |
|
energy |
Coefficient for the third cosine term. |
|
energy |
Coefficient for the fourth cosine term. |
RyckaertBellemansTorsionPotential
Polynomial expansion in \(\cos\phi\), used in the GROMOS and early AMBER forcefields. Related to the Fourier form by a trigonometric identity.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
0th-order coefficient (constant). |
|
energy |
1st-order coefficient. |
|
energy |
2nd-order coefficient. |
|
energy |
3rd-order coefficient. |
|
energy |
4th-order coefficient. |
|
energy |
5th-order coefficient. |
LAMMPSHarmonicDihedralPotential
Single-term periodic dihedral in LAMMPS convention.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Barrier height. |
|
dimensionless |
Phase sign (typically +1 or −1). |
|
dimensionless |
Periodicity (multiplicity). |
HOOMDPeriodicDihedralPotential
Periodic dihedral as implemented in HOOMD-blue. Equivalent to the LAMMPS
form but adds a phase offset phi0.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Barrier height. |
|
dimensionless |
Phase sign (typically +1 or −1). |
|
dimensionless |
Periodicity (multiplicity). |
|
angle |
Phase offset. |
Improper Potentials
HarmonicImproperPotential
Harmonic improper dihedral restraint. Keeps a central atom and its three bonded neighbours coplanar (or at a fixed out-of-plane angle).
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy/angle2 |
Improper force constant. |
|
angle |
Reference out-of-plane angle (0 for planar groups). |
PeriodicImproperPotential
Periodic (cosine) improper dihedral.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Barrier height. |
|
dimensionless |
Periodicity. |
|
angle |
Phase offset. |
Virtual Sites
TIP4PPotential (MSite)
Lennard-Jones interaction centred on the virtual M-site used in 4-point water models such as TIP4P. The M-site itself carries no charge in this template; electrostatics are handled separately.
Parameter |
Dimensions |
Description |
|---|---|---|
|
energy |
Well depth. |
|
length |
Length-scale parameter. |
Type3fdVirtualPosition
Position rule for a type 3fd virtual site: placed along the bisector of two bond vectors, at a fixed distance from the central atom. Used to construct out-of-plane virtual sites in 4-point and 5-point water models.
Parameter |
Dimensions |
Description |
|---|---|---|
|
dimensionless |
Fractional weight along the \(\mathbf{r}_j - \mathbf{r}_i\) vector. |
|
dimensionless |
Distance from \(\mathbf{r}_i\) to the virtual site (in units of the normalised vector length). |
Engine-Specific Potentials
HOOMDDPDForce
Dissipative Particle Dynamics (DPD) conservative force as implemented in HOOMD-blue. The full DPD force also includes dissipative and random terms, which are set at the integrator level and are not encoded here.
Parameter |
Dimensions |
Description |
|---|---|---|
|
force |
Conservative force amplitude. |
|
length |
Cutoff radius; the force is zero for \(r \geq r_{cut}\). |
|
mass/(length·time) |
Friction coefficient for the dissipative term. |