diff --git a/doc/angle_style_charmm.html b/doc/angle_charmm.html similarity index 100% rename from doc/angle_style_charmm.html rename to doc/angle_charmm.html diff --git a/doc/angle_style_charmm.txt b/doc/angle_charmm.txt similarity index 100% rename from doc/angle_style_charmm.txt rename to doc/angle_charmm.txt diff --git a/doc/angle_style_class2.html b/doc/angle_class2.html similarity index 100% rename from doc/angle_style_class2.html rename to doc/angle_class2.html diff --git a/doc/angle_style_class2.txt b/doc/angle_class2.txt similarity index 100% rename from doc/angle_style_class2.txt rename to doc/angle_class2.txt diff --git a/doc/angle_style_cosine.html b/doc/angle_cosine.html similarity index 100% rename from doc/angle_style_cosine.html rename to doc/angle_cosine.html diff --git a/doc/angle_style_cosine.txt b/doc/angle_cosine.txt similarity index 100% rename from doc/angle_style_cosine.txt rename to doc/angle_cosine.txt diff --git a/doc/angle_style_cosine_squared.html b/doc/angle_cosine_squared.html similarity index 100% rename from doc/angle_style_cosine_squared.html rename to doc/angle_cosine_squared.html diff --git a/doc/angle_style_cosine_squared.txt b/doc/angle_cosine_squared.txt similarity index 100% rename from doc/angle_style_cosine_squared.txt rename to doc/angle_cosine_squared.txt diff --git a/doc/angle_style_harmonic.html b/doc/angle_harmonic.html similarity index 100% rename from doc/angle_style_harmonic.html rename to doc/angle_harmonic.html diff --git a/doc/angle_style_harmonic.txt b/doc/angle_harmonic.txt similarity index 100% rename from doc/angle_style_harmonic.txt rename to doc/angle_harmonic.txt diff --git a/doc/angle_style_hybrid.html b/doc/angle_hybrid.html similarity index 100% rename from doc/angle_style_hybrid.html rename to doc/angle_hybrid.html diff --git a/doc/angle_style_hybrid.txt b/doc/angle_hybrid.txt similarity index 100% rename from doc/angle_style_hybrid.txt rename to doc/angle_hybrid.txt diff --git a/doc/angle_style_none.html b/doc/angle_none.html similarity index 100% rename from doc/angle_style_none.html rename to doc/angle_none.html diff --git a/doc/angle_style_none.txt b/doc/angle_none.txt similarity index 100% rename from doc/angle_style_none.txt rename to doc/angle_none.txt diff --git a/doc/bond_style_class2.html b/doc/bond_class2.html similarity index 100% rename from doc/bond_style_class2.html rename to doc/bond_class2.html diff --git a/doc/bond_style_class2.txt b/doc/bond_class2.txt similarity index 100% rename from doc/bond_style_class2.txt rename to doc/bond_class2.txt diff --git a/doc/bond_style_fene.html b/doc/bond_fene.html similarity index 100% rename from doc/bond_style_fene.html rename to doc/bond_fene.html diff --git a/doc/bond_style_fene.txt b/doc/bond_fene.txt similarity index 100% rename from doc/bond_style_fene.txt rename to doc/bond_fene.txt diff --git a/doc/bond_style_fene_expand.html b/doc/bond_fene_expand.html similarity index 100% rename from doc/bond_style_fene_expand.html rename to doc/bond_fene_expand.html diff --git a/doc/bond_style_fene_expand.txt b/doc/bond_fene_expand.txt similarity index 100% rename from doc/bond_style_fene_expand.txt rename to doc/bond_fene_expand.txt diff --git a/doc/bond_style_harmonic.html b/doc/bond_harmonic.html similarity index 100% rename from doc/bond_style_harmonic.html rename to doc/bond_harmonic.html diff --git a/doc/bond_style_harmonic.txt b/doc/bond_harmonic.txt similarity index 100% rename from doc/bond_style_harmonic.txt rename to doc/bond_harmonic.txt diff --git a/doc/bond_style_hybrid.html b/doc/bond_hybrid.html similarity index 100% rename from doc/bond_style_hybrid.html rename to doc/bond_hybrid.html diff --git a/doc/bond_style_hybrid.txt b/doc/bond_hybrid.txt similarity index 100% rename from doc/bond_style_hybrid.txt rename to doc/bond_hybrid.txt diff --git a/doc/bond_style_morse.html b/doc/bond_morse.html similarity index 100% rename from doc/bond_style_morse.html rename to doc/bond_morse.html diff --git a/doc/bond_style_morse.txt b/doc/bond_morse.txt similarity index 100% rename from doc/bond_style_morse.txt rename to doc/bond_morse.txt diff --git a/doc/bond_style_none.html b/doc/bond_none.html similarity index 100% rename from doc/bond_style_none.html rename to doc/bond_none.html diff --git a/doc/bond_style_none.txt b/doc/bond_none.txt similarity index 100% rename from doc/bond_style_none.txt rename to doc/bond_none.txt diff --git a/doc/bond_style_nonlinear.html b/doc/bond_nonlinear.html similarity index 100% rename from doc/bond_style_nonlinear.html rename to doc/bond_nonlinear.html diff --git a/doc/bond_style_nonlinear.txt b/doc/bond_nonlinear.txt similarity index 100% rename from doc/bond_style_nonlinear.txt rename to doc/bond_nonlinear.txt diff --git a/doc/bond_style_quartic.html b/doc/bond_quartic.html similarity index 100% rename from doc/bond_style_quartic.html rename to doc/bond_quartic.html diff --git a/doc/bond_style_quartic.txt b/doc/bond_quartic.txt similarity index 100% rename from doc/bond_style_quartic.txt rename to doc/bond_quartic.txt diff --git a/doc/compute.html b/doc/compute.html new file mode 100644 index 0000000000..bc19ff7606 --- /dev/null +++ b/doc/compute.html @@ -0,0 +1,86 @@ + +
LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands +
+ + + + + + +
+ +

