2008-03-19 23:39:14 +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 23:50:26 +08:00
|
|
|
compute ke command :h3
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
[Syntax:]
|
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
compute ID group-ID ke :pre
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
ID, group-ID are documented in "compute"_compute.html command
|
2008-03-19 23:50:26 +08:00
|
|
|
ke = style name of this compute command :ul
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
[Examples:]
|
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
compute 1 all ke :pre
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
[Description:]
|
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
Define a computation that calculates the translational kinetic energy
|
|
|
|
of a group of particles.
|
|
|
|
|
|
|
|
The kinetic energy or each particle is computed as 1/2 m v^2, where m
|
|
|
|
and v are the mass and velocity of the particle.
|
|
|
|
|
|
|
|
There is a subtle difference between the quantity calculated by this
|
|
|
|
compute and the kinetic energy calculated by the {ke} or {etotal}
|
|
|
|
keyword used in thermodynamic output, as specified by the
|
|
|
|
"thermo_style"_thermo_style.html command. For this compute, kinetic
|
|
|
|
energy is "translational" kinetic energy, calculated by the simple
|
|
|
|
formula above. For thermodynamic output, the {ke} keyword infers
|
|
|
|
kinetic energy from the temperature of the system with 1/2 Kb T of
|
|
|
|
energy for each degree of freedom. For the default temperature
|
|
|
|
computation via the "compute temp"_compute_temp.html command, these
|
|
|
|
are the same. But different computes that calculate temperature can
|
|
|
|
subtract out different non-thermal components of velocity and/or
|
|
|
|
include different degrees of freedom (translational, rotational, etc).
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
[Output info:]
|
|
|
|
|
2009-12-04 07:58:11 +08:00
|
|
|
This compute calculates a global scalar (the KE). This value can be
|
|
|
|
used by any command that uses a global scalar value from a compute as
|
2011-12-14 04:43:36 +08:00
|
|
|
input. See "Section_howto 15"_Section_howto.html#howto_15 for an
|
|
|
|
overview of LAMMPS output options.
|
2009-12-04 07:58:11 +08:00
|
|
|
|
2010-03-03 05:51:16 +08:00
|
|
|
The scalar value calculated by this compute is "extensive". The
|
|
|
|
scalar value will be in energy "units"_units.html.
|
2010-01-24 07:20:05 +08:00
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
[Restrictions:] none
|
2008-03-19 23:39:14 +08:00
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
[Related commands:]
|
2008-03-19 23:39:14 +08:00
|
|
|
|
2008-03-19 23:50:26 +08:00
|
|
|
"compute erotate/sphere"_compute_erotate_sphere.html
|
2008-03-19 23:39:14 +08:00
|
|
|
|
|
|
|
[Default:] none
|