2008-03-18 08:24:08 +08:00
|
|
|
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
|
|
:link(ld,Manual.html)
|
|
|
|
:link(lc,Section_commands.html#comm)
|
|
|
|
|
|
|
|
:line
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
compute erotate/sphere command :h3
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
compute ID group-ID erotate/sphere :pre
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
ID, group-ID are documented in "compute"_compute.html command
|
2008-03-19 05:02:30 +08:00
|
|
|
erotate/sphere = style name of this compute command :ul
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
compute 1 all erotate/sphere :pre
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
Define a computation that calculates the rotational kinetic energy of
|
|
|
|
a group of spherical particles.
|
2008-03-18 08:24:08 +08:00
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
The rotational energy is computed as 1/2 I w^2, where I is the moment
|
|
|
|
of inertia for a sphere and w is the particle's angular velocity.
|
|
|
|
|
|
|
|
IMPORTANT NOTE: For "2d models"_dimension.html, particles are treated
|
|
|
|
as spheres, not disks, meaning their moment of inertia will be the
|
|
|
|
same as in 3d.
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
[Output info:]
|
|
|
|
|
|
|
|
The scalar value calculated by this compute is "extensive", meaning it
|
|
|
|
it scales with the number of atoms in the simulation.
|
|
|
|
|
2008-03-19 05:02:30 +08:00
|
|
|
[Restrictions:]
|
|
|
|
|
|
|
|
This compute requires that particles be represented as extended
|
|
|
|
spheres and not point particles. This means they will have an angular
|
|
|
|
velocity and a diameter which is determined either by the
|
|
|
|
"shape"_shape.html command or by each particle being assigned an
|
|
|
|
individual radius, e.g. for "atom_style granular"_atom_style.html.
|
2008-03-18 08:24:08 +08:00
|
|
|
|
|
|
|
[Related commands:] none
|
|
|
|
|
|
|
|
[Default:] none
|