compute command +

+

Syntax: +

+
compute ID group-ID style args 
+
+ +

Examples: +

+
compute 1 all temp
+compute newtemp flow temp/partial 1 1 0
+compute 3 all ke/atom 
+
+

Description: +

+

Create a computation that will be performed on a group of atoms. +

+

In LAMMPS, a "compute" is used in several ways. Computes that +calculate one or more values for the entire group of atoms can output +those values via the thermo_style custom command. +Or the values can be referenced in a variable equal +command. Computes that calculate a temperature or pressure are used +by fixes that do thermostatting or barostatting and when atom +velocities are created. Computes that calculate one or more values +for each atom in the group can output those values via the dump +custom command. +

+

LAMMPS creates its own computes for thermodynamic output and dumping +atom snapshots. Likewise fixes that compute temperature or pressure +create their own computes. These are discussed in the documentation +for thermo_style, dump custom, and +specific fix commands. +

+

In all these cases, the default computes can be replaced by computes +defined in the input script, as described by the +thermo_modify and fix modify +commands. Code for new computes can also be added to LAMMPS (see +this section of the manaul) and their +calculations accessed in the various ways described above. +

+

Properties of a compute can be modified via the +compute_modify command. +

+

Compute can be deleted with the uncompute command. +

+

Each compute style has its own doc page which describes its arguments +and what it does. Here is an alphabetic list of compute styles +defined in LAMMPS: +

+ +

Restrictions: none +

+

Related commands: +

+

uncompute, compute_modify +

+

Default: none +

