From 05ccdfc1510c25a17698fe6a602d35fd6e74eeaf Mon Sep 17 00:00:00 2001
From: sjplimp
Date: Thu, 1 Nov 2007 16:46:50 +0000
Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@1111
f3b2605a-c512-4ea7-a41b-209d697bcdaa
---
doc/Section_commands.html | 6 ++--
doc/Section_commands.txt | 1 +
doc/compute.html | 11 ++++---
doc/compute.txt | 11 ++++---
doc/compute_modify.html | 14 +++++++--
doc/compute_modify.txt | 14 +++++++--
doc/compute_pe.html | 64 +++++++++++++++++++++++++++++++++++++++
doc/compute_pe.txt | 59 ++++++++++++++++++++++++++++++++++++
doc/compute_pressure.html | 20 ++++++++----
doc/compute_pressure.txt | 20 ++++++++----
doc/compute_temp.html | 7 +++++
doc/compute_temp.txt | 7 +++++
doc/thermo_style.html | 28 ++++++++++++-----
doc/thermo_style.txt | 28 ++++++++++++-----
14 files changed, 249 insertions(+), 41 deletions(-)
create mode 100644 doc/compute_pe.html
create mode 100644 doc/compute_pe.txt
diff --git a/doc/Section_commands.html b/doc/Section_commands.html
index 8955246e6a..36193c7fab 100644
--- a/doc/Section_commands.html
+++ b/doc/Section_commands.html
@@ -334,9 +334,9 @@ description:
These are compute styles contributed by users, which can be used if
diff --git a/doc/Section_commands.txt b/doc/Section_commands.txt
index db4578bf83..292f723959 100644
--- a/doc/Section_commands.txt
+++ b/doc/Section_commands.txt
@@ -444,6 +444,7 @@ description:
"ebond/atom"_compute_ebond_atom.html,
"epair/atom"_compute_epair_atom.html,
"ke/atom"_compute_ke_atom.html,
+"pe"_compute_pe.html,
"pressure"_compute_pressure.html,
"rotate/dipole"_compute_rotate_dipole.html,
"rotate/gran"_compute_rotate_gran.html,
diff --git a/doc/compute.html b/doc/compute.html
index 8453388b5c..7bd256009b 100644
--- a/doc/compute.html
+++ b/doc/compute.html
@@ -53,12 +53,14 @@ ave/spatial commands.
See this howto section for a summary of
various LAMMPS output options.
-LAMMPS creates its own global computes for thermodynamic output. Two
-computes are always created, named "thermo_temp" and
-"thermo_pressure", as if these commands had been invoked:
+
LAMMPS creates its own global computes for thermodynamic output.
+Three computes are always created, named "thermo_temp",
+"thermo_pressure", and"thermo_pe", as if these commands had been
+invoked in the input script:
compute thermo_temp all temp
-compute thermo_pressure all pressure thermo_temp
+compute thermo_pressure all pressure thermo_temp
+compute thermo_pe all pe
Additional computes are created if the thermo style requires it. See
the documentation for the thermo_style command.
@@ -92,6 +94,7 @@ defined in LAMMPS:
ebond/atom - bond energy for each atom
epair/atom - pairwise energy for each atom
ke/atom - kinetic energy for each atom
+pe - potential energy
pressure - total pressure and pressure tensor
rotate/dipole - rotational energy of dipolar atoms
rotate/gran - rotational energy of granular atoms
diff --git a/doc/compute.txt b/doc/compute.txt
index 01092a0876..d324e12cda 100644
--- a/doc/compute.txt
+++ b/doc/compute.txt
@@ -50,12 +50,14 @@ ave/spatial"_fix_ave_spatial.html commands.
See this "howto section"_Section_howto.html#4_15 for a summary of
various LAMMPS output options.
-LAMMPS creates its own global computes for thermodynamic output. Two
-computes are always created, named "thermo_temp" and
-"thermo_pressure", as if these commands had been invoked:
+LAMMPS creates its own global computes for thermodynamic output.
+Three computes are always created, named "thermo_temp",
+"thermo_pressure", and"thermo_pe", as if these commands had been
+invoked in the input script:
compute thermo_temp all temp
-compute thermo_pressure all pressure thermo_temp :pre
+compute thermo_pressure all pressure thermo_temp
+compute thermo_pe all pe :pre
Additional computes are created if the thermo style requires it. See
the documentation for the "thermo_style"_thermo_style.html command.
@@ -89,6 +91,7 @@ defined in LAMMPS:
"ebond/atom"_compute_ebond_atom.html - bond energy for each atom
"epair/atom"_compute_epair_atom.html - pairwise energy for each atom
"ke/atom"_compute_ke_atom.html - kinetic energy for each atom
+"pe"_compute_pe.html - potential energy
"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
diff --git a/doc/compute_modify.html b/doc/compute_modify.html
index 176b74e1fb..8ca891cc89 100644
--- a/doc/compute_modify.html
+++ b/doc/compute_modify.html
@@ -24,7 +24,9 @@
extra value = N
N = # of extra degrees of freedom to subtract
dynamic value = yes or no
- yes/no = do or do not recompute the number of atoms contributing to the temperature
+ yes/no = do or do not recompute the number of atoms contributing to the temperature
+ thermo value = yes or no
+ yes/no = do or do not add contributions from fixes to the potential energy
@@ -53,6 +55,12 @@ deposit commands) or expect atoms to be lost
(e.g. due to evaporation), then this option can be used to insure the
temperature is correctly normalized.
+The thermo keyword determines whether the potential energy
+contribution calculated by some fixes is added to the
+potential energy calculated by the compute. Only the compute of style
+pe uses this option. See the doc pages for individual
+fixes for details.
+
Restrictions: none
Related commands:
@@ -61,6 +69,8 @@ temperature is correctly normalized.
Default:
-The option defaults are extra = 3 and dynamic = no.
+
The option defaults are extra = 3 and dynamic = no. Thermo is yes if
+the compute of style pe was defined with no extra keywords; otherwise
+it is no.