LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

bond_style harmonic command

Syntax:

bond_style harmonic 

Examples:

bond_style harmonic
bond_coeff 5 80.0 1.2 

Description:

The harmonic bond style uses the potential

where r0 is the equilibrium bond distance. Note that the usual 1/2 factor is included in K.

The following coefficients must be defined for each bond type via the bond_coeff command as in the example above, or in the data file or restart files read by the read_data or read_restart commands:

Restrictions:

Bond styles can only be set for atom styles that allow bonds to be defined.

This bond style is part of the "molecular" package. It is only enabled if LAMMPS was built with that package. See the Making LAMMPS section for more info.

Related commands:

bond_coeff, delete_bonds

Default: none