+ diff --git a/doc/compute.txt b/doc/compute.txt new file mode 100644 index 0000000000..1af41aa58e --- /dev/null +++ b/doc/compute.txt @@ -0,0 +1,81 @@ +"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 + +compute command :h3 + +[Syntax:] + +compute ID group-ID style args :pre + +ID = user-assigned name for the computation +group-ID = ID of the group of atoms to perform the computation on +style = one of a list of possible style names (see below) +args = arguments used by a particular style :ul + +[Examples:] + +compute 1 all temp +compute newtemp flow temp/partial 1 1 0 +compute 3 all ke/atom :pre + +[Description:] + +Create a computation that will be performed on a group of atoms. + +In LAMMPS, a "compute" is used in several ways. Computes that +calculate one or more values for the entire group of atoms can output +those values via the "thermo_style custom"_thermo_style.html command. +Or the values can be referenced in a "variable equal"_variable.html +command. Computes that calculate a temperature or pressure are used +by fixes that do thermostatting or barostatting and when atom +velocities are created. Computes that calculate one or more values +for each atom in the group can output those values via the "dump +custom"_dump.html command. + +LAMMPS creates its own computes for thermodynamic output and dumping +atom snapshots. Likewise fixes that compute temperature or pressure +create their own computes. These are discussed in the documentation +for "thermo_style"_thermo_style.html, "dump custom"_dump.html, and +specific "fix"_fix.html commands. + +In all these cases, the default computes can be replaced by computes +defined in the input script, as described by the +"thermo_modify"_thermo_modify.html and "fix modify"_fix_modify.html +commands. Code for new computes can also be added to LAMMPS (see +"this section"_Section_modify.html of the manaul) and their +calculations accessed in the various ways described above. + +Properties of a compute can be modified via the +"compute_modify"_compute_modify.html command. + +Compute can be deleted with the "uncompute"_uncompute.html command. + +Each compute style has its own doc page which describes its arguments +and what it does. Here is an alphabetic list of compute styles +defined in LAMMPS: + +"centro/atom"_compute_centro_atom.html - centro-symmetry parameter for each atom +"epair/atom"_compute_epair_atom.html - pairwise energy for each atom +"etotal/atom"_compute_etotal_atom.html - total energy (ke + epair) for each atom +"ke/atom"_compute_ke_atom.html - kinetic energy for each atom +"pressure"_compute_pressure.html - total pressure and pressure tensor +"rotate/dipole"_compute_rotate_dipole.html - rotational energy of dipolar atoms +"rotate/gran"_compute_rotate_gran.html - rotational energy of granular atoms +"stress/atom"_compute_stress_atom.html - stress tensor for each atom +"temp"_compute_temp.html - temperature of group of atoms +"temp/partial"_compute_temp_partial.html - temperature excluding one or more dimensions of velocity +"temp/ramp"_compute_temp_ramp.html - temperature after subtracting a ramped velocity component +"temp/region"_compute_temp_region.html - temperature of a region of atoms :ul + +[Restrictions:] none + +[Related commands:] + +"uncompute"_uncompute.html, "compute_modify"_compute_modify.html + +[Default:] none diff --git a/doc/compute_centro_atom.html b/doc/compute_centro_atom.html new file mode 100644 index 0000000000..95444f9184 --- /dev/null +++ b/doc/compute_centro_atom.html @@ -0,0 +1,61 @@ + +
LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands +
+ + + + + + +
+ +

compute ke/atom command +

+

Syntax: +

+
compute ID group-ID ke/atom 
+
+ +

Examples: +

+
compute 1 all ke/atom 
+
+

Description: +

+

Define a computation that calculates the centro-symmetry parameter for +each atom in a group. This can be output via the dump +custom command. +

+

This parameter is computed using the following formula from +(Kelchner) +

+
+
+

where the 12 nearest neighbors are found and Ri and Ri+6 are the +vectors from the central atom to the opposite pair of nearest +neighbors. In solid state systems this is a useful measure of the +local lattice disorder around an atom and can be used to characterize +whether the atom is part of a perfect lattice, a local defect (e.g. a +dislocation or stacking fault), or at a surface. +

+

The neighbor list needed to compute this quantity is constructed each +time the calculation is performed (i.e. each time a snapshot of atoms +is dumped). Thus it can be inefficient to compute/dump this quantity +too frequently or to have multiple compute/dump commands, each of a +centro/atom style. +

+

Restrictions: none +

+

Related commands: none +

+

Default: none +

+
+ + + +

(Kelchner) Kelchner, Plimpton, Hamilton, Phys Rev B, 58, 11085 (1998). +

