compute stress/cylinder command
compute stress/spherical command
Syntax
compute ID group-ID style args
ID, group-ID are documented in compute command
style = stress/spherical or stress/cylinder
args = argument specific to the compute style
stress/cylinder args = zlo zh Rmax bin_width keyword zlo = minimum z-boundary for cylinder zhi = maximum z-boundary for cylinder Rmax = maximum radius to perform calculation to bin_width = width of radial bins to use for calculation keyword = ke (zero or one can be specified) ke = yes or no stress/spherical x0, y0, z0 = origin of the spherical coordinate system bin_width = width of spherical shells Rmax = maximum radius of spherical shells
Examples
compute 1 all stress/cylinder -10.0 10.0 15.0 0.25
compute 1 all stress/cylinder -10.0 10.0 15.0 0.25 ke no
compute 1 all stress/spherical 0 0 0 0.1 10
Description
Compute stress/cylinder, and compute
stress/spherical define computations that calculate profiles of the
diagonal components of the local stress tensor in the specified
coordinate system. The stress tensor is split into a kinetic
contribution
The compute stress/cylinder computes the stress profile along the radial direction in cylindrical coordinates, as described in (Addington). The compute stress/spherical computes the stress profile along the radial direction in spherical coordinates, as described in (Ikeshoji).
Output info
The default output columns for stress/cylinder are the radius to the
center of the cylindrical shell, number density,
The output columns for stress/spherical are the position of the center
of the spherical shell, the number density,
This array can be output with fix ave/time,
compute p all stress/spherical 0 0 0 0.1 10
fix 2 all ave/time 100 1 100 c_p[*] file dump_p.out mode vector
The values calculated by this compute are “intensive”. The stress values will be in pressure units. The number density values are in inverse volume units.
NOTE 1: The local stress does not include any Lennard-Jones tail corrections to the stress added by the pair_modify tail yes command, since those are contributions to the global system pressure.
Restrictions
These computes calculate the stress tensor contributions for pair styles
only (i.e., no bond, angle, dihedral, etc. contributions, and in the
presence of bonded interactions, the result may be incorrect due to
exclusions for special bonds excluding pairs of atoms
completely). It requires pairwise force calculations not available for most
many-body pair styles. Note that
These computes are part of the EXTRA-COMPUTE package. They are only enabled if LAMMPS was built with that package. See the Build package doc page for more info.
Default
The keyword default for ke in style stress/cylinder is yes.
(Ikeshoji) Ikeshoji, Hafskjold, Furuholt, Mol Sim, 29, 101-109, (2003).
(Addington) Addington, Long, Gubbins, J Chem Phys, 149, 084109 (2018).