From d8e3722af2e38fd0989087cfede84bf34b711698 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 9 Feb 2007 21:40:32 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@283 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- ...le_style_charmm.html => angle_charmm.html} | 0 ...ngle_style_charmm.txt => angle_charmm.txt} | 0 ...le_style_class2.html => angle_class2.html} | 0 ...ngle_style_class2.txt => angle_class2.txt} | 0 ...le_style_cosine.html => angle_cosine.html} | 0 ...ngle_style_cosine.txt => angle_cosine.txt} | 0 ...squared.html => angle_cosine_squared.html} | 0 ...e_squared.txt => angle_cosine_squared.txt} | 0 ...tyle_harmonic.html => angle_harmonic.html} | 0 ..._style_harmonic.txt => angle_harmonic.txt} | 0 ...le_style_hybrid.html => angle_hybrid.html} | 0 ...ngle_style_hybrid.txt => angle_hybrid.txt} | 0 ...{angle_style_none.html => angle_none.html} | 0 doc/{angle_style_none.txt => angle_none.txt} | 0 ...ond_style_class2.html => bond_class2.html} | 0 ...{bond_style_class2.txt => bond_class2.txt} | 0 doc/{bond_style_fene.html => bond_fene.html} | 0 doc/{bond_style_fene.txt => bond_fene.txt} | 0 ...fene_expand.html => bond_fene_expand.html} | 0 ...e_fene_expand.txt => bond_fene_expand.txt} | 0 ...style_harmonic.html => bond_harmonic.html} | 0 ...d_style_harmonic.txt => bond_harmonic.txt} | 0 ...ond_style_hybrid.html => bond_hybrid.html} | 0 ...{bond_style_hybrid.txt => bond_hybrid.txt} | 0 ...{bond_style_morse.html => bond_morse.html} | 0 doc/{bond_style_morse.txt => bond_morse.txt} | 0 doc/{bond_style_none.html => bond_none.html} | 0 doc/{bond_style_none.txt => bond_none.txt} | 0 ...yle_nonlinear.html => bond_nonlinear.html} | 0 ...style_nonlinear.txt => bond_nonlinear.txt} | 0 ...d_style_quartic.html => bond_quartic.html} | 0 ...ond_style_quartic.txt => bond_quartic.txt} | 0 doc/compute.html | 86 +++++++++++ doc/compute.txt | 81 +++++++++++ doc/compute_centro_atom.html | 61 ++++++++ doc/compute_centro_atom.txt | 55 +++++++ doc/compute_epair_atom.html | 52 +++++++ doc/compute_epair_atom.txt | 47 ++++++ doc/compute_etotal_atom.html | 50 +++++++ doc/compute_etotal_atom.txt | 45 ++++++ doc/compute_ke_atom.html | 42 ++++++ doc/compute_ke_atom.txt | 37 +++++ doc/{temp_modify.html => compute_modify.html} | 32 ++--- doc/{temp_modify.txt => compute_modify.txt} | 32 ++--- doc/compute_pressure.html | 70 +++++++++ doc/compute_pressure.txt | 65 +++++++++ doc/compute_rotate_dipole.html | 40 ++++++ doc/compute_rotate_dipole.txt | 35 +++++ doc/compute_rotate_gran.html | 40 ++++++ doc/compute_rotate_gran.txt | 35 +++++ doc/compute_stress_atom.html | 64 +++++++++ doc/compute_stress_atom.txt | 59 ++++++++ doc/compute_temp.html | 64 +++++++++ doc/compute_temp.txt | 59 ++++++++ doc/compute_temp_partial.html | 68 +++++++++ doc/compute_temp_partial.txt | 63 ++++++++ doc/compute_temp_ramp.html | 82 +++++++++++ doc/compute_temp_ramp.txt | 77 ++++++++++ doc/compute_temp_region.html | 76 ++++++++++ doc/compute_temp_region.txt | 71 +++++++++ ...style_charmm.html => dihedral_charmm.html} | 0 ...l_style_charmm.txt => dihedral_charmm.txt} | 0 ...style_class2.html => dihedral_class2.html} | 0 ...l_style_class2.txt => dihedral_class2.txt} | 0 ...e_harmonic.html => dihedral_harmonic.html} | 0 ...yle_harmonic.txt => dihedral_harmonic.txt} | 0 ...l_style_helix.html => dihedral_helix.html} | 0 ...ral_style_helix.txt => dihedral_helix.txt} | 0 ...style_hybrid.html => dihedral_hybrid.html} | 0 ...l_style_hybrid.txt => dihedral_hybrid.txt} | 0 ...onic.html => dihedral_multi_harmonic.html} | 0 ...rmonic.txt => dihedral_multi_harmonic.txt} | 0 ...ral_style_none.html => dihedral_none.html} | 0 ...edral_style_none.txt => dihedral_none.txt} | 0 ...ral_style_opls.html => dihedral_opls.html} | 0 ...edral_style_opls.txt => dihedral_opls.txt} | 0 ...style_class2.html => improper_class2.html} | 0 ...r_style_class2.txt => improper_class2.txt} | 0 ...per_style_cvff.html => improper_cvff.html} | 0 ...roper_style_cvff.txt => improper_cvff.txt} | 0 ...e_harmonic.html => improper_harmonic.html} | 0 ...yle_harmonic.txt => improper_harmonic.txt} | 0 ...style_hybrid.html => improper_hybrid.html} | 0 ...r_style_hybrid.txt => improper_hybrid.txt} | 0 ...per_style_none.html => improper_none.html} | 0 ...roper_style_none.txt => improper_none.txt} | 0 doc/{pair_style_buck.html => pair_buck.html} | 2 +- doc/{pair_style_buck.txt => pair_buck.txt} | 2 +- ...air_style_charmm.html => pair_charmm.html} | 18 ++- ...{pair_style_charmm.txt => pair_charmm.txt} | 17 ++- ...air_style_class2.html => pair_class2.html} | 2 +- ...{pair_style_class2.txt => pair_class2.txt} | 2 +- doc/{pair_style_dpd.html => pair_dpd.html} | 0 doc/{pair_style_dpd.txt => pair_dpd.txt} | 0 doc/{pair_style_eam.html => pair_eam.html} | 26 +++- doc/{pair_style_eam.txt => pair_eam.txt} | 26 +++- doc/{pair_style_gran.html => pair_gran.html} | 0 doc/{pair_style_gran.txt => pair_gran.txt} | 0 ...air_style_hybrid.html => pair_hybrid.html} | 0 ...{pair_style_hybrid.txt => pair_hybrid.txt} | 0 doc/{pair_style_lj.html => pair_lj.html} | 31 +++- doc/{pair_style_lj.txt => pair_lj.txt} | 34 +++-- ...yle_lj_expand.html => pair_lj_expand.html} | 0 ...style_lj_expand.txt => pair_lj_expand.txt} | 0 ...yle_lj_smooth.html => pair_lj_smooth.html} | 0 ...style_lj_smooth.txt => pair_lj_smooth.txt} | 0 doc/{pair_style_meam.html => pair_meam.html} | 10 +- doc/{pair_style_meam.txt => pair_meam.txt} | 12 +- ...{pair_style_morse.html => pair_morse.html} | 12 ++ doc/{pair_style_morse.txt => pair_morse.txt} | 11 ++ doc/{pair_style_none.html => pair_none.html} | 0 doc/{pair_style_none.txt => pair_none.txt} | 0 doc/{pair_style_soft.html => pair_soft.html} | 0 doc/{pair_style_soft.txt => pair_soft.txt} | 0 doc/pair_style_dipole.html | 66 --------- doc/pair_style_dipole.txt | 61 -------- doc/{pair_style_sw.html => pair_sw.html} | 0 doc/{pair_style_sw.txt => pair_sw.txt} | 0 ...{pair_style_table.html => pair_table.html} | 0 doc/{pair_style_table.txt => pair_table.txt} | 0 ...r_style_tersoff.html => pair_tersoff.html} | 0 ...air_style_tersoff.txt => pair_tersoff.txt} | 0 ...air_style_yukawa.html => pair_yukawa.html} | 0 ...{pair_style_yukawa.txt => pair_yukawa.txt} | 0 doc/temperature.html | 136 ------------------ doc/temperature.txt | 124 ---------------- doc/uncompute.html | 39 +++++ doc/uncompute.txt | 34 +++++ 128 files changed, 1793 insertions(+), 460 deletions(-) rename doc/{angle_style_charmm.html => angle_charmm.html} (100%) rename doc/{angle_style_charmm.txt => angle_charmm.txt} (100%) rename doc/{angle_style_class2.html => angle_class2.html} (100%) rename doc/{angle_style_class2.txt => angle_class2.txt} (100%) rename doc/{angle_style_cosine.html => angle_cosine.html} (100%) rename doc/{angle_style_cosine.txt => angle_cosine.txt} (100%) rename doc/{angle_style_cosine_squared.html => angle_cosine_squared.html} (100%) rename doc/{angle_style_cosine_squared.txt => angle_cosine_squared.txt} (100%) rename doc/{angle_style_harmonic.html => angle_harmonic.html} (100%) rename doc/{angle_style_harmonic.txt => angle_harmonic.txt} (100%) rename doc/{angle_style_hybrid.html => angle_hybrid.html} (100%) rename doc/{angle_style_hybrid.txt => angle_hybrid.txt} (100%) rename doc/{angle_style_none.html => angle_none.html} (100%) rename doc/{angle_style_none.txt => angle_none.txt} (100%) rename doc/{bond_style_class2.html => bond_class2.html} (100%) rename doc/{bond_style_class2.txt => bond_class2.txt} (100%) rename doc/{bond_style_fene.html => bond_fene.html} (100%) rename doc/{bond_style_fene.txt => bond_fene.txt} (100%) rename doc/{bond_style_fene_expand.html => bond_fene_expand.html} (100%) rename doc/{bond_style_fene_expand.txt => bond_fene_expand.txt} (100%) rename doc/{bond_style_harmonic.html => bond_harmonic.html} (100%) rename doc/{bond_style_harmonic.txt => bond_harmonic.txt} (100%) rename doc/{bond_style_hybrid.html => bond_hybrid.html} (100%) rename doc/{bond_style_hybrid.txt => bond_hybrid.txt} (100%) rename doc/{bond_style_morse.html => bond_morse.html} (100%) rename doc/{bond_style_morse.txt => bond_morse.txt} (100%) rename doc/{bond_style_none.html => bond_none.html} (100%) rename doc/{bond_style_none.txt => bond_none.txt} (100%) rename doc/{bond_style_nonlinear.html => bond_nonlinear.html} (100%) rename doc/{bond_style_nonlinear.txt => bond_nonlinear.txt} (100%) rename doc/{bond_style_quartic.html => bond_quartic.html} (100%) rename doc/{bond_style_quartic.txt => bond_quartic.txt} (100%) create mode 100644 doc/compute.html create mode 100644 doc/compute.txt create mode 100644 doc/compute_centro_atom.html create mode 100644 doc/compute_centro_atom.txt create mode 100644 doc/compute_epair_atom.html create mode 100644 doc/compute_epair_atom.txt create mode 100644 doc/compute_etotal_atom.html create mode 100644 doc/compute_etotal_atom.txt create mode 100644 doc/compute_ke_atom.html create mode 100644 doc/compute_ke_atom.txt rename doc/{temp_modify.html => compute_modify.html} (54%) rename doc/{temp_modify.txt => compute_modify.txt} (52%) create mode 100644 doc/compute_pressure.html create mode 100644 doc/compute_pressure.txt create mode 100644 doc/compute_rotate_dipole.html create mode 100644 doc/compute_rotate_dipole.txt create mode 100644 doc/compute_rotate_gran.html create mode 100644 doc/compute_rotate_gran.txt create mode 100644 doc/compute_stress_atom.html create mode 100644 doc/compute_stress_atom.txt create mode 100644 doc/compute_temp.html create mode 100644 doc/compute_temp.txt create mode 100644 doc/compute_temp_partial.html create mode 100644 doc/compute_temp_partial.txt create mode 100644 doc/compute_temp_ramp.html create mode 100644 doc/compute_temp_ramp.txt create mode 100644 doc/compute_temp_region.html create mode 100644 doc/compute_temp_region.txt rename doc/{dihedral_style_charmm.html => dihedral_charmm.html} (100%) rename doc/{dihedral_style_charmm.txt => dihedral_charmm.txt} (100%) rename doc/{dihedral_style_class2.html => dihedral_class2.html} (100%) rename doc/{dihedral_style_class2.txt => dihedral_class2.txt} (100%) rename doc/{dihedral_style_harmonic.html => dihedral_harmonic.html} (100%) rename doc/{dihedral_style_harmonic.txt => dihedral_harmonic.txt} (100%) rename doc/{dihedral_style_helix.html => dihedral_helix.html} (100%) rename doc/{dihedral_style_helix.txt => dihedral_helix.txt} (100%) rename doc/{dihedral_style_hybrid.html => dihedral_hybrid.html} (100%) rename doc/{dihedral_style_hybrid.txt => dihedral_hybrid.txt} (100%) rename doc/{dihedral_style_multi_harmonic.html => dihedral_multi_harmonic.html} (100%) rename doc/{dihedral_style_multi_harmonic.txt => dihedral_multi_harmonic.txt} (100%) rename doc/{dihedral_style_none.html => dihedral_none.html} (100%) rename doc/{dihedral_style_none.txt => dihedral_none.txt} (100%) rename doc/{dihedral_style_opls.html => dihedral_opls.html} (100%) rename doc/{dihedral_style_opls.txt => dihedral_opls.txt} (100%) rename doc/{improper_style_class2.html => improper_class2.html} (100%) rename doc/{improper_style_class2.txt => improper_class2.txt} (100%) rename doc/{improper_style_cvff.html => improper_cvff.html} (100%) rename doc/{improper_style_cvff.txt => improper_cvff.txt} (100%) rename doc/{improper_style_harmonic.html => improper_harmonic.html} (100%) rename doc/{improper_style_harmonic.txt => improper_harmonic.txt} (100%) rename doc/{improper_style_hybrid.html => improper_hybrid.html} (100%) rename doc/{improper_style_hybrid.txt => improper_hybrid.txt} (100%) rename doc/{improper_style_none.html => improper_none.html} (100%) rename doc/{improper_style_none.txt => improper_none.txt} (100%) rename doc/{pair_style_buck.html => pair_buck.html} (97%) rename doc/{pair_style_buck.txt => pair_buck.txt} (98%) rename doc/{pair_style_charmm.html => pair_charmm.html} (87%) rename doc/{pair_style_charmm.txt => pair_charmm.txt} (87%) rename doc/{pair_style_class2.html => pair_class2.html} (97%) rename doc/{pair_style_class2.txt => pair_class2.txt} (97%) rename doc/{pair_style_dpd.html => pair_dpd.html} (100%) rename doc/{pair_style_dpd.txt => pair_dpd.txt} (100%) rename doc/{pair_style_eam.html => pair_eam.html} (92%) rename doc/{pair_style_eam.txt => pair_eam.txt} (92%) rename doc/{pair_style_gran.html => pair_gran.html} (100%) rename doc/{pair_style_gran.txt => pair_gran.txt} (100%) rename doc/{pair_style_hybrid.html => pair_hybrid.html} (100%) rename doc/{pair_style_hybrid.txt => pair_hybrid.txt} (100%) rename doc/{pair_style_lj.html => pair_lj.html} (81%) rename doc/{pair_style_lj.txt => pair_lj.txt} (80%) rename doc/{pair_style_lj_expand.html => pair_lj_expand.html} (100%) rename doc/{pair_style_lj_expand.txt => pair_lj_expand.txt} (100%) rename doc/{pair_style_lj_smooth.html => pair_lj_smooth.html} (100%) rename doc/{pair_style_lj_smooth.txt => pair_lj_smooth.txt} (100%) rename doc/{pair_style_meam.html => pair_meam.html} (95%) rename doc/{pair_style_meam.txt => pair_meam.txt} (95%) rename doc/{pair_style_morse.html => pair_morse.html} (74%) rename doc/{pair_style_morse.txt => pair_morse.txt} (72%) rename doc/{pair_style_none.html => pair_none.html} (100%) rename doc/{pair_style_none.txt => pair_none.txt} (100%) rename doc/{pair_style_soft.html => pair_soft.html} (100%) rename doc/{pair_style_soft.txt => pair_soft.txt} (100%) delete mode 100644 doc/pair_style_dipole.html delete mode 100644 doc/pair_style_dipole.txt rename doc/{pair_style_sw.html => pair_sw.html} (100%) rename doc/{pair_style_sw.txt => pair_sw.txt} (100%) rename doc/{pair_style_table.html => pair_table.html} (100%) rename doc/{pair_style_table.txt => pair_table.txt} (100%) rename doc/{pair_style_tersoff.html => pair_tersoff.html} (100%) rename doc/{pair_style_tersoff.txt => pair_tersoff.txt} (100%) rename doc/{pair_style_yukawa.html => pair_yukawa.html} (100%) rename doc/{pair_style_yukawa.txt => pair_yukawa.txt} (100%) delete mode 100644 doc/temperature.html delete mode 100644 doc/temperature.txt create mode 100644 doc/uncompute.html create mode 100644 doc/uncompute.txt 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 ... 
 
-