+ diff --git a/doc/compute_centro_atom.txt b/doc/compute_centro_atom.txt new file mode 100644 index 0000000000..39bab91c4d --- /dev/null +++ b/doc/compute_centro_atom.txt @@ -0,0 +1,55 @@ +"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 + +compute ke/atom command :h3 + +[Syntax:] + +compute ID group-ID ke/atom :pre + +ID, group-ID are documented in "compute"_compute.html command +ke/atom = style name of this compute command :ul + +[Examples:] + +compute 1 all ke/atom :pre + +[Description:] + +Define a computation that calculates the centro-symmetry parameter for +each atom in a group. This can be output via the "dump +custom"_dump.html command. + +This parameter is computed using the following formula from +"(Kelchner)"_#Kelchner + +:c,image(Eqs/centro_symmetry.jpg) + +where the 12 nearest neighbors are found and Ri and Ri+6 are the +vectors from the central atom to the opposite pair of nearest +neighbors. In solid state systems this is a useful measure of the +local lattice disorder around an atom and can be used to characterize +whether the atom is part of a perfect lattice, a local defect (e.g. a +dislocation or stacking fault), or at a surface. + +The neighbor list needed to compute this quantity is constructed each +time the calculation is performed (i.e. each time a snapshot of atoms +is dumped). Thus it can be inefficient to compute/dump this quantity +too frequently or to have multiple compute/dump commands, each of a +{centro/atom} style. + +[Restrictions:] none + +[Related commands:] none + +[Default:] none + +:line + +:link(Kelchner) +[(Kelchner)] Kelchner, Plimpton, Hamilton, Phys Rev B, 58, 11085 (1998). diff --git a/doc/compute_epair_atom.html b/doc/compute_epair_atom.html new file mode 100644 index 0000000000..7197554ef3 --- /dev/null +++ b/doc/compute_epair_atom.html @@ -0,0 +1,52 @@ + +
LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands +
+ + + + + + +
+ +

compute epair/atom command +

+

Syntax: +

+
compute ID group-ID epair/atom 
+
+ +

Examples: +

+
compute 1 all epair/atom 
+
+

Description: +

+

Define a computation that computes the per-atom pairwise energy for +each atom in a group. This can be output via the dump +custom command. +

+

The pairwise energy for each atom is computed by looping over its +neighbors and computing the energy associated with the defined +pair_style command for each IJ pair (divided by 2). +Thus the sum of per-atom energy for all atoms should give the total +pairwise energy of the system. +

+

For force fields that include a contribution to the pairwise energy +that is computed as part of dihedral terms (i.e. 1-4 interactions), +this contribution is not included in the per-atom pairwise energy. +

+

Computation of per-atom pairwise energy requires a loop thru the +neighbor list and inter-processor communication, so it can be +inefficient to compute/dump this quantity too frequently or to have +multiple compute/dump commands, each of a epair/atom style. +

+

Restrictions: none +

+

Related commands: none +

+

Default: none +

+ diff --git a/doc/compute_epair_atom.txt b/doc/compute_epair_atom.txt new file mode 100644 index 0000000000..f970e2c703 --- /dev/null +++ b/doc/compute_epair_atom.txt @@ -0,0 +1,47 @@ +"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 + +compute epair/atom command :h3 + +[Syntax:] + +compute ID group-ID epair/atom :pre + +ID, group-ID are documented in "compute"_compute.html command +epair/atom = style name of this compute command :ul + +[Examples:] + +compute 1 all epair/atom :pre + +[Description:] + +Define a computation that computes the per-atom pairwise energy for +each atom in a group. This can be output via the "dump +custom"_dump.html command. + +The pairwise energy for each atom is computed by looping over its +neighbors and computing the energy associated with the defined +"pair_style"_pair_style.html command for each IJ pair (divided by 2). +Thus the sum of per-atom energy for all atoms should give the total +pairwise energy of the system. + +For force fields that include a contribution to the pairwise energy +that is computed as part of dihedral terms (i.e. 1-4 interactions), +this contribution is not included in the per-atom pairwise energy. + +Computation of per-atom pairwise energy requires a loop thru the +neighbor list and inter-processor communication, so it can be +inefficient to compute/dump this quantity too frequently or to have +multiple compute/dump commands, each of a {epair/atom} style. + +[Restrictions:] none + +[Related commands:] none + +[Default:] none diff --git a/doc/compute_etotal_atom.html b/doc/compute_etotal_atom.html new file mode 100644 index 0000000000..d150d212a5 --- /dev/null +++ b/doc/compute_etotal_atom.html @@ -0,0 +1,50 @@ + +
LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands +
+ + + + + + +
+ +

compute etotal/atom command +

+

Syntax: +

+
compute ID group-ID etotal/atom compute-ID 
+
+ +

Examples: +

+
compute 1 all etotal/atom atomEng 
+
+

Description: +

+

Define a computation that computes the total energy (kinetic + +pairwise) for each atom in a group. This can be output via the dump +custom command. +

+

The kinetic energy for each atom is computed the same way as in the +compute ke/atom command, namely as 1/2 m v^2. +

+

The pairwise energy is not calculated by this compute, but rather by +the epair/atom compute specified as the last +argument of the command. +

+

Note that the total energy per atom as defined here does not include +contributions due to bonds, angles, etc that the atom is part of. +

+

Restrictions: none +

+

Related commands: +

+

compute epair/atom +

+

Default: none +

+ diff --git a/doc/compute_etotal_atom.txt b/doc/compute_etotal_atom.txt new file mode 100644 index 0000000000..9fdcd6c678 --- /dev/null +++ b/doc/compute_etotal_atom.txt @@ -0,0 +1,45 @@ +"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 + +compute etotal/atom command :h3 + +[Syntax:] + +compute ID group-ID etotal/atom compute-ID :pre + +ID, group-ID are documented in "compute"_compute.html command +etotal/atom = style name of this compute command +compute-ID = ID of compute that calculates per-atom pairwise energy :ul + +[Examples:] + +compute 1 all etotal/atom atomEng :pre + +[Description:] + +Define a computation that computes the total energy (kinetic + +pairwise) for each atom in a group. This can be output via the "dump +custom"_dump.html command. + +The kinetic energy for each atom is computed the same way as in the +"compute ke/atom"_compute_ke_atom.html command, namely as 1/2 m v^2. + +The pairwise energy is not calculated by this compute, but rather by +the "epair/atom compute"_compute_epair_atom.html specified as the last +argument of the command. + +Note that the total energy per atom as defined here does not include +contributions due to bonds, angles, etc that the atom is part of. + +[Restrictions:] none + +[Related commands:] + +"compute epair/atom"_compute_epair_atom.html + +[Default:] none diff --git a/doc/compute_ke_atom.html b/doc/compute_ke_atom.html new file mode 100644 index 0000000000..79cca562d5 --- /dev/null +++ b/doc/compute_ke_atom.html @@ -0,0 +1,42 @@ + +
LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands +
+ + + + + + +
+ +

compute ke/atom command +

+

Syntax: +

+
compute ID group-ID ke/atom 
+
+ +

Examples: +

+
compute 1 all ke/atom 
+
+

Description: +

+

Define a computation that calculates the per-atom kinetic energy for +each atom in a group. This can be output via the dump +custom command. +

+

The kinetic energy is simply 1/2 m v^2, where m is the mass and v is +the velocity of each atom. +

+

Restrictions: none +

+

Related commands: +

+

dump custom +

+

Default: none +

+ diff --git a/doc/compute_ke_atom.txt b/doc/compute_ke_atom.txt new file mode 100644 index 0000000000..04dc1fc493 --- /dev/null +++ b/doc/compute_ke_atom.txt @@ -0,0 +1,37 @@ +"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 + +compute ke/atom command :h3 + +[Syntax:] + +compute ID group-ID ke/atom :pre + +ID, group-ID are documented in "compute"_compute.html command +ke/atom = style name of this compute command :ul + +[Examples:] + +compute 1 all ke/atom :pre + +[Description:] + +Define a computation that calculates the per-atom kinetic energy for +each atom in a group. This can be output via the "dump +custom"_dump.html command. + +The kinetic energy is simply 1/2 m v^2, where m is the mass and v is +the velocity of each atom. + +[Restrictions:] none + +[Related commands:] + +"dump custom"_dump.html + +[Default:] none diff --git a/doc/temp_modify.html b/doc/compute_modify.html similarity index 54% rename from doc/temp_modify.html rename to doc/compute_modify.html index 02f1a75ce2..176b74e1fb 100644 --- a/doc/temp_modify.html +++ b/doc/compute_modify.html @@ -9,13 +9,13 @@
-

temp_modify command +

compute_modify command

Syntax:

-
temp_modify temp-ID keyword value ... 
+
compute_modify compute-ID keyword value ... 
 
-