Compare commits
304 Commits
patch_19Oc
...
patch_17De
| Author | SHA1 | Date | |
|---|---|---|---|
| 81a2db8a0c | |||
| 0a176841e7 | |||
| 3027ac9250 | |||
| fc54ab5cea | |||
| e364b80724 | |||
| 830c9e8661 | |||
| 4907b29ad2 | |||
| eff7238ff2 | |||
| 126fb22e93 | |||
| 0a90492c44 | |||
| fed629c23e | |||
| 925481c3f4 | |||
| da2ad5b6e0 | |||
| bfcab72268 | |||
| f509f133af | |||
| 624c57e9da | |||
| f3b355bcbe | |||
| ae5764beac | |||
| fda43c00fd | |||
| b34be30be6 | |||
| 13b6196b82 | |||
| baf55c90f4 | |||
| 770f5d0bf7 | |||
| a31b00965a | |||
| a5e46e3e6a | |||
| 31be0da590 | |||
| 0f3b2544a1 | |||
| 586514e05c | |||
| 43c459ba56 | |||
| b5c3d2f66c | |||
| 5187cb97e5 | |||
| eff503e56c | |||
| cdcebab3bd | |||
| ddf678da51 | |||
| 435421301b | |||
| 9b48c49f83 | |||
| d3d5ac17bf | |||
| 8318c67816 | |||
| 7c61dbf5e2 | |||
| 39a12b15d7 | |||
| fb3f597f41 | |||
| d14814ae2e | |||
| beb5a30f67 | |||
| 7ddb6670c0 | |||
| 789e62388f | |||
| 7d098bff90 | |||
| 1d970d3cdf | |||
| 42d430168b | |||
| 5ff5bc2a6c | |||
| 02ae2d218a | |||
| 470908fc93 | |||
| 6759630c16 | |||
| 87781771ba | |||
| df46b9aa38 | |||
| 647c6f00ce | |||
| 237307eda2 | |||
| d58dd4f159 | |||
| ae70f1090f | |||
| 59d100ab57 | |||
| 61e71d23ed | |||
| b6f2f0e6e9 | |||
| ff0441ac16 | |||
| 41907d3110 | |||
| b95f255af4 | |||
| d7b542101a | |||
| 0ffa50f8e8 | |||
| 7893215964 | |||
| 3dff9f2018 | |||
| dab232c542 | |||
| 9e9d9d5aa5 | |||
| c982b174a2 | |||
| 87a5a35bad | |||
| fd174ce2b1 | |||
| b11f376a4f | |||
| 230b29eae6 | |||
| 2383c31f15 | |||
| e175a18bdb | |||
| a5bde82e37 | |||
| d787afcca9 | |||
| 176cde8ed3 | |||
| 2862c20815 | |||
| 78e018829f | |||
| c78914e7b3 | |||
| 635f3ce128 | |||
| 81f68e06fd | |||
| 4b51719e67 | |||
| 25d7be5f3d | |||
| 2a026c9ad8 | |||
| 4a3091f844 | |||
| 74c0e4dd5c | |||
| 073e8a0524 | |||
| 5320bbf585 | |||
| 4448819824 | |||
| 300ac30332 | |||
| 2535e44991 | |||
| 747c95c525 | |||
| cdae794383 | |||
| 8756a1017d | |||
| 5c64934bc8 | |||
| 4e62e58d29 | |||
| 5ac2d9532e | |||
| 19ac9d2959 | |||
| 9f313aac75 | |||
| 0102c5dadc | |||
| 07e46b797a | |||
| b45d1e37ef | |||
| 2e7fd513d4 | |||
| 82364d10e3 | |||
| 16c8a307e5 | |||
| 94f14ab051 | |||
| 22d93fe8fb | |||
| 683f514fac | |||
| f617993944 | |||
| 4641c9e568 | |||
| 705f66aaee | |||
| e57ae1ce3f | |||
| 950442b8b1 | |||
| 1c68e42ecc | |||
| 5f94b31806 | |||
| fdf5d68f9f | |||
| 0c25f3b1d6 | |||
| 14c7cf4197 | |||
| 26870f223d | |||
| 09544d0698 | |||
| b5130a3b35 | |||
| 20daf82463 | |||
| 57124b9b25 | |||
| 03b3834fe3 | |||
| d0124eac95 | |||
| 5685131fe2 | |||
| 22fc92f9d8 | |||
| b9770766a8 | |||
| 9cc0c8badd | |||
| 6e1492a86c | |||
| 9b0987d8c4 | |||
| e453adaf81 | |||
| 8e0fd88697 | |||
| fdcabd7d1d | |||
| c5c8c50e97 | |||
| 72b0841b28 | |||
| 801111a7ab | |||
| bfc478c320 | |||
| 2b75ee761d | |||
| 352e177fcd | |||
| c20ee34c7b | |||
| 95a7f7160e | |||
| 1f38e1a771 | |||
| 9806da69f3 | |||
| fec87c070d | |||
| 3d3a99c082 | |||
| 3e36ec3754 | |||
| 9ed5c4f0fa | |||
| c55fd502e0 | |||
| 71ee2ecaa1 | |||
| bfea3dce7d | |||
| eef862ee1c | |||
| 0cc2fbf1d6 | |||
| ae00666994 | |||
| 51b3b5fb35 | |||
| 176f2c3aa1 | |||
| 3f71bfb185 | |||
| cf3ab51679 | |||
| 59922f894b | |||
| 5e2b9d8bf3 | |||
| 2d132cad6b | |||
| ef6801f8bf | |||
| c81a723642 | |||
| f9eb2a99ce | |||
| 16a02ef27d | |||
| 2c801320c2 | |||
| d20b32092e | |||
| 9de1a2a08f | |||
| cdb5d47e9f | |||
| a23b287a7a | |||
| 31204aab6a | |||
| 25e7d074cf | |||
| 667f4dfe28 | |||
| 21694ca3a8 | |||
| 9b910d5511 | |||
| 054ab6bff3 | |||
| 616420cda8 | |||
| fb3ac9afba | |||
| 7cd7cda2d4 | |||
| db0524278a | |||
| 1ff75eaba2 | |||
| 30dede867a | |||
| a5c6104d64 | |||
| c5869bdee2 | |||
| e7a2c6b5d1 | |||
| 06959a9c59 | |||
| cd65d44d95 | |||
| 45f2e86dd6 | |||
| f8226e8ae5 | |||
| b221b15d24 | |||
| 3a3d96b877 | |||
| 77bbf03f0f | |||
| 7cff08ca0a | |||
| f0131393e0 | |||
| 32e0a58343 | |||
| 60908eeab4 | |||
| 8214555b29 | |||
| f48b71f46b | |||
| 6cc4eb19af | |||
| 7d23a0737e | |||
| 02510ec321 | |||
| 33140e5004 | |||
| 639fb6f444 | |||
| b156771721 | |||
| 5d787f7f16 | |||
| c8f4b55588 | |||
| e13e4031cf | |||
| 782a328080 | |||
| e81ae21dbd | |||
| 7fdd6e2807 | |||
| 2e0d304c7e | |||
| f333d659c2 | |||
| 51e2313fac | |||
| e37d2b5c94 | |||
| c4b86a25a7 | |||
| 218e121b41 | |||
| 93d393aa69 | |||
| 4216be49f3 | |||
| 3870780894 | |||
| c3a1e72183 | |||
| d9891abdf4 | |||
| f9a9e27f5a | |||
| 35753b8f08 | |||
| f028a9a967 | |||
| ef9f7c818e | |||
| 8e61bed2d8 | |||
| 3267b34590 | |||
| 0a417b4016 | |||
| 399c0af150 | |||
| e8b3f79690 | |||
| 21619f6a2f | |||
| 039bda9b61 | |||
| 6929603eef | |||
| 7f3f5e8c38 | |||
| f350500e69 | |||
| d7c77a419d | |||
| efaa8feab5 | |||
| ad5f7c4581 | |||
| 6b33499135 | |||
| 63eada2425 | |||
| 1a436bd7a9 | |||
| 52dd9aee5f | |||
| eca96e21ef | |||
| 9c81ad1ab6 | |||
| f8367e3d0f | |||
| ba6d1528bb | |||
| 182141b850 | |||
| 512c413b7e | |||
| 7b89e47a38 | |||
| e02505c8cc | |||
| be2d155cef | |||
| c243093980 | |||
| ad57a17f48 | |||
| 477ddaf112 | |||
| 4f69d91a99 | |||
| bc44988003 | |||
| db36c8bcc3 | |||
| 991034b632 | |||
| 607246f923 | |||
| 6742fb634a | |||
| ed3f02f249 | |||
| a2e34aab0a | |||
| 6cd6c106ef | |||
| a9572275ee | |||
| 2cf77ff778 | |||
| f022f6d88a | |||
| 8c3f5cb307 | |||
| e8359923f1 | |||
| d2da0fabb4 | |||
| 9954d5d346 | |||
| 13ce1037f2 | |||
| fa984b2c3b | |||
| 8540a9f038 | |||
| 13b6eb1bae | |||
| d80a9def17 | |||
| 114926a488 | |||
| be4734bdce | |||
| 5eb9dd0c5d | |||
| 2551619b07 | |||
| d8bf149edc | |||
| 473b12ded4 | |||
| 27c3149590 | |||
| 3b408d71fe | |||
| ebabc8f0bc | |||
| 232abf8534 | |||
| d22caf2658 | |||
| 3842aa6095 | |||
| 32c240978a | |||
| 212c2617f6 | |||
| 40f85c93ba | |||
| 2f02d98469 | |||
| 4553881fc2 | |||
| 81fcbcd99c | |||
| 82c6eb4675 | |||
| 8ed3f4226e | |||
| 9b7a0d7e1c | |||
| c9c2ae6c61 | |||
| 0229556b03 | |||
| 357d4517e8 | |||
| a4a97de84f |
4
doc/.gitignore
vendored
@ -1 +1,5 @@
|
|||||||
/html
|
/html
|
||||||
|
/LAMMPS.epub
|
||||||
|
/LAMMPS.mobi
|
||||||
|
/Manual.pdf
|
||||||
|
/Developer.pdf
|
||||||
|
|||||||
19
doc/Makefile
@ -22,7 +22,7 @@ endif
|
|||||||
SOURCES=$(wildcard src/*.txt)
|
SOURCES=$(wildcard src/*.txt)
|
||||||
OBJECTS=$(SOURCES:src/%.txt=$(RSTDIR)/%.rst)
|
OBJECTS=$(SOURCES:src/%.txt=$(RSTDIR)/%.rst)
|
||||||
|
|
||||||
.PHONY: help clean-all clean html pdf old venv
|
.PHONY: help clean-all clean epub html pdf old venv
|
||||||
|
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
|
|
||||||
@ -32,6 +32,7 @@ help:
|
|||||||
@echo " pdf create Manual.pdf and Developer.pdf in this dir"
|
@echo " pdf create Manual.pdf and Developer.pdf in this dir"
|
||||||
@echo " old create old-style HTML doc pages in old dir"
|
@echo " old create old-style HTML doc pages in old dir"
|
||||||
@echo " fetch fetch HTML and PDF files from LAMMPS web site"
|
@echo " fetch fetch HTML and PDF files from LAMMPS web site"
|
||||||
|
@echo " epub create ePUB format manual for e-book readers"
|
||||||
@echo " clean remove all intermediate RST files"
|
@echo " clean remove all intermediate RST files"
|
||||||
@echo " clean-all reset the entire build environment"
|
@echo " clean-all reset the entire build environment"
|
||||||
@echo " txt2html build txt2html tool"
|
@echo " txt2html build txt2html tool"
|
||||||
@ -42,7 +43,7 @@ clean-all:
|
|||||||
rm -rf $(BUILDDIR)/* utils/txt2html/txt2html.exe
|
rm -rf $(BUILDDIR)/* utils/txt2html/txt2html.exe
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(RSTDIR)
|
rm -rf $(RSTDIR) html
|
||||||
|
|
||||||
html: $(OBJECTS)
|
html: $(OBJECTS)
|
||||||
@(\
|
@(\
|
||||||
@ -63,6 +64,20 @@ html: $(OBJECTS)
|
|||||||
@rm -rf html/USER/*/*.[sg]*
|
@rm -rf html/USER/*/*.[sg]*
|
||||||
@echo "Build finished. The HTML pages are in doc/html."
|
@echo "Build finished. The HTML pages are in doc/html."
|
||||||
|
|
||||||
|
epub: $(OBJECTS)
|
||||||
|
@mkdir -p epub
|
||||||
|
@rm -f LAMMPS.epub
|
||||||
|
@cp src/JPG/lammps-logo.png epub/
|
||||||
|
@(\
|
||||||
|
. $(VENV)/bin/activate ;\
|
||||||
|
cp -r src/* $(RSTDIR)/ ;\
|
||||||
|
sphinx-build -j 8 -b epub -c utils/sphinx-config -d $(BUILDDIR)/doctrees $(RSTDIR) epub ;\
|
||||||
|
deactivate ;\
|
||||||
|
)
|
||||||
|
@mv epub/LAMMPS.epub .
|
||||||
|
@rm -rf epub
|
||||||
|
@echo "Build finished. The ePUB manual file is created."
|
||||||
|
|
||||||
pdf: utils/txt2html/txt2html.exe
|
pdf: utils/txt2html/txt2html.exe
|
||||||
@(\
|
@(\
|
||||||
cd src; \
|
cd src; \
|
||||||
|
|||||||
24
doc/README
@ -1,13 +1,14 @@
|
|||||||
LAMMPS Documentation
|
LAMMPS Documentation
|
||||||
|
|
||||||
Depending on how you obtained LAMMPS, this directory has 2 or 3
|
Depending on how you obtained LAMMPS, this directory has 2 or 3
|
||||||
sub-directories and optionally 2 PDF files:
|
sub-directories and optionally 2 PDF files and an ePUB file:
|
||||||
|
|
||||||
src content files for LAMMPS documentation
|
src content files for LAMMPS documentation
|
||||||
html HTML version of the LAMMPS manual (see html/Manual.html)
|
html HTML version of the LAMMPS manual (see html/Manual.html)
|
||||||
tools tools and settings for building the documentation
|
tools tools and settings for building the documentation
|
||||||
Manual.pdf large PDF version of entire manual
|
Manual.pdf large PDF version of entire manual
|
||||||
Developer.pdf small PDF with info about how LAMMPS is structured
|
Developer.pdf small PDF with info about how LAMMPS is structured
|
||||||
|
LAMMPS.epub Manual in ePUB format
|
||||||
|
|
||||||
If you downloaded LAMMPS as a tarball from the web site, all these
|
If you downloaded LAMMPS as a tarball from the web site, all these
|
||||||
directories and files should be included.
|
directories and files should be included.
|
||||||
@ -49,6 +50,7 @@ make pdf # generate 2 PDF files (Manual.pdf,Developer.pdf)
|
|||||||
make old # generate old-style HTML pages in old dir via txt2html
|
make old # generate old-style HTML pages in old dir via txt2html
|
||||||
make fetch # fetch HTML doc pages and 2 PDF files from web site
|
make fetch # fetch HTML doc pages and 2 PDF files from web site
|
||||||
# as a tarball and unpack into html dir and 2 PDFs
|
# as a tarball and unpack into html dir and 2 PDFs
|
||||||
|
make epub # generate LAMMPS.epub in ePUB format using Sphinx
|
||||||
make clean # remove intermediate RST files created by HTML build
|
make clean # remove intermediate RST files created by HTML build
|
||||||
make clean-all # remove entire build folder and any cached data
|
make clean-all # remove entire build folder and any cached data
|
||||||
|
|
||||||
@ -91,3 +93,23 @@ This will install virtualenv from the Python Package Index.
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
Installing prerequisites for PDF build
|
Installing prerequisites for PDF build
|
||||||
|
|
||||||
|
[TBA]
|
||||||
|
|
||||||
|
----------------
|
||||||
|
|
||||||
|
Installing prerequisites for epub build
|
||||||
|
|
||||||
|
## ePUB
|
||||||
|
|
||||||
|
Same as for HTML. This uses the same tools and configuration
|
||||||
|
files as the HTML tree.
|
||||||
|
|
||||||
|
For converting the generated ePUB file to a mobi format file
|
||||||
|
(for e-book readers like Kindle, that cannot read ePUB), you
|
||||||
|
also need to have the 'ebook-convert' tool from the "calibre"
|
||||||
|
software installed. http://calibre-ebook.com/
|
||||||
|
You first create the ePUB file with 'make epub' and then do:
|
||||||
|
|
||||||
|
ebook-convert LAMMPS.epub LAMMPS.mobi
|
||||||
|
|
||||||
|
|||||||
BIN
doc/src/Eqs/fix_grem.jpg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
9
doc/src/Eqs/fix_grem.tex
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
\documentclass[12pt]{article}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
$$
|
||||||
|
T_{eff} = \lambda + \eta (H - H_0)
|
||||||
|
$$
|
||||||
|
|
||||||
|
\end{document}
|
||||||
BIN
doc/src/Eqs/pair_agni.jpg
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
doc/src/Eqs/pair_tersoff_mod_c.jpg
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
10
doc/src/Eqs/pair_tersoff_mod_c.tex
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
\documentclass[12pt]{article}
|
||||||
|
\pagestyle{empty}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
\begin{eqnarray*}
|
||||||
|
V_{ij} & = & f_C(r_{ij}) \left[ f_R(r_{ij}) + b_{ij} f_A(r_{ij}) + c_0 \right]
|
||||||
|
\end{eqnarray*}
|
||||||
|
|
||||||
|
\end{document}
|
||||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.2 KiB |
@ -3,7 +3,7 @@
|
|||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
$$
|
$$
|
||||||
P = \frac{N k_B T}{V} + \frac{\sum_{i}^{N} r_i \bullet f_i}{dV}
|
P = \frac{N k_B T}{V} + \frac{\sum_{i}^{N'} r_i \bullet f_i}{dV}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.3 KiB |
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
$$
|
$$
|
||||||
P_{IJ} = \frac{\sum_{k}^{N} m_k v_{k_I} v_{k_J}}{V} +
|
P_{IJ} = \frac{\sum_{k}^{N} m_k v_{k_I} v_{k_J}}{V} +
|
||||||
\frac{\sum_{k}^{N} r_{k_I} f_{k_J}}{V}
|
\frac{\sum_{k}^{N'} r_{k_I} f_{k_J}}{V}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|||||||
BIN
doc/src/JPG/lammps-logo.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
doc/src/JPG/pylammps_dihedral.jpg
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
doc/src/JPG/pylammps_mc_disordered.jpg
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
doc/src/JPG/pylammps_mc_energies_plot.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
doc/src/JPG/pylammps_mc_minimum.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
@ -1,7 +1,7 @@
|
|||||||
<!-- HTML_ONLY -->
|
<!-- HTML_ONLY -->
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<TITLE>LAMMPS Users Manual</TITLE>
|
<TITLE>LAMMPS Users Manual</TITLE>
|
||||||
<META NAME="docnumber" CONTENT="18 Oct 2016 version">
|
<META NAME="docnumber" CONTENT="17 Dec 2016 version">
|
||||||
<META NAME="author" CONTENT="http://lammps.sandia.gov - Sandia National Laboratories">
|
<META NAME="author" CONTENT="http://lammps.sandia.gov - Sandia National Laboratories">
|
||||||
<META NAME="copyright" CONTENT="Copyright (2003) Sandia Corporation. This software and manual is distributed under the GNU General Public License.">
|
<META NAME="copyright" CONTENT="Copyright (2003) Sandia Corporation. This software and manual is distributed under the GNU General Public License.">
|
||||||
</HEAD>
|
</HEAD>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<H1></H1>
|
<H1></H1>
|
||||||
|
|
||||||
LAMMPS Documentation :c,h3
|
LAMMPS Documentation :c,h3
|
||||||
18 Oct 2016 version :c,h4
|
17 Dec 2016 version :c,h4
|
||||||
|
|
||||||
Version info: :h4
|
Version info: :h4
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ the $. Thus $\{myTemp\} and $x refer to variable names "myTemp" and
|
|||||||
"x".
|
"x".
|
||||||
|
|
||||||
How the variable is converted to a text string depends on what style
|
How the variable is converted to a text string depends on what style
|
||||||
of variable it is; see the "variable"_variable doc page for details.
|
of variable it is; see the "variable"_variable.html doc page for details.
|
||||||
It can be a variable that stores multiple text strings, and return one
|
It can be a variable that stores multiple text strings, and return one
|
||||||
of them. The returned text string can be multiple "words" (space
|
of them. The returned text string can be multiple "words" (space
|
||||||
separated) which will then be interpreted as multiple arguments in the
|
separated) which will then be interpreted as multiple arguments in the
|
||||||
@ -528,8 +528,11 @@ These are additional commands in USER packages, which can be used if
|
|||||||
package"_Section_start.html#start_3.
|
package"_Section_start.html#start_3.
|
||||||
|
|
||||||
"dump custom/vtk"_dump_custom_vtk.html,
|
"dump custom/vtk"_dump_custom_vtk.html,
|
||||||
|
"dump nc"_dump_nc.html,
|
||||||
|
"dump nc/mpiio"_dump_nc.html,
|
||||||
"group2ndx"_group2ndx.html,
|
"group2ndx"_group2ndx.html,
|
||||||
"ndx2group"_group2ndx.html :tb(c=3,ea=c)
|
"ndx2group"_group2ndx.html,
|
||||||
|
"temper/grem"_temper_grem.html :tb(c=3,ea=c)
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
@ -630,10 +633,10 @@ USER-INTEL, k = KOKKOS, o = USER-OMP, t = OPT.
|
|||||||
"rigid/nve (o)"_fix_rigid.html,
|
"rigid/nve (o)"_fix_rigid.html,
|
||||||
"rigid/nvt (o)"_fix_rigid.html,
|
"rigid/nvt (o)"_fix_rigid.html,
|
||||||
"rigid/small (o)"_fix_rigid.html,
|
"rigid/small (o)"_fix_rigid.html,
|
||||||
"rigid/small/nph"_fix_rigid.html,
|
"rigid/small/nph (o)"_fix_rigid.html,
|
||||||
"rigid/small/npt"_fix_rigid.html,
|
"rigid/small/npt (o)"_fix_rigid.html,
|
||||||
"rigid/small/nve"_fix_rigid.html,
|
"rigid/small/nve (o)"_fix_rigid.html,
|
||||||
"rigid/small/nvt"_fix_rigid.html,
|
"rigid/small/nvt (o)"_fix_rigid.html,
|
||||||
"setforce (k)"_fix_setforce.html,
|
"setforce (k)"_fix_setforce.html,
|
||||||
"shake"_fix_shake.html,
|
"shake"_fix_shake.html,
|
||||||
"spring"_fix_spring.html,
|
"spring"_fix_spring.html,
|
||||||
@ -685,6 +688,7 @@ package"_Section_start.html#start_3.
|
|||||||
"eos/table/rx"_fix_eos_table_rx.html,
|
"eos/table/rx"_fix_eos_table_rx.html,
|
||||||
"flow/gauss"_fix_flow_gauss.html,
|
"flow/gauss"_fix_flow_gauss.html,
|
||||||
"gle"_fix_gle.html,
|
"gle"_fix_gle.html,
|
||||||
|
"grem"_fix_grem.html,
|
||||||
"imd"_fix_imd.html,
|
"imd"_fix_imd.html,
|
||||||
"ipi"_fix_ipi.html,
|
"ipi"_fix_ipi.html,
|
||||||
"langevin/drude"_fix_langevin_drude.html,
|
"langevin/drude"_fix_langevin_drude.html,
|
||||||
@ -763,6 +767,7 @@ KOKKOS, o = USER-OMP, t = OPT.
|
|||||||
"erotate/sphere"_compute_erotate_sphere.html,
|
"erotate/sphere"_compute_erotate_sphere.html,
|
||||||
"erotate/sphere/atom"_compute_erotate_sphere_atom.html,
|
"erotate/sphere/atom"_compute_erotate_sphere_atom.html,
|
||||||
"event/displace"_compute_event_displace.html,
|
"event/displace"_compute_event_displace.html,
|
||||||
|
"global/atom"_compute_global_atom.html,
|
||||||
"group/group"_compute_group_group.html,
|
"group/group"_compute_group_group.html,
|
||||||
"gyration"_compute_gyration.html,
|
"gyration"_compute_gyration.html,
|
||||||
"gyration/chunk"_compute_gyration_chunk.html,
|
"gyration/chunk"_compute_gyration_chunk.html,
|
||||||
@ -884,6 +889,8 @@ KOKKOS, o = USER-OMP, t = OPT.
|
|||||||
"body"_pair_body.html,
|
"body"_pair_body.html,
|
||||||
"bop"_pair_bop.html,
|
"bop"_pair_bop.html,
|
||||||
"born (go)"_pair_born.html,
|
"born (go)"_pair_born.html,
|
||||||
|
"born/coul/dsf"_pair_born.html,
|
||||||
|
"born/coul/dsf/cs"_pair_born.html,
|
||||||
"born/coul/long (go)"_pair_born.html,
|
"born/coul/long (go)"_pair_born.html,
|
||||||
"born/coul/long/cs"_pair_born.html,
|
"born/coul/long/cs"_pair_born.html,
|
||||||
"born/coul/msm (o)"_pair_born.html,
|
"born/coul/msm (o)"_pair_born.html,
|
||||||
@ -907,8 +914,8 @@ KOKKOS, o = USER-OMP, t = OPT.
|
|||||||
"coul/msm"_pair_coul.html,
|
"coul/msm"_pair_coul.html,
|
||||||
"coul/streitz"_pair_coul.html,
|
"coul/streitz"_pair_coul.html,
|
||||||
"coul/wolf (ko)"_pair_coul.html,
|
"coul/wolf (ko)"_pair_coul.html,
|
||||||
"dpd (o)"_pair_dpd.html,
|
"dpd (go)"_pair_dpd.html,
|
||||||
"dpd/tstat (o)"_pair_dpd.html,
|
"dpd/tstat (go)"_pair_dpd.html,
|
||||||
"dsmc"_pair_dsmc.html,
|
"dsmc"_pair_dsmc.html,
|
||||||
"eam (gkot)"_pair_eam.html,
|
"eam (gkot)"_pair_eam.html,
|
||||||
"eam/alloy (gkot)"_pair_eam.html,
|
"eam/alloy (gkot)"_pair_eam.html,
|
||||||
@ -977,11 +984,12 @@ KOKKOS, o = USER-OMP, t = OPT.
|
|||||||
"table (gko)"_pair_table.html,
|
"table (gko)"_pair_table.html,
|
||||||
"tersoff (gkio)"_pair_tersoff.html,
|
"tersoff (gkio)"_pair_tersoff.html,
|
||||||
"tersoff/mod (gko)"_pair_tersoff_mod.html,
|
"tersoff/mod (gko)"_pair_tersoff_mod.html,
|
||||||
|
"tersoff/mod/c (o)"_pair_tersoff_mod.html,
|
||||||
"tersoff/zbl (gko)"_pair_tersoff_zbl.html,
|
"tersoff/zbl (gko)"_pair_tersoff_zbl.html,
|
||||||
"tip4p/cut (o)"_pair_coul.html,
|
"tip4p/cut (o)"_pair_coul.html,
|
||||||
"tip4p/long (o)"_pair_coul.html,
|
"tip4p/long (o)"_pair_coul.html,
|
||||||
"tri/lj"_pair_tri_lj.html,
|
"tri/lj"_pair_tri_lj.html,
|
||||||
"vashishta (o)"_pair_vashishta.html,
|
"vashishta (ko)"_pair_vashishta.html,
|
||||||
"vashishta/table (o)"_pair_vashishta.html,
|
"vashishta/table (o)"_pair_vashishta.html,
|
||||||
"yukawa (go)"_pair_yukawa.html,
|
"yukawa (go)"_pair_yukawa.html,
|
||||||
"yukawa/colloid (go)"_pair_yukawa_colloid.html,
|
"yukawa/colloid (go)"_pair_yukawa_colloid.html,
|
||||||
@ -991,6 +999,7 @@ These are additional pair styles in USER packages, which can be used
|
|||||||
if "LAMMPS is built with the appropriate
|
if "LAMMPS is built with the appropriate
|
||||||
package"_Section_start.html#start_3.
|
package"_Section_start.html#start_3.
|
||||||
|
|
||||||
|
"agni (o)"_pair_agni.html,
|
||||||
"awpmd/cut"_pair_awpmd.html,
|
"awpmd/cut"_pair_awpmd.html,
|
||||||
"buck/mdf"_pair_mdf.html,
|
"buck/mdf"_pair_mdf.html,
|
||||||
"coul/cut/soft (o)"_pair_lj_soft.html,
|
"coul/cut/soft (o)"_pair_lj_soft.html,
|
||||||
|
|||||||
@ -8116,11 +8116,11 @@ boundary of a processor's sub-domain has moved more than 1/2 the
|
|||||||
rebuilt and atoms being migrated to new processors. This also means
|
rebuilt and atoms being migrated to new processors. This also means
|
||||||
you may be missing pairwise interactions that need to be computed.
|
you may be missing pairwise interactions that need to be computed.
|
||||||
The solution is to change the re-neighboring criteria via the
|
The solution is to change the re-neighboring criteria via the
|
||||||
"neigh_modify"_neigh_modify command. The safest settings are "delay 0
|
"neigh_modify"_neigh_modify.html command. The safest settings are
|
||||||
every 1 check yes". Second, it may mean that an atom has moved far
|
"delay 0 every 1 check yes". Second, it may mean that an atom has
|
||||||
outside a processor's sub-domain or even the entire simulation box.
|
moved far outside a processor's sub-domain or even the entire
|
||||||
This indicates bad physics, e.g. due to highly overlapping atoms, too
|
simulation box. This indicates bad physics, e.g. due to highly
|
||||||
large a timestep, etc. :dd
|
overlapping atoms, too large a timestep, etc. :dd
|
||||||
|
|
||||||
{Out of range atoms - cannot compute PPPM} :dt
|
{Out of range atoms - cannot compute PPPM} :dt
|
||||||
|
|
||||||
@ -8132,11 +8132,11 @@ boundary of a processor's sub-domain has moved more than 1/2 the
|
|||||||
rebuilt and atoms being migrated to new processors. This also means
|
rebuilt and atoms being migrated to new processors. This also means
|
||||||
you may be missing pairwise interactions that need to be computed.
|
you may be missing pairwise interactions that need to be computed.
|
||||||
The solution is to change the re-neighboring criteria via the
|
The solution is to change the re-neighboring criteria via the
|
||||||
"neigh_modify"_neigh_modify command. The safest settings are "delay 0
|
"neigh_modify"_neigh_modify.html command. The safest settings are
|
||||||
every 1 check yes". Second, it may mean that an atom has moved far
|
"delay 0 every 1 check yes". Second, it may mean that an atom has
|
||||||
outside a processor's sub-domain or even the entire simulation box.
|
moved far outside a processor's sub-domain or even the entire
|
||||||
This indicates bad physics, e.g. due to highly overlapping atoms, too
|
simulation box. This indicates bad physics, e.g. due to highly
|
||||||
large a timestep, etc. :dd
|
overlapping atoms, too large a timestep, etc. :dd
|
||||||
|
|
||||||
{Out of range atoms - cannot compute PPPMDisp} :dt
|
{Out of range atoms - cannot compute PPPMDisp} :dt
|
||||||
|
|
||||||
@ -8148,11 +8148,11 @@ boundary of a processor's sub-domain has moved more than 1/2 the
|
|||||||
rebuilt and atoms being migrated to new processors. This also means
|
rebuilt and atoms being migrated to new processors. This also means
|
||||||
you may be missing pairwise interactions that need to be computed.
|
you may be missing pairwise interactions that need to be computed.
|
||||||
The solution is to change the re-neighboring criteria via the
|
The solution is to change the re-neighboring criteria via the
|
||||||
"neigh_modify"_neigh_modify command. The safest settings are "delay 0
|
"neigh_modify"_neigh_modify.html command. The safest settings are
|
||||||
every 1 check yes". Second, it may mean that an atom has moved far
|
"delay 0 every 1 check yes". Second, it may mean that an atom has
|
||||||
outside a processor's sub-domain or even the entire simulation box.
|
moved far outside a processor's sub-domain or even the entire
|
||||||
This indicates bad physics, e.g. due to highly overlapping atoms, too
|
simulation box. This indicates bad physics, e.g. due to highly
|
||||||
large a timestep, etc. :dd
|
overlapping atoms, too large a timestep, etc. :dd
|
||||||
|
|
||||||
{Overflow of allocated fix vector storage} :dt
|
{Overflow of allocated fix vector storage} :dt
|
||||||
|
|
||||||
|
|||||||
@ -1854,13 +1854,19 @@ internal LAMMPS operations. Note that LAMMPS classes are defined
|
|||||||
within a LAMMPS namespace (LAMMPS_NS) if you use them from another C++
|
within a LAMMPS namespace (LAMMPS_NS) if you use them from another C++
|
||||||
application.
|
application.
|
||||||
|
|
||||||
Library.cpp contains these 5 basic functions:
|
Library.cpp contains these functions for creating and destroying an
|
||||||
|
instance of LAMMPS and sending it commands to execute. See the
|
||||||
|
documentation in the src/library.cpp file for details:
|
||||||
|
|
||||||
void lammps_open(int, char **, MPI_Comm, void **)
|
void lammps_open(int, char **, MPI_Comm, void **)
|
||||||
|
void lammps_open_no_mpi(int, char **, void **)
|
||||||
void lammps_close(void *)
|
void lammps_close(void *)
|
||||||
int lammps_version(void *)
|
int lammps_version(void *)
|
||||||
void lammps_file(void *, char *)
|
void lammps_file(void *, char *)
|
||||||
char *lammps_command(void *, char *) :pre
|
char *lammps_command(void *, char *)
|
||||||
|
void lammps_commands_list(void *, int, char **)
|
||||||
|
void lammps_commands_string(void *, char *)
|
||||||
|
void lammps_free(void *) :pre
|
||||||
|
|
||||||
The lammps_open() function is used to initialize LAMMPS, passing in a
|
The lammps_open() function is used to initialize LAMMPS, passing in a
|
||||||
list of strings as if they were "command-line
|
list of strings as if they were "command-line
|
||||||
@ -1880,6 +1886,10 @@ half to the other code and run both codes simultaneously before
|
|||||||
syncing them up periodically. Or it might instantiate multiple
|
syncing them up periodically. Or it might instantiate multiple
|
||||||
instances of LAMMPS to perform different calculations.
|
instances of LAMMPS to perform different calculations.
|
||||||
|
|
||||||
|
The lammps_open_no_mpi() function is similar except that no MPI
|
||||||
|
communicator is passed from the caller. Instead, MPI_COMM_WORLD is
|
||||||
|
used to instantiate LAMMPS, and MPI is initialzed if necessary.
|
||||||
|
|
||||||
The lammps_close() function is used to shut down an instance of LAMMPS
|
The lammps_close() function is used to shut down an instance of LAMMPS
|
||||||
and free all its memory.
|
and free all its memory.
|
||||||
|
|
||||||
@ -1891,44 +1901,106 @@ changes to the LAMMPS command syntax between versions. The returned
|
|||||||
LAMMPS version code is an integer (e.g. 2 Sep 2015 results in
|
LAMMPS version code is an integer (e.g. 2 Sep 2015 results in
|
||||||
20150902) that grows with every new LAMMPS version.
|
20150902) that grows with every new LAMMPS version.
|
||||||
|
|
||||||
The lammps_file() and lammps_command() functions are used to pass a
|
The lammps_file(), lammps_command(), lammps_commands_list(), and
|
||||||
file or string to LAMMPS as if it were an input script or single
|
lammps_commands_string() functions are used to pass one or more
|
||||||
command in an input script. Thus the calling code can read or
|
commands to LAMMPS to execute, the same as if they were coming from an
|
||||||
generate a series of LAMMPS commands one line at a time and pass it
|
input script.
|
||||||
thru the library interface to setup a problem and then run it,
|
|
||||||
interleaving the lammps_command() calls with other calls to extract
|
|
||||||
information from LAMMPS, perform its own operations, or call another
|
|
||||||
code's library.
|
|
||||||
|
|
||||||
Other useful functions are also included in library.cpp. For example:
|
Via these functions, the calling code can read or generate a series of
|
||||||
|
LAMMPS commands one or multiple at a time and pass it thru the library
|
||||||
|
interface to setup a problem and then run it in stages. The caller
|
||||||
|
can interleave the command function calls with operations it performs,
|
||||||
|
calls to extract information from or set information within LAMMPS, or
|
||||||
|
calls to another code's library.
|
||||||
|
|
||||||
|
The lammps_file() function passes the filename of an input script.
|
||||||
|
The lammps_command() function passes a single command as a string.
|
||||||
|
The lammps_commands_list() function passes multiple commands in a
|
||||||
|
char** list. In both lammps_command() and lammps_commands_list(),
|
||||||
|
individual commands may or may not have a trailing newline. The
|
||||||
|
lammps_commands_string() function passes multiple commands
|
||||||
|
concatenated into one long string, separated by newline characters.
|
||||||
|
In both lammps_commands_list() and lammps_commands_string(), a single
|
||||||
|
command can be spread across multiple lines, if the last printable
|
||||||
|
character of all but the last line is "&", the same as if the lines
|
||||||
|
appeared in an input script.
|
||||||
|
|
||||||
|
The lammps_free() function is a clean-up function to free memory that
|
||||||
|
the library allocated previously via other function calls. See
|
||||||
|
comments in src/library.cpp file for which other functions need this
|
||||||
|
clean-up.
|
||||||
|
|
||||||
|
Library.cpp also contains these functions for extracting information
|
||||||
|
from LAMMPS and setting value within LAMMPS. Again, see the
|
||||||
|
documentation in the src/library.cpp file for details, including
|
||||||
|
which quantities can be queried by name:
|
||||||
|
|
||||||
void *lammps_extract_global(void *, char *)
|
void *lammps_extract_global(void *, char *)
|
||||||
|
void lammps_extract_box(void *, double *, double *,
|
||||||
|
double *, double *, double *, int *, int *)
|
||||||
void *lammps_extract_atom(void *, char *)
|
void *lammps_extract_atom(void *, char *)
|
||||||
void *lammps_extract_compute(void *, char *, int, int)
|
void *lammps_extract_compute(void *, char *, int, int)
|
||||||
void *lammps_extract_fix(void *, char *, int, int, int, int)
|
void *lammps_extract_fix(void *, char *, int, int, int, int)
|
||||||
void *lammps_extract_variable(void *, char *, char *)
|
void *lammps_extract_variable(void *, char *, char *) :pre
|
||||||
int lammps_set_variable(void *, char *, char *)
|
|
||||||
|
void lammps_reset_box(void *, double *, double *, double, double, double)
|
||||||
|
int lammps_set_variable(void *, char *, char *) :pre
|
||||||
|
|
||||||
|
double lammps_get_thermo(void *, char *)
|
||||||
int lammps_get_natoms(void *)
|
int lammps_get_natoms(void *)
|
||||||
void lammps_get_coords(void *, double *)
|
void lammps_gather_atoms(void *, double *)
|
||||||
void lammps_put_coords(void *, double *) :pre
|
void lammps_scatter_atoms(void *, double *) :pre
|
||||||
|
void lammps_create_atoms(void *, int, tagint *, int *, double *, double *,
|
||||||
|
imageint *, int) :pre
|
||||||
|
|
||||||
These can extract various global or per-atom quantities from LAMMPS as
|
The extract functions return a pointer to various global or per-atom
|
||||||
well as values calculated by a compute, fix, or variable. The
|
quantities stored in LAMMPS or to values calculated by a compute, fix,
|
||||||
"set_variable" function can set an existing string-style variable to a
|
or variable. The pointer returned by the extract_global() function
|
||||||
new value, so that subsequent LAMMPS commands can access the variable.
|
can be used as a permanent reference to a value which may change. For
|
||||||
The "get" and "put" operations can retrieve and reset atom
|
the other extract functions, the underlying storage may be reallocated
|
||||||
coordinates. See the library.cpp file and its associated header file
|
as LAMMPS runs, so you need to re-call the function to assure a
|
||||||
library.h for details.
|
current pointer or returned value(s).
|
||||||
|
|
||||||
The key idea of the library interface is that you can write any
|
The lammps_reset_box() function resets the size and shape of the
|
||||||
functions you wish to define how your code talks to LAMMPS and add
|
simulation box, e.g. as part of restoring a previously extracted and
|
||||||
them to src/library.cpp and src/library.h, as well as to the "Python
|
saved state of a simulation.
|
||||||
interface"_Section_python.html. The routines you add can access or
|
|
||||||
change any LAMMPS data you wish. The examples/COUPLE and python
|
The lammps_set_variable() function can set an existing string-style
|
||||||
directories have example C++ and C and Python codes which show how a
|
variable to a new string value, so that subsequent LAMMPS commands can
|
||||||
driver code can link to LAMMPS as a library, run LAMMPS on a subset of
|
access the variable.
|
||||||
processors, grab data from LAMMPS, change it, and put it back into
|
|
||||||
LAMMPS.
|
The lammps_get_thermo() function returns the current value of a thermo
|
||||||
|
keyword as a double precision value.
|
||||||
|
|
||||||
|
The lammps_get_natoms() function returns the total number of atoms in
|
||||||
|
the system and can be used by the caller to allocate space for the
|
||||||
|
lammps_gather_atoms() and lammps_scatter_atoms() functions. The
|
||||||
|
gather function collects atom info of the requested type (atom coords,
|
||||||
|
types, forces, etc) from all procsesors, orders them by atom ID, and
|
||||||
|
returns a full list to each calling processor. The scatter function
|
||||||
|
does the inverse. It distributes the same kinds of values,
|
||||||
|
passed by the caller, to each atom owned by individual processors.
|
||||||
|
|
||||||
|
The lammps_create_atoms() function takes a list of N atoms as input
|
||||||
|
with atom types and coords (required), an optionally atom IDs and
|
||||||
|
velocities and image flags. It uses the coords of each atom to assign
|
||||||
|
it as a new atom to the processor that owns it. This function is
|
||||||
|
useful to add atoms to a simulation or (in tandem with
|
||||||
|
lammps_reset_box()) to restore a previously extracted and saved state
|
||||||
|
of a simulation. Additional properties for the new atoms can then be
|
||||||
|
assigned via the lammps_scatter_atoms() or lammps_extract_atom()
|
||||||
|
functions.
|
||||||
|
|
||||||
|
The examples/COUPLE and python directories have example C++ and C and
|
||||||
|
Python codes which show how a driver code can link to LAMMPS as a
|
||||||
|
library, run LAMMPS on a subset of processors, grab data from LAMMPS,
|
||||||
|
change it, and put it back into LAMMPS.
|
||||||
|
|
||||||
|
NOTE: You can write code for additional functions as needed to define
|
||||||
|
how your code talks to LAMMPS and add them to src/library.cpp and
|
||||||
|
src/library.h, as well as to the "Python
|
||||||
|
interface"_Section_python.html. The added functions can access or
|
||||||
|
change any LAMMPS data you wish.
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
@ -2670,7 +2742,7 @@ production runs and is only required during equilibration. This way one
|
|||||||
is consistent with literature (based on the code packages DL_POLY or
|
is consistent with literature (based on the code packages DL_POLY or
|
||||||
GULP for instance).
|
GULP for instance).
|
||||||
|
|
||||||
The mentioned energy transfer will typically lead to a a small drift
|
The mentioned energy transfer will typically lead to a small drift
|
||||||
in total energy over time. This internal energy can be monitored
|
in total energy over time. This internal energy can be monitored
|
||||||
using the "compute chunk/atom"_compute_chunk_atom.html and "compute
|
using the "compute chunk/atom"_compute_chunk_atom.html and "compute
|
||||||
temp/chunk"_compute_temp_chunk.html commands. The internal kinetic
|
temp/chunk"_compute_temp_chunk.html commands. The internal kinetic
|
||||||
@ -2771,7 +2843,7 @@ temp/drude"_compute_temp_drude.html. This requires also to use the
|
|||||||
command {comm_modify vel yes}.
|
command {comm_modify vel yes}.
|
||||||
|
|
||||||
Short-range damping of the induced dipole interactions can be achieved
|
Short-range damping of the induced dipole interactions can be achieved
|
||||||
using Thole functions through the the "pair style
|
using Thole functions through the "pair style
|
||||||
thole"_pair_thole.html in "pair_style hybrid/overlay"_pair_hybrid.html
|
thole"_pair_thole.html in "pair_style hybrid/overlay"_pair_hybrid.html
|
||||||
with a Coulomb pair style. It may be useful to use {coul/long/cs} or
|
with a Coulomb pair style. It may be useful to use {coul/long/cs} or
|
||||||
similar from the CORESHELL package if the core and Drude particle come
|
similar from the CORESHELL package if the core and Drude particle come
|
||||||
|
|||||||
@ -366,11 +366,11 @@ complementary modeling tasks.
|
|||||||
"DL_POLY"_dlpoly
|
"DL_POLY"_dlpoly
|
||||||
"Tinker"_tinker :ul
|
"Tinker"_tinker :ul
|
||||||
|
|
||||||
:link(charmm,http://www.scripps.edu/brooks)
|
:link(charmm,http://www.charmm.org)
|
||||||
:link(amber,http://amber.scripps.edu)
|
:link(amber,http://ambermd.org)
|
||||||
:link(namd,http://www.ks.uiuc.edu/Research/namd/)
|
:link(namd,http://www.ks.uiuc.edu/Research/namd/)
|
||||||
:link(nwchem,http://www.emsl.pnl.gov/docs/nwchem/nwchem.html)
|
:link(nwchem,http://www.emsl.pnl.gov/docs/nwchem/nwchem.html)
|
||||||
:link(dlpoly,http://www.cse.clrc.ac.uk/msi/software/DL_POLY)
|
:link(dlpoly,http://www.ccp5.ac.uk/DL_POLY_CLASSIC)
|
||||||
:link(tinker,http://dasher.wustl.edu/tinker)
|
:link(tinker,http://dasher.wustl.edu/tinker)
|
||||||
|
|
||||||
CHARMM, AMBER, NAMD, NWCHEM, and Tinker are designed primarily for
|
CHARMM, AMBER, NAMD, NWCHEM, and Tinker are designed primarily for
|
||||||
|
|||||||
@ -1153,6 +1153,7 @@ Package, Description, Author(s), Doc page, Example, Pic/movie, Library
|
|||||||
"USER-MISC"_#USER-MISC, single-file contributions, USER-MISC/README, USER-MISC/README, -, -, -
|
"USER-MISC"_#USER-MISC, single-file contributions, USER-MISC/README, USER-MISC/README, -, -, -
|
||||||
"USER-MANIFOLD"_#USER-MANIFOLD, motion on 2d surface, Stefan Paquay (Eindhoven U of Technology), "fix manifoldforce"_fix_manifoldforce.html, USER/manifold, "manifold"_manifold, -
|
"USER-MANIFOLD"_#USER-MANIFOLD, motion on 2d surface, Stefan Paquay (Eindhoven U of Technology), "fix manifoldforce"_fix_manifoldforce.html, USER/manifold, "manifold"_manifold, -
|
||||||
"USER-MOLFILE"_#USER-MOLFILE, "VMD"_VMD molfile plug-ins, Axel Kohlmeyer (Temple U), "dump molfile"_dump_molfile.html, -, -, VMD-MOLFILE
|
"USER-MOLFILE"_#USER-MOLFILE, "VMD"_VMD molfile plug-ins, Axel Kohlmeyer (Temple U), "dump molfile"_dump_molfile.html, -, -, VMD-MOLFILE
|
||||||
|
"USER-NC-DUMP"_#USER-NC-DUMP, dump output via NetCDF, Lars Pastewka (Karlsruhe Institute of Technology, KIT), "dump nc, dump nc/mpiio"_dump_nc.html, -, -, lib/netcdf
|
||||||
"USER-OMP"_#USER-OMP, OpenMP threaded styles, Axel Kohlmeyer (Temple U), "Section 5.3.4"_accelerate_omp.html, -, -, -
|
"USER-OMP"_#USER-OMP, OpenMP threaded styles, Axel Kohlmeyer (Temple U), "Section 5.3.4"_accelerate_omp.html, -, -, -
|
||||||
"USER-PHONON"_#USER-PHONON, phonon dynamical matrix, Ling-Ti Kong (Shanghai Jiao Tong U), "fix phonon"_fix_phonon.html, USER/phonon, -, -
|
"USER-PHONON"_#USER-PHONON, phonon dynamical matrix, Ling-Ti Kong (Shanghai Jiao Tong U), "fix phonon"_fix_phonon.html, USER/phonon, -, -
|
||||||
"USER-QMMM"_#USER-QMMM, QM/MM coupling, Axel Kohlmeyer (Temple U), "fix qmmm"_fix_qmmm.html, USER/qmmm, -, lib/qmmm
|
"USER-QMMM"_#USER-QMMM, QM/MM coupling, Axel Kohlmeyer (Temple U), "fix qmmm"_fix_qmmm.html, USER/qmmm, -, lib/qmmm
|
||||||
@ -1598,6 +1599,29 @@ The person who created this package is Axel Kohlmeyer at Temple U
|
|||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
|
USER-NC-DUMP package :link(USER-NC-DUMP),h5
|
||||||
|
|
||||||
|
Contents: Dump styles for writing NetCDF format files. NetCDF is a binary,
|
||||||
|
portable, self-describing file format on top of HDF5. The file format
|
||||||
|
contents follow the AMBER NetCDF trajectory conventions
|
||||||
|
(http://ambermd.org/netcdf/nctraj.xhtml), but include extensions to this
|
||||||
|
convention. This package implements a "dump nc"_dump_nc.html command
|
||||||
|
and a "dump nc/mpiio"_dump_nc.html command to output LAMMPS snapshots
|
||||||
|
in this format. See src/USER-NC-DUMP/README for more details.
|
||||||
|
|
||||||
|
NetCDF files can be directly visualized with the following tools:
|
||||||
|
Ovito (http://www.ovito.org/). Ovito supports the AMBER convention
|
||||||
|
and all of the above extensions. :ulb,l
|
||||||
|
VMD (http://www.ks.uiuc.edu/Research/vmd/) :l
|
||||||
|
AtomEye (http://www.libatoms.org/). The libAtoms version of AtomEye contains
|
||||||
|
a NetCDF reader that is not present in the standard distribution of AtomEye :l,ule
|
||||||
|
|
||||||
|
The person who created these files is Lars Pastewka at
|
||||||
|
Karlsruhe Institute of Technology (lars.pastewka at kit.edu).
|
||||||
|
Contact him directly if you have questions.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
USER-OMP package :link(USER-OMP),h5
|
USER-OMP package :link(USER-OMP),h5
|
||||||
|
|
||||||
Supporting info:
|
Supporting info:
|
||||||
|
|||||||
@ -8,19 +8,26 @@
|
|||||||
|
|
||||||
11. Python interface to LAMMPS :h3
|
11. Python interface to LAMMPS :h3
|
||||||
|
|
||||||
LAMMPS can work together with Python in two ways. First, Python can
|
LAMMPS can work together with Python in three ways. First, Python can
|
||||||
wrap LAMMPS through the "LAMMPS library
|
wrap LAMMPS through the "LAMMPS library
|
||||||
interface"_Section_howto.html#howto_19, so that a Python script can
|
interface"_Section_howto.html#howto_19, so that a Python script can
|
||||||
create one or more instances of LAMMPS and launch one or more
|
create one or more instances of LAMMPS and launch one or more
|
||||||
simulations. In Python lingo, this is "extending" Python with LAMMPS.
|
simulations. In Python lingo, this is "extending" Python with LAMMPS.
|
||||||
|
|
||||||
Second, LAMMPS can use the Python interpreter, so that a LAMMPS input
|
Second, the low-level Python interface can be used indirectly through the
|
||||||
|
PyLammps and IPyLammps wrapper classes in Python. These wrappers try to
|
||||||
|
simplify the usage of LAMMPS in Python by providing an object-based interface
|
||||||
|
to common LAMMPS functionality. It also reduces the amount of code necessary to
|
||||||
|
parameterize LAMMPS scripts through Python and makes variables and computes
|
||||||
|
directly accessible. See "PyLammps interface"_#py_9 for more details.
|
||||||
|
|
||||||
|
Third, LAMMPS can use the Python interpreter, so that a LAMMPS input
|
||||||
script can invoke Python code, and pass information back-and-forth
|
script can invoke Python code, and pass information back-and-forth
|
||||||
between the input script and Python functions you write. The Python
|
between the input script and Python functions you write. The Python
|
||||||
code can also callback to LAMMPS to query or change its attributes.
|
code can also callback to LAMMPS to query or change its attributes.
|
||||||
In Python lingo, this is "embedding" Python in LAMMPS.
|
In Python lingo, this is "embedding" Python in LAMMPS.
|
||||||
|
|
||||||
This section describes how to do both.
|
This section describes how to use these three approaches.
|
||||||
|
|
||||||
11.1 "Overview of running LAMMPS from Python"_#py_1
|
11.1 "Overview of running LAMMPS from Python"_#py_1
|
||||||
11.2 "Overview of using Python from a LAMMPS script"_#py_2
|
11.2 "Overview of using Python from a LAMMPS script"_#py_2
|
||||||
@ -29,7 +36,8 @@ This section describes how to do both.
|
|||||||
11.5 "Extending Python with MPI to run in parallel"_#py_5
|
11.5 "Extending Python with MPI to run in parallel"_#py_5
|
||||||
11.6 "Testing the Python-LAMMPS interface"_#py_6
|
11.6 "Testing the Python-LAMMPS interface"_#py_6
|
||||||
11.7 "Using LAMMPS from Python"_#py_7
|
11.7 "Using LAMMPS from Python"_#py_7
|
||||||
11.8 "Example Python scripts that use LAMMPS"_#py_8 :ul
|
11.8 "Example Python scripts that use LAMMPS"_#py_8
|
||||||
|
11.9 "PyLammps interface"_#py_9 :ul
|
||||||
|
|
||||||
If you are not familiar with it, "Python"_http://www.python.org is a
|
If you are not familiar with it, "Python"_http://www.python.org is a
|
||||||
powerful scripting and programming language which can essentially do
|
powerful scripting and programming language which can essentially do
|
||||||
@ -534,10 +542,11 @@ from lammps import lammps :pre
|
|||||||
These are the methods defined by the lammps module. If you look at
|
These are the methods defined by the lammps module. If you look at
|
||||||
the files src/library.cpp and src/library.h you will see that they
|
the files src/library.cpp and src/library.h you will see that they
|
||||||
correspond one-to-one with calls you can make to the LAMMPS library
|
correspond one-to-one with calls you can make to the LAMMPS library
|
||||||
from a C++ or C or Fortran program.
|
from a C++ or C or Fortran program, and which are described in
|
||||||
|
"Section 6.19"_Section_howto.html#howto_19 of the manual.
|
||||||
|
|
||||||
lmp = lammps() # create a LAMMPS object using the default liblammps.so library
|
lmp = lammps() # create a LAMMPS object using the default liblammps.so library
|
||||||
4 optional args are allowed: name, cmdargs, ptr, comm
|
# 4 optional args are allowed: name, cmdargs, ptr, comm
|
||||||
lmp = lammps(ptr=lmpptr) # use lmpptr as previously created LAMMPS object
|
lmp = lammps(ptr=lmpptr) # use lmpptr as previously created LAMMPS object
|
||||||
lmp = lammps(comm=split) # create a LAMMPS object with a custom communicator, requires mpi4py 2.0.0 or later
|
lmp = lammps(comm=split) # create a LAMMPS object with a custom communicator, requires mpi4py 2.0.0 or later
|
||||||
lmp = lammps(name="g++") # create a LAMMPS object using the liblammps_g++.so library
|
lmp = lammps(name="g++") # create a LAMMPS object using the liblammps_g++.so library
|
||||||
@ -549,6 +558,8 @@ version = lmp.version() # return the numerical version id, e.g. LAMMPS 2 Sep 20
|
|||||||
|
|
||||||
lmp.file(file) # run an entire input script, file = "in.lj"
|
lmp.file(file) # run an entire input script, file = "in.lj"
|
||||||
lmp.command(cmd) # invoke a single LAMMPS command, cmd = "run 100" :pre
|
lmp.command(cmd) # invoke a single LAMMPS command, cmd = "run 100" :pre
|
||||||
|
lmp.commands_list(cmdlist) # invoke commands in cmdlist = ["run 10", "run 20"]
|
||||||
|
lmp.commands_string(multicmd) # invoke commands in multicmd = "run 10\nrun 20"
|
||||||
|
|
||||||
xlo = lmp.extract_global(name,type) # extract a global quantity
|
xlo = lmp.extract_global(name,type) # extract a global quantity
|
||||||
# name = "boxxlo", "nlocal", etc
|
# name = "boxxlo", "nlocal", etc
|
||||||
@ -580,6 +591,8 @@ var = lmp.extract_variable(name,group,flag) # extract value(s) from a variable
|
|||||||
# 1 = atom-style variable :pre
|
# 1 = atom-style variable :pre
|
||||||
|
|
||||||
flag = lmp.set_variable(name,value) # set existing named string-style variable to value, flag = 0 if successful
|
flag = lmp.set_variable(name,value) # set existing named string-style variable to value, flag = 0 if successful
|
||||||
|
value = lmp.get_thermo(name) # return current value of a thermo keyword
|
||||||
|
|
||||||
natoms = lmp.get_natoms() # total # of atoms as int
|
natoms = lmp.get_natoms() # total # of atoms as int
|
||||||
data = lmp.gather_atoms(name,type,count) # return atom attribute of all atoms gathered into data, ordered by atom ID
|
data = lmp.gather_atoms(name,type,count) # return atom attribute of all atoms gathered into data, ordered by atom ID
|
||||||
# name = "x", "charge", "type", etc
|
# name = "x", "charge", "type", etc
|
||||||
@ -599,9 +612,10 @@ create an instance of LAMMPS, wrapped in a Python class by the lammps
|
|||||||
Python module, and return an instance of the Python class as lmp. It
|
Python module, and return an instance of the Python class as lmp. It
|
||||||
is used to make all subequent calls to the LAMMPS library.
|
is used to make all subequent calls to the LAMMPS library.
|
||||||
|
|
||||||
Additional arguments can be used to tell Python the name of the shared
|
Additional arguments to lammps() can be used to tell Python the name
|
||||||
library to load or to pass arguments to the LAMMPS instance, the same
|
of the shared library to load or to pass arguments to the LAMMPS
|
||||||
as if LAMMPS were launched from a command-line prompt.
|
instance, the same as if LAMMPS were launched from a command-line
|
||||||
|
prompt.
|
||||||
|
|
||||||
If the ptr argument is set like this:
|
If the ptr argument is set like this:
|
||||||
|
|
||||||
@ -626,8 +640,9 @@ lmp2 = lammps()
|
|||||||
lmp1.file("in.file1")
|
lmp1.file("in.file1")
|
||||||
lmp2.file("in.file2") :pre
|
lmp2.file("in.file2") :pre
|
||||||
|
|
||||||
The file() and command() methods allow an input script or single
|
The file(), command(), commands_list(), commands_string() methods
|
||||||
commands to be invoked.
|
allow an input script, a single command, or multiple commands to be
|
||||||
|
invoked.
|
||||||
|
|
||||||
The extract_global(), extract_atom(), extract_compute(),
|
The extract_global(), extract_atom(), extract_compute(),
|
||||||
extract_fix(), and extract_variable() methods return values or
|
extract_fix(), and extract_variable() methods return values or
|
||||||
@ -817,3 +832,7 @@ different visualization package options. Click to see larger images:
|
|||||||
:image(JPG/screenshot_atomeye_small.jpg,JPG/screenshot_atomeye.jpg)
|
:image(JPG/screenshot_atomeye_small.jpg,JPG/screenshot_atomeye.jpg)
|
||||||
:image(JPG/screenshot_pymol_small.jpg,JPG/screenshot_pymol.jpg)
|
:image(JPG/screenshot_pymol_small.jpg,JPG/screenshot_pymol.jpg)
|
||||||
:image(JPG/screenshot_vmd_small.jpg,JPG/screenshot_vmd.jpg)
|
:image(JPG/screenshot_vmd_small.jpg,JPG/screenshot_vmd.jpg)
|
||||||
|
|
||||||
|
11.9 PyLammps interface :link(py_9),h4
|
||||||
|
|
||||||
|
Please see the "PyLammps Tutorial"_tutorial_pylammps.html.
|
||||||
|
|||||||
@ -706,7 +706,7 @@ future changes to LAMMPS.
|
|||||||
User packages, such as user-atc or user-omp, have been contributed by
|
User packages, such as user-atc or user-omp, have been contributed by
|
||||||
users, and always begin with the user prefix. If they are a single
|
users, and always begin with the user prefix. If they are a single
|
||||||
command (single file), they are typically in the user-misc package.
|
command (single file), they are typically in the user-misc package.
|
||||||
Otherwise, they are a a set of files grouped together which add a
|
Otherwise, they are a set of files grouped together which add a
|
||||||
specific functionality to the code.
|
specific functionality to the code.
|
||||||
|
|
||||||
User packages don't necessarily meet the requirements of the standard
|
User packages don't necessarily meet the requirements of the standard
|
||||||
@ -1601,9 +1601,9 @@ implementations, either by environment variables that specify how to
|
|||||||
order physical processors, or by config files that specify what
|
order physical processors, or by config files that specify what
|
||||||
physical processors to assign to each MPI rank. The -reorder switch
|
physical processors to assign to each MPI rank. The -reorder switch
|
||||||
simply gives you a portable way to do this without relying on MPI
|
simply gives you a portable way to do this without relying on MPI
|
||||||
itself. See the "processors out"_processors command for how to output
|
itself. See the "processors out"_processors.html command for how
|
||||||
info on the final assignment of physical processors to the LAMMPS
|
to output info on the final assignment of physical processors to
|
||||||
simulation domain.
|
the LAMMPS simulation domain.
|
||||||
|
|
||||||
-screen file :pre
|
-screen file :pre
|
||||||
|
|
||||||
|
|||||||
@ -151,7 +151,7 @@ can start running so that the CPU pipeline is still being used
|
|||||||
efficiently. Although benefits can be seen by launching a MPI task
|
efficiently. Although benefits can be seen by launching a MPI task
|
||||||
for every hardware thread, for multinode simulations, we recommend
|
for every hardware thread, for multinode simulations, we recommend
|
||||||
that OpenMP threads are used for SMT instead, either with the
|
that OpenMP threads are used for SMT instead, either with the
|
||||||
USER-INTEL package, "USER-OMP package"_accelerate_omp.html", or
|
USER-INTEL package, "USER-OMP package"_accelerate_omp.html, or
|
||||||
"KOKKOS package"_accelerate_kokkos.html. In the example above, up
|
"KOKKOS package"_accelerate_kokkos.html. In the example above, up
|
||||||
to 36X speedups can be observed by using all 36 physical cores with
|
to 36X speedups can be observed by using all 36 physical cores with
|
||||||
LAMMPS. By using all 72 hardware threads, an additional 10-30%
|
LAMMPS. By using all 72 hardware threads, an additional 10-30%
|
||||||
@ -343,7 +343,7 @@ when using offload.
|
|||||||
|
|
||||||
Not all styles are supported in the USER-INTEL package. You can mix
|
Not all styles are supported in the USER-INTEL package. You can mix
|
||||||
the USER-INTEL package with styles from the "OPT"_accelerate_opt.html
|
the USER-INTEL package with styles from the "OPT"_accelerate_opt.html
|
||||||
package or the "USER-OMP package"_accelerate_omp.html". Of course,
|
package or the "USER-OMP package"_accelerate_omp.html. Of course,
|
||||||
this requires that these packages were installed at build time. This
|
this requires that these packages were installed at build time. This
|
||||||
can performed automatically by using "-sf hybrid intel opt" or
|
can performed automatically by using "-sf hybrid intel opt" or
|
||||||
"-sf hybrid intel omp" command-line options. Alternatively, the "opt"
|
"-sf hybrid intel omp" command-line options. Alternatively, the "opt"
|
||||||
|
|||||||
@ -74,7 +74,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -61,7 +61,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -66,7 +66,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -74,7 +74,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -66,7 +66,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -65,11 +65,11 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
[Restrictions:] none
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making LAMMPS"_Section_start.html#start_3
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|
||||||
|
|||||||
@ -76,7 +76,7 @@ for specific angle types.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
Unlike other angle styles, the hybrid angle style does not store angle
|
Unlike other angle styles, the hybrid angle style does not store angle
|
||||||
|
|||||||
@ -147,7 +147,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This angle style can only be used if LAMMPS was built with the
|
This angle style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -166,7 +166,7 @@ stores a per-particle mass and size and orientation (i.e. the corner
|
|||||||
points of the triangle).
|
points of the triangle).
|
||||||
|
|
||||||
The {template} style allows molecular topolgy (bonds,angles,etc) to be
|
The {template} style allows molecular topolgy (bonds,angles,etc) to be
|
||||||
defined via a molecule template using the "molecule"_molecule.txt
|
defined via a molecule template using the "molecule"_molecule.html
|
||||||
command. The template stores one or more molecules with a single copy
|
command. The template stores one or more molecules with a single copy
|
||||||
of the topology info (bonds,angles,etc) of each. Individual atoms
|
of the topology info (bonds,angles,etc) of each. Individual atoms
|
||||||
only store a template index and template atom to identify which
|
only store a template index and template atom to identify which
|
||||||
|
|||||||
@ -70,10 +70,10 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
You typically should specify "special_bonds fene"_special_bonds.html"
|
You typically should specify "special_bonds fene"_special_bonds.html
|
||||||
or "special_bonds lj/coul 0 1 1"_special_bonds.html to use this bond
|
or "special_bonds lj/coul 0 1 1"_special_bonds.html to use this bond
|
||||||
style. LAMMPS will issue a warning it that's not the case.
|
style. LAMMPS will issue a warning it that's not the case.
|
||||||
|
|
||||||
|
|||||||
@ -73,10 +73,10 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
You typically should specify "special_bonds fene"_special_bonds.html"
|
You typically should specify "special_bonds fene"_special_bonds.html
|
||||||
or "special_bonds lj/coul 0 1 1"_special_bonds.html to use this bond
|
or "special_bonds lj/coul 0 1 1"_special_bonds.html to use this bond
|
||||||
style. LAMMPS will issue a warning it that's not the case.
|
style. LAMMPS will issue a warning it that's not the case.
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -59,7 +59,7 @@ bond types.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
Unlike other bond styles, the hybrid bond style does not store bond
|
Unlike other bond styles, the hybrid bond style does not store bond
|
||||||
|
|||||||
@ -64,7 +64,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -64,7 +64,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -99,7 +99,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
The {quartic} style requires that "special_bonds"_special_bonds.html
|
The {quartic} style requires that "special_bonds"_special_bonds.html
|
||||||
|
|||||||
@ -144,7 +144,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This bond style can only be used if LAMMPS was built with the
|
This bond style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -51,12 +51,12 @@ relative to the center of mass (COM) velocity of the 2 atoms in the
|
|||||||
bond.
|
bond.
|
||||||
|
|
||||||
The value {engvib} is the vibrational kinetic energy of the two atoms
|
The value {engvib} is the vibrational kinetic energy of the two atoms
|
||||||
in the bond, which is simply 1/2 m1 v1^2 + 1/2 m1 v2^2, where v1 and
|
in the bond, which is simply 1/2 m1 v1^2 + 1/2 m2 v2^2, where v1 and
|
||||||
v2 are the magnitude of the velocity of the 2 atoms along the bond
|
v2 are the magnitude of the velocity of the 2 atoms along the bond
|
||||||
direction, after the COM velocity has been subtracted from each.
|
direction, after the COM velocity has been subtracted from each.
|
||||||
|
|
||||||
The value {engrot} is the rotationsl kinetic energy of the two atoms
|
The value {engrot} is the rotationsl kinetic energy of the two atoms
|
||||||
in the bond, which is simply 1/2 m1 v1^2 + 1/2 m1 v2^2, where v1 and
|
in the bond, which is simply 1/2 m1 v1^2 + 1/2 m2 v2^2, where v1 and
|
||||||
v2 are the magnitude of the velocity of the 2 atoms perpendicular to
|
v2 are the magnitude of the velocity of the 2 atoms perpendicular to
|
||||||
the bond direction, after the COM velocity has been subtracted from
|
the bond direction, after the COM velocity has been subtracted from
|
||||||
each.
|
each.
|
||||||
@ -67,7 +67,7 @@ Vcm^2 where Vcm = magnitude of the velocity of the COM.
|
|||||||
|
|
||||||
Note that these 3 kinetic energy terms are simply a partitioning of
|
Note that these 3 kinetic energy terms are simply a partitioning of
|
||||||
the summed kinetic energy of the 2 atoms themselves. I.e. total KE =
|
the summed kinetic energy of the 2 atoms themselves. I.e. total KE =
|
||||||
1/2 m1 v1^2 + 1/2 m2 v3^2 = engvib + engrot + engtrans, where v1,v2
|
1/2 m1 v1^2 + 1/2 m2 v2^2 = engvib + engrot + engtrans, where v1,v2
|
||||||
are the magnitude of the velocities of the 2 atoms, without any
|
are the magnitude of the velocities of the 2 atoms, without any
|
||||||
adjustment for the COM velocity.
|
adjustment for the COM velocity.
|
||||||
|
|
||||||
|
|||||||
@ -114,7 +114,7 @@ local defects surrounding the central atom, as described above. For
|
|||||||
the {axes yes} case, the vector components are also unitless, since
|
the {axes yes} case, the vector components are also unitless, since
|
||||||
they represent spatial directions.
|
they represent spatial directions.
|
||||||
|
|
||||||
Here are typical centro-symmetry values, from a a nanoindentation
|
Here are typical centro-symmetry values, from a nanoindentation
|
||||||
simulation into gold (FCC). These were provided by Jon Zimmerman
|
simulation into gold (FCC). These were provided by Jon Zimmerman
|
||||||
(Sandia):
|
(Sandia):
|
||||||
|
|
||||||
|
|||||||
@ -536,7 +536,7 @@ For the {bin/cylinder} style the details are as follows. If {discard}
|
|||||||
is set to {yes}, an out-of-domain atom will have its chunk ID set to
|
is set to {yes}, an out-of-domain atom will have its chunk ID set to
|
||||||
0. If {discard} is set to {no}, the atom will have its chunk ID set
|
0. If {discard} is set to {no}, the atom will have its chunk ID set
|
||||||
to the first or last bin in both the radial and axis dimensions. If
|
to the first or last bin in both the radial and axis dimensions. If
|
||||||
{discard} is set to {mixed}, which is the default, the the radial
|
{discard} is set to {mixed}, which is the default, the radial
|
||||||
dimension is treated the same as for {discard} = no. But for the axis
|
dimension is treated the same as for {discard} = no. But for the axis
|
||||||
dimensinon, it will only have its chunk ID set to the first or last
|
dimensinon, it will only have its chunk ID set to the first or last
|
||||||
bin if bins extend to the simulation box boundary in the axis
|
bin if bins extend to the simulation box boundary in the axis
|
||||||
@ -641,7 +641,8 @@ the restarted simulation begins.
|
|||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|
||||||
"fix ave/chunk"_fix_ave_chunk.html
|
"fix ave/chunk"_fix_ave_chunk.html,
|
||||||
|
"compute global/atom"_compute_global_atom.html
|
||||||
|
|
||||||
[Default:]
|
[Default:]
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@ The neighbor list needed to compute this quantity is constructed each
|
|||||||
time the calculation is performed (i.e. each time a snapshot of atoms
|
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
|
is dumped). Thus it can be inefficient to compute/dump this quantity
|
||||||
too frequently or to have multiple compute/dump commands, each of a
|
too frequently or to have multiple compute/dump commands, each of a
|
||||||
{clsuter/atom} style.
|
{cluster/atom} style.
|
||||||
|
|
||||||
NOTE: If you have a bonded system, then the settings of
|
NOTE: If you have a bonded system, then the settings of
|
||||||
"special_bonds"_special_bonds.html command can remove pairwise
|
"special_bonds"_special_bonds.html command can remove pairwise
|
||||||
|
|||||||
@ -236,7 +236,7 @@ LAMMPS"_Section_start.html#start_3 section for more info.
|
|||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|
||||||
"fix adapt/fep"_fix_adapt_fep.html, "fix ave/time"_fix_ave_time.html,
|
"fix adapt/fep"_fix_adapt_fep.html, "fix ave/time"_fix_ave_time.html,
|
||||||
"pair_lj_soft_coul_soft"_pair_lj_soft_coul_soft.txt
|
"pair_style lj/soft/coul/soft"_pair_lj_soft.html
|
||||||
|
|
||||||
[Default:]
|
[Default:]
|
||||||
|
|
||||||
|
|||||||
220
doc/src/compute_global_atom.txt
Normal file
@ -0,0 +1,220 @@
|
|||||||
|
"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 global/atom command :h3
|
||||||
|
|
||||||
|
[Syntax:]
|
||||||
|
|
||||||
|
compute ID group-ID style index input1 input2 ... :pre
|
||||||
|
|
||||||
|
ID, group-ID are documented in "compute"_compute.html command :ulb,l
|
||||||
|
global/atom = style name of this compute command :l
|
||||||
|
index = c_ID, c_ID\[N\], f_ID, f_ID\[N\], v_name :l
|
||||||
|
c_ID = per-atom vector calculated by a compute with ID
|
||||||
|
c_ID\[I\] = Ith column of per-atom array calculated by a compute with ID
|
||||||
|
f_ID = per-atom vector calculated by a fix with ID
|
||||||
|
f_ID\[I\] = Ith column of per-atom array calculated by a fix with ID
|
||||||
|
v_name = per-atom vector calculated by an atom-style variable with name :pre
|
||||||
|
one or more inputs can be listed :l
|
||||||
|
input = c_ID, c_ID\[N\], f_ID, f_ID\[N\], v_name :l
|
||||||
|
c_ID = global vector calculated by a compute with ID
|
||||||
|
c_ID\[I\] = Ith column of global array calculated by a compute with ID, I can include wildcard (see below)
|
||||||
|
f_ID = global vector calculated by a fix with ID
|
||||||
|
f_ID\[I\] = Ith column of global array calculated by a fix with ID, I can include wildcard (see below)
|
||||||
|
v_name = global vector calculated by a vector-style variable with name :pre
|
||||||
|
:ule
|
||||||
|
|
||||||
|
[Examples:]
|
||||||
|
|
||||||
|
compute 1 all global/atom c_chunk c_com\[1\\] c_com\[2\\] c_com\[3\\]
|
||||||
|
compute 1 all global/atom c_chunk c_com\[*\\] :pre
|
||||||
|
|
||||||
|
[Description:]
|
||||||
|
|
||||||
|
Define a calculation that assigns global values to each atom from
|
||||||
|
vectors or arrays of global values. The specified {index} parameter
|
||||||
|
is used to determine which global value is assigned to each atom.
|
||||||
|
|
||||||
|
The {index} parameter must reference a per-atom vector or array from a
|
||||||
|
"compute"_compute.html or "fix"_fix.html or the evaluation of an
|
||||||
|
atom-style "variable"_variable.html. Each {input} value must
|
||||||
|
reference a global vector or array from a "compute"_compute.html or
|
||||||
|
"fix"_fix.html or the evaluation of an vector-style
|
||||||
|
"variable"_variable.html. Details are given below.
|
||||||
|
|
||||||
|
The {index} value for an atom is used as a index I (from 1 to N) into
|
||||||
|
the vector associated with each of the input values. The Ith value
|
||||||
|
from the input vector becomes one output value for that atom. If the
|
||||||
|
atom is not in the specified group, or the index I < 1 or I > M, where
|
||||||
|
M is the actual length of the input vector, then an output value of
|
||||||
|
0.0 is assigned to the atom.
|
||||||
|
|
||||||
|
An example of how this command is useful, is in the context of
|
||||||
|
"chunks" which are static or dyanmic subsets of atoms. The "compute
|
||||||
|
chunk/atom"_compute_chunk_atom.html command assigns unique chunk IDs
|
||||||
|
to each atom. It's output can be used as the {index} parameter for
|
||||||
|
this command. Various other computes with "chunk" in their style
|
||||||
|
name, such as "compute com/chunk"_compute_com_chunk.html or "compute
|
||||||
|
msd/chunk"_compute_msd_chunk.html, calculate properties for each
|
||||||
|
chunk. The output of these commands are global vectors or arrays,
|
||||||
|
with one or more values per chunk, and can be used as input values for
|
||||||
|
this command. This command will then assign the global chunk value to
|
||||||
|
each atom in the chunk, producing a per-atom vector or per-atom array
|
||||||
|
as output. The per-atom values can then be output to a dump file or
|
||||||
|
used by any command that uses per-atom values from a compute as input,
|
||||||
|
as discussed in "Section 6.15"_Section_howto.html#howto_15.
|
||||||
|
|
||||||
|
As a concrete example, these commands will calculate the displacement
|
||||||
|
of each atom from the center-of-mass of the molecule it is in, and
|
||||||
|
dump those values to a dump file. In this case, each molecule is a
|
||||||
|
chunk.
|
||||||
|
|
||||||
|
compute cc1 all chunk/atom molecule
|
||||||
|
compute myChunk all com/chunk cc1
|
||||||
|
compute prop all property/atom xu yu zu
|
||||||
|
compute glob all global/atom c_cc1 c_myChunk\[*\]
|
||||||
|
variable dx atom c_prop\[1\]-c_glob\[1\]
|
||||||
|
variable dy atom c_prop\[2\]-c_glob\[2\]
|
||||||
|
variable dz atom c_prop\[3\]-c_glob\[3\]
|
||||||
|
variable dist atom sqrt(v_dx*v_dx+v_dy*v_dy+v_dz*v_dz)
|
||||||
|
dump 1 all custom 100 tmp.dump id xu yu zu c_glob\[1\] c_glob\[2\] c_glob\[3\] &
|
||||||
|
v_dx v_dy v_dz v_dist
|
||||||
|
dump_modify 1 sort id :pre
|
||||||
|
|
||||||
|
You can add these commands to the bench/in.chain script to see how
|
||||||
|
they work.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
Note that for input values from a compute or fix, the bracketed index
|
||||||
|
I can be specified using a wildcard asterisk with the index to
|
||||||
|
effectively specify multiple values. This takes the form "*" or "*n"
|
||||||
|
or "n*" or "m*n". If N = the size of the vector (for {mode} = scalar)
|
||||||
|
or the number of columns in the array (for {mode} = vector), then an
|
||||||
|
asterisk with no numeric values means all indices from 1 to N. A
|
||||||
|
leading asterisk means all indices from 1 to n (inclusive). A
|
||||||
|
trailing asterisk means all indices from n to N (inclusive). A middle
|
||||||
|
asterisk means all indices from m to n (inclusive).
|
||||||
|
|
||||||
|
Using a wildcard is the same as if the individual columns of the array
|
||||||
|
had been listed one by one. E.g. these 2 compute global/atom commands
|
||||||
|
are equivalent, since the "compute com/chunk"_compute_com_chunk.html
|
||||||
|
command creates a global array with 3 columns:
|
||||||
|
|
||||||
|
compute cc1 all chunk/atom molecule
|
||||||
|
compute com all com/chunk cc1
|
||||||
|
compute 1 all global/atom c_cc1 c_com\[1\] c_com\[2\] c_com\[3\]
|
||||||
|
compute 1 all global/atom c_cc1 c_com\[*\] :pre
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
This section explains the {index} parameter. Note that it must
|
||||||
|
reference per-atom values, as contrasted with the {input} values which
|
||||||
|
must reference global values.
|
||||||
|
|
||||||
|
Note that all of these options generate floating point values. When
|
||||||
|
they are used as an index into the specified input vectors, they
|
||||||
|
simple rounded down to convert the value to integer indices. The
|
||||||
|
final values should range from 1 to N (inclusive), since they are used
|
||||||
|
to access values from N-length vectors.
|
||||||
|
|
||||||
|
If {index} begins with "c_", a compute ID must follow which has been
|
||||||
|
previously defined in the input script. The compute must generate
|
||||||
|
per-atom quantities. See the individual "compute"_compute.html doc
|
||||||
|
page for details. If no bracketed integer is appended, the per-atom
|
||||||
|
vector calculated by the compute is used. If a bracketed integer is
|
||||||
|
appended, the Ith column of the per-atom array calculated by the
|
||||||
|
compute is used. Users can also write code for their own compute
|
||||||
|
styles and "add them to LAMMPS"_Section_modify.html. See the
|
||||||
|
discussion above for how I can be specified with a wildcard asterisk
|
||||||
|
to effectively specify multiple values.
|
||||||
|
|
||||||
|
If {index} begins with "f_", a fix ID must follow which has been
|
||||||
|
previously defined in the input script. The Fix must generate
|
||||||
|
per-atom quantities. See the individual "fix"_fix.html doc page for
|
||||||
|
details. Note that some fixes only produce their values on certain
|
||||||
|
timesteps, which must be compatible with when compute global/atom
|
||||||
|
references the values, else an error results. If no bracketed integer
|
||||||
|
is appended, the per-atom vector calculated by the fix is used. If a
|
||||||
|
bracketed integer is appended, the Ith column of the per-atom array
|
||||||
|
calculated by the fix is used. Users can also write code for their
|
||||||
|
own fix style and "add them to LAMMPS"_Section_modify.html. See the
|
||||||
|
discussion above for how I can be specified with a wildcard asterisk
|
||||||
|
to effectively specify multiple values.
|
||||||
|
|
||||||
|
If {index} begins with "v_", a variable name must follow which has
|
||||||
|
been previously defined in the input script. It must be an
|
||||||
|
"atom-style variable"_variable.html. Atom-style variables can
|
||||||
|
reference thermodynamic keywords and various per-atom attributes, or
|
||||||
|
invoke other computes, fixes, or variables when they are evaluated, so
|
||||||
|
this is a very general means of generating per-atom quantities to use
|
||||||
|
as {index}.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
This section explains the kinds of {input} values that can be used.
|
||||||
|
Note that inputs reference global values, as contrasted with the
|
||||||
|
{index} parameter which must reference per-atom values.
|
||||||
|
|
||||||
|
If a value begins with "c_", a compute ID must follow which has been
|
||||||
|
previously defined in the input script. The compute must generate a
|
||||||
|
global vector or array. See the individual "compute"_compute.html doc
|
||||||
|
page for details. If no bracketed integer is appended, the vector
|
||||||
|
calculated by the compute is used. If a bracketed integer is
|
||||||
|
appended, the Ith column of the array calculated by the compute is
|
||||||
|
used. Users can also write code for their own compute styles and "add
|
||||||
|
them to LAMMPS"_Section_modify.html. See the discussion above for how
|
||||||
|
I can be specified with a wildcard asterisk to effectively specify
|
||||||
|
multiple values.
|
||||||
|
|
||||||
|
If a value begins with "f_", a fix ID must follow which has been
|
||||||
|
previously defined in the input script. The fix must generate a
|
||||||
|
global vector or array. See the individual "fix"_fix.html doc page
|
||||||
|
for details. Note that some fixes only produce their values on
|
||||||
|
certain timesteps, which must be compatible with when compute
|
||||||
|
global/atom references the values, else an error results. If no
|
||||||
|
bracketed integer is appended, the vector calculated by the fix is
|
||||||
|
used. If a bracketed integer is appended, the Ith column of the array
|
||||||
|
calculated by the fix is used. Users can also write code for their
|
||||||
|
own fix style and "add them to LAMMPS"_Section_modify.html. See the
|
||||||
|
discussion above for how I can be specified with a wildcard asterisk
|
||||||
|
to effectively specify multiple values.
|
||||||
|
|
||||||
|
If a value begins with "v_", a variable name must follow which has
|
||||||
|
been previously defined in the input script. It must be a
|
||||||
|
"vector-style variable"_variable.html. Vector-style variables can
|
||||||
|
reference thermodynamic keywords and various other attributes of
|
||||||
|
atoms, or invoke other computes, fixes, or variables when they are
|
||||||
|
evaluated, so this is a very general means of generating a vector of
|
||||||
|
global quantities which the {index} parameter will reference for
|
||||||
|
assignement of global values to atoms.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
[Output info:]
|
||||||
|
|
||||||
|
If a single input is specified this compute produces a per-atom
|
||||||
|
vector. If multiple inputs are specified, this compute produces a
|
||||||
|
per-atom array values, where the number of columns is equal to the
|
||||||
|
number of inputs specified. These values can be used by any command
|
||||||
|
that uses per-atom vector or array values from a compute as input.
|
||||||
|
See "Section 6.15"_Section_howto.html#howto_15 for an overview of
|
||||||
|
LAMMPS output options.
|
||||||
|
|
||||||
|
The per-atom vector or array values will be in whatever units the
|
||||||
|
corresponsing input values are in.
|
||||||
|
|
||||||
|
[Restrictions:] none
|
||||||
|
|
||||||
|
[Related commands:]
|
||||||
|
|
||||||
|
"compute"_compute.html, "fix"_fix.html, "variable"_variable.html,
|
||||||
|
"compute chunk/atom"_compute_chunk_atom.html, "compute
|
||||||
|
reduce"_compute_reduce.html
|
||||||
|
|
||||||
|
[Default:] none
|
||||||
@ -15,7 +15,7 @@ compute ID group-ID orientorder/atom keyword values ... :pre
|
|||||||
ID, group-ID are documented in "compute"_compute.html command :ulb,l
|
ID, group-ID are documented in "compute"_compute.html command :ulb,l
|
||||||
orientorder/atom = style name of this compute command :l
|
orientorder/atom = style name of this compute command :l
|
||||||
one or more keyword/value pairs may be appended :l
|
one or more keyword/value pairs may be appended :l
|
||||||
keyword = {cutoff} or {nnn} or {ql}
|
keyword = {cutoff} or {nnn} or {degrees}
|
||||||
{cutoff} value = distance cutoff
|
{cutoff} value = distance cutoff
|
||||||
{nnn} value = number of nearest neighbors
|
{nnn} value = number of nearest neighbors
|
||||||
{degrees} values = nlvalues, l1, l2,... :pre
|
{degrees} values = nlvalues, l1, l2,... :pre
|
||||||
@ -111,7 +111,7 @@ options.
|
|||||||
|
|
||||||
[Default:]
|
[Default:]
|
||||||
|
|
||||||
The option defaults are {cutoff} = pair style cutoff, {nnn} = 12, {degrees} = 5 4 6 8 9 10 12 i.e. {Q}4, {Q}6, {Q}8, {Q}10, and {Q}12.
|
The option defaults are {cutoff} = pair style cutoff, {nnn} = 12, {degrees} = 5 4 6 8 10 12 i.e. {Q}4, {Q}6, {Q}8, {Q}10, and {Q}12.
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
|
|||||||
@ -37,12 +37,18 @@ The pressure is computed by the formula
|
|||||||
|
|
||||||
where N is the number of atoms in the system (see discussion of DOF
|
where N is the number of atoms in the system (see discussion of DOF
|
||||||
below), Kb is the Boltzmann constant, T is the temperature, d is the
|
below), Kb is the Boltzmann constant, T is the temperature, d is the
|
||||||
dimensionality of the system (2 or 3 for 2d/3d), V is the system
|
dimensionality of the system (2 or 3 for 2d/3d), and V is the system
|
||||||
volume (or area in 2d), and the second term is the virial, computed
|
volume (or area in 2d). The second term is the virial, equal to
|
||||||
within LAMMPS for all pairwise as well as 2-body, 3-body, and 4-body,
|
-dU/dV, computed for all pairwise as well as 2-body, 3-body, 4-body,
|
||||||
and long-range interactions. "Fixes"_fix.html that impose constraints
|
manybody, and long-range interactions, where r_i and f_i are the
|
||||||
(e.g. the "fix shake"_fix_shake.html command) also contribute to the
|
position and force vector of atom i, and the black dot indicates a dot
|
||||||
virial term.
|
product. When periodic boundary conditions are used, N' necessarily
|
||||||
|
includes periodic image (ghost) atoms outside the central box, and the
|
||||||
|
position and force vectors of ghost atoms are thus included in the
|
||||||
|
summation. When periodic boundary conditions are not used, N' = N =
|
||||||
|
the number of atoms in the system. "Fixes"_fix.html that impose
|
||||||
|
constraints (e.g. the "fix shake"_fix_shake.html command) also
|
||||||
|
contribute to the virial term.
|
||||||
|
|
||||||
A symmetric pressure tensor, stored as a 6-element vector, is also
|
A symmetric pressure tensor, stored as a 6-element vector, is also
|
||||||
calculated by this compute. The 6 components of the vector are
|
calculated by this compute. The 6 components of the vector are
|
||||||
@ -62,8 +68,9 @@ compute temperature or ke and/or the virial. The {virial} keyword
|
|||||||
means include all terms except the kinetic energy {ke}.
|
means include all terms except the kinetic energy {ke}.
|
||||||
|
|
||||||
Details of how LAMMPS computes the virial efficiently for the entire
|
Details of how LAMMPS computes the virial efficiently for the entire
|
||||||
system, including the effects of periodic boundary conditions is
|
system, including for manybody potentials and accounting for the
|
||||||
discussed in "(Thompson)"_#Thompson.
|
effects of periodic boundary conditions are discussed in
|
||||||
|
"(Thompson)"_#Thompson.
|
||||||
|
|
||||||
The temperature and kinetic energy tensor is not calculated by this
|
The temperature and kinetic energy tensor is not calculated by this
|
||||||
compute, but rather by the temperature compute specified with the
|
compute, but rather by the temperature compute specified with the
|
||||||
|
|||||||
@ -78,7 +78,7 @@ defined by the "pair_style"_pair_style.html command for the types of
|
|||||||
the two atoms is used. For the {radius} setting, the sum of the radii
|
the two atoms is used. For the {radius} setting, the sum of the radii
|
||||||
of the two particles is used as a cutoff. For example, this is
|
of the two particles is used as a cutoff. For example, this is
|
||||||
appropriate for granular particles which only interact when they are
|
appropriate for granular particles which only interact when they are
|
||||||
overlapping, as computed by "granular pair styles"_pair_gran.txt.
|
overlapping, as computed by "granular pair styles"_pair_gran.html.
|
||||||
|
|
||||||
If the inputs are bond, angle, etc attributes, the local data is
|
If the inputs are bond, angle, etc attributes, the local data is
|
||||||
generated by looping over all the atoms owned on a processor and
|
generated by looping over all the atoms owned on a processor and
|
||||||
|
|||||||
@ -27,7 +27,7 @@ contact radius is used only to prevent particles belonging to
|
|||||||
different physical bodies from penetrating each other. It is used by
|
different physical bodies from penetrating each other. It is used by
|
||||||
the contact pair styles, e.g., smd/hertz and smd/tri_surface.
|
the contact pair styles, e.g., smd/hertz and smd/tri_surface.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
The value of the contact radius will be 0.0 for particles not in the
|
The value of the contact radius will be 0.0 for particles not in the
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/damage :pre
|
|||||||
Define a computation that calculates the damage status of SPH particles
|
Define a computation that calculates the damage status of SPH particles
|
||||||
according to the damage model which is defined via the SMD SPH pair styles, e.g., the maximum plastic strain failure criterion.
|
according to the damage model which is defined via the SMD SPH pair styles, e.g., the maximum plastic strain failure criterion.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth Mach Dynamics in LAMMPS.
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output Info:]
|
[Output Info:]
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ configuration. This compute is only really useful for debugging the
|
|||||||
hourglass control mechanim which is part of the Total-Lagrangian SPH
|
hourglass control mechanim which is part of the Total-Lagrangian SPH
|
||||||
pair style.
|
pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output Info:]
|
[Output Info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/internal/energy :pre
|
|||||||
Define a computation which outputs the per-particle enthalpy, i.e.,
|
Define a computation which outputs the per-particle enthalpy, i.e.,
|
||||||
the sum of potential energy and heat.
|
the sum of potential energy and heat.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output Info:]
|
[Output Info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that outputs the equivalent plastic strain per
|
|||||||
particle. This command is only meaningful if a material model with
|
particle. This command is only meaningful if a material model with
|
||||||
plasticity is defined.
|
plasticity is defined.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output Info:]
|
[Output Info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that outputs the time rate of the equivalent
|
|||||||
plastic strain. This command is only meaningful if a material model
|
plastic strain. This command is only meaningful if a material model
|
||||||
with plasticity is defined.
|
with plasticity is defined.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output Info:]
|
[Output Info:]
|
||||||
|
|||||||
@ -26,7 +26,7 @@ The mass density is the mass of a particle which is constant during
|
|||||||
the course of a simulation, divided by its volume, which can change
|
the course of a simulation, divided by its volume, which can change
|
||||||
due to mechanical deformation.
|
due to mechanical deformation.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that calculates the deformation gradient. It is
|
|||||||
only meaningful for particles which interact according to the
|
only meaningful for particles which interact according to the
|
||||||
Total-Lagrangian SPH pair style.
|
Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -30,7 +30,7 @@ time step. This calculation is performed automatically in the
|
|||||||
relevant SPH pair styles and this compute only serves to make the
|
relevant SPH pair styles and this compute only serves to make the
|
||||||
stable time increment accessible for output purposes.
|
stable time increment accessible for output purposes.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that calculates the number of particles inside of
|
|||||||
the smoothing kernel radius for particles interacting via the
|
the smoothing kernel radius for particles interacting via the
|
||||||
Total-Lagrangian SPH pair style.
|
Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -26,7 +26,7 @@ associated with a particle as a rotated ellipsoid. It is only
|
|||||||
meaningful for particles which interact according to the
|
meaningful for particles which interact according to the
|
||||||
Total-Lagrangian SPH pair style.
|
Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/tlsph/strain :pre
|
|||||||
Define a computation that calculates the Green-Lagrange strain tensor
|
Define a computation that calculates the Green-Lagrange strain tensor
|
||||||
for particles interacting via the Total-Lagrangian SPH pair style.
|
for particles interacting via the Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/tlsph/strain/rate :pre
|
|||||||
Define a computation that calculates the rate of the strain tensor for
|
Define a computation that calculates the rate of the strain tensor for
|
||||||
particles interacting via the Total-Lagrangian SPH pair style.
|
particles interacting via the Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/tlsph/stress :pre
|
|||||||
Define a computation that outputs the Cauchy stress tensor for
|
Define a computation that outputs the Cauchy stress tensor for
|
||||||
particles interacting via the Total-Lagrangian SPH pair style.
|
particles interacting via the Total-Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that returns the coordinates of the vertices
|
|||||||
corresponding to the triangle-elements of a mesh created by the "fix
|
corresponding to the triangle-elements of a mesh created by the "fix
|
||||||
smd/wall_surface"_fix_smd_wall_surface.html.
|
smd/wall_surface"_fix_smd_wall_surface.html.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that returns the number of neighbor particles
|
|||||||
inside of the smoothing kernel radius for particles interacting via
|
inside of the smoothing kernel radius for particles interacting via
|
||||||
the updated Lagrangian SPH pair style.
|
the updated Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/ulsph/strain :pre
|
|||||||
Define a computation that outputs the logarithmic strain tensor. for
|
Define a computation that outputs the logarithmic strain tensor. for
|
||||||
particles interacting via the updated Lagrangian SPH pair style.
|
particles interacting via the updated Lagrangian SPH pair style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -25,7 +25,7 @@ Define a computation that outputs the rate of the logarithmic strain
|
|||||||
tensor for particles interacting via the updated Lagrangian SPH pair
|
tensor for particles interacting via the updated Lagrangian SPH pair
|
||||||
style.
|
style.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -23,7 +23,7 @@ compute 1 all smd/ulsph/stress :pre
|
|||||||
|
|
||||||
Define a computation that outputs the Cauchy stress tensor.
|
Define a computation that outputs the Cauchy stress tensor.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -24,7 +24,7 @@ compute 1 all smd/vol :pre
|
|||||||
Define a computation that provides the per-particle volume and the sum
|
Define a computation that provides the per-particle volume and the sum
|
||||||
of the per-particle volumes of the group for which the fix is defined.
|
of the per-particle volumes of the group for which the fix is defined.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to using Smooth
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to using Smooth
|
||||||
Mach Dynamics in LAMMPS.
|
Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Output info:]
|
[Output info:]
|
||||||
|
|||||||
@ -60,7 +60,7 @@ produced by a small set of atoms (e.g. 4 atoms in a dihedral or 3
|
|||||||
atoms in a Tersoff 3-body interaction) is assigned in equal portions
|
atoms in a Tersoff 3-body interaction) is assigned in equal portions
|
||||||
to each atom in the set. E.g. 1/4 of the dihedral virial to each of
|
to each atom in the set. E.g. 1/4 of the dihedral virial to each of
|
||||||
the 4 atoms, or 1/3 of the fix virial due to SHAKE constraints applied
|
the 4 atoms, or 1/3 of the fix virial due to SHAKE constraints applied
|
||||||
to atoms in a a water molecule via the "fix shake"_fix_shake.html
|
to atoms in a water molecule via the "fix shake"_fix_shake.html
|
||||||
command.
|
command.
|
||||||
|
|
||||||
If no extra keywords are listed, all of the terms in this formula are
|
If no extra keywords are listed, all of the terms in this formula are
|
||||||
|
|||||||
@ -69,8 +69,8 @@ velocity for each atom. Note that if there is only one atom in the
|
|||||||
bin, its thermal velocity will thus be 0.0.
|
bin, its thermal velocity will thus be 0.0.
|
||||||
|
|
||||||
After the spatially-averaged velocity field has been subtracted from
|
After the spatially-averaged velocity field has been subtracted from
|
||||||
each atom, the temperature is calculated by the formula KE = (dim/2 N
|
each atom, the temperature is calculated by the formula KE = (dim*N
|
||||||
- dim*Nx*Ny*Nz) k T, where KE = total kinetic energy of the group of
|
- dim*Nx*Ny*Nz) k T/2, where KE = total kinetic energy of the group of
|
||||||
atoms (sum of 1/2 m v^2), dim = 2 or 3 = dimensionality of the
|
atoms (sum of 1/2 m v^2), dim = 2 or 3 = dimensionality of the
|
||||||
simulation, N = number of atoms in the group, k = Boltzmann constant,
|
simulation, N = number of atoms in the group, k = Boltzmann constant,
|
||||||
and T = temperature. The dim*Nx*Ny*Nz term are degrees of freedom
|
and T = temperature. The dim*Nx*Ny*Nz term are degrees of freedom
|
||||||
|
|||||||
@ -109,7 +109,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -76,7 +76,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -69,7 +69,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -77,7 +77,7 @@ for specific dihedral types.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
Unlike other dihedral styles, the hybrid dihedral style does not store
|
Unlike other dihedral styles, the hybrid dihedral style does not store
|
||||||
|
|||||||
@ -63,7 +63,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -71,7 +71,7 @@ more instructions on how to use the accelerated styles effectively.
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This dihedral style can only be used if LAMMPS was built with the
|
This dihedral style can only be used if LAMMPS was built with the
|
||||||
MOLECULE package (which it is by default). See the "Making
|
MOLECULE package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -154,7 +154,7 @@ radians instead of degrees. (Note: This changes the way the forces
|
|||||||
are scaled in the 4th column of the data file.)
|
are scaled in the 4th column of the data file.)
|
||||||
|
|
||||||
The optional "CHECKU" keyword is followed by a filename. This allows
|
The optional "CHECKU" keyword is followed by a filename. This allows
|
||||||
the user to save all of the the {Ntable} different entries in the
|
the user to save all of the {Ntable} different entries in the
|
||||||
interpolated energy table to a file to make sure that the interpolated
|
interpolated energy table to a file to make sure that the interpolated
|
||||||
function agrees with the user's expectations. (Note: You can
|
function agrees with the user's expectations. (Note: You can
|
||||||
temporarily increase the {Ntable} parameter to a high value for this
|
temporarily increase the {Ntable} parameter to a high value for this
|
||||||
|
|||||||
@ -12,6 +12,7 @@ dump command :h3
|
|||||||
"dump image"_dump_image.html command :h3
|
"dump image"_dump_image.html command :h3
|
||||||
"dump movie"_dump_image.html command :h3
|
"dump movie"_dump_image.html command :h3
|
||||||
"dump molfile"_dump_molfile.html command :h3
|
"dump molfile"_dump_molfile.html command :h3
|
||||||
|
"dump nc"_dump_nc.html command :h3
|
||||||
|
|
||||||
[Syntax:]
|
[Syntax:]
|
||||||
|
|
||||||
@ -43,7 +44,9 @@ args = list of arguments for a particular style :l
|
|||||||
|
|
||||||
{movie} args = discussed on "dump image"_dump_image.html doc page :pre
|
{movie} args = discussed on "dump image"_dump_image.html doc page :pre
|
||||||
|
|
||||||
{molfile} args = discussed on "dump molfile"_dump_molfile.html doc page :pre
|
{molfile} args = discussed on "dump molfile"_dump_molfile.html doc page
|
||||||
|
|
||||||
|
{nc} args = discussed on "dump nc"_dump_nc.html doc page :pre
|
||||||
|
|
||||||
{local} args = list of local attributes
|
{local} args = list of local attributes
|
||||||
possible attributes = index, c_ID, c_ID\[I\], f_ID, f_ID\[I\]
|
possible attributes = index, c_ID, c_ID\[I\], f_ID, f_ID\[I\]
|
||||||
|
|||||||
@ -165,7 +165,7 @@ extra buffering.
|
|||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
The {element} keyword applies only to the the dump {cfg}, {xyz}, and
|
The {element} keyword applies only to the dump {cfg}, {xyz}, and
|
||||||
{image} styles. It associates element names (e.g. H, C, Fe) with
|
{image} styles. It associates element names (e.g. H, C, Fe) with
|
||||||
LAMMPS atom types. See the list of element names at the bottom of
|
LAMMPS atom types. See the list of element names at the bottom of
|
||||||
this page.
|
this page.
|
||||||
@ -574,7 +574,7 @@ e.g. its x-component of velocity if the atom-attribute "vx" was
|
|||||||
specified.
|
specified.
|
||||||
|
|
||||||
The basic idea of a color map is that the atom-attribute will be
|
The basic idea of a color map is that the atom-attribute will be
|
||||||
within a range of values, and that range is associated with a a series
|
within a range of values, and that range is associated with a series
|
||||||
of colors (e.g. red, blue, green). An atom's specific value (vx =
|
of colors (e.g. red, blue, green). An atom's specific value (vx =
|
||||||
-3.2) can then mapped to the series of colors (e.g. halfway between
|
-3.2) can then mapped to the series of colors (e.g. halfway between
|
||||||
red and blue), and a specific color is determined via an interpolation
|
red and blue), and a specific color is determined via an interpolation
|
||||||
|
|||||||
@ -31,30 +31,32 @@ dump 1 all nc/mpiio 1000 traj.nc id type x y z :pre
|
|||||||
[Description:]
|
[Description:]
|
||||||
|
|
||||||
Dump a snapshot of atom coordinates every N timesteps in Amber-style
|
Dump a snapshot of atom coordinates every N timesteps in Amber-style
|
||||||
NetCDF file format. NetCDF files are binary, portable and self-describing.
|
NetCDF file format. NetCDF files are binary, portable and
|
||||||
This dump style will write only one file on the root node. The dump
|
self-describing. This dump style will write only one file on the root
|
||||||
style {nc} uses the "standard NetCDF library"_netcdf-home all data is
|
node. The dump style {nc} uses the "standard NetCDF
|
||||||
collected on one processor and then written to the dump file. Dump style
|
library"_netcdf-home all data is collected on one processor and then
|
||||||
{nc/mpiio} used the "parallel NetCDF library"_pnetcdf-home and MPI-IO;
|
written to the dump file. Dump style {nc/mpiio} used the "parallel
|
||||||
it has better performance on a larger number of processors. Note that
|
NetCDF library"_pnetcdf-home and MPI-IO; it has better performance on
|
||||||
'nc' outputs all atoms sorted by atom tag while 'nc/mpiio' outputs in
|
a larger number of processors. Note that 'nc' outputs all atoms sorted
|
||||||
order of the MPI rank.
|
by atom tag while 'nc/mpiio' outputs in order of the MPI rank.
|
||||||
|
|
||||||
In addition to per-atom data, also global (i.e. not per atom, but per frame)
|
In addition to per-atom data, also global (i.e. not per atom, but per
|
||||||
quantities can be included in the dump file. This can be variables, output
|
frame) quantities can be included in the dump file. This can be
|
||||||
from computes or fixes data prefixed with v_, c_ and f_, respectively.
|
variables, output from computes or fixes data prefixed with v_, c_ and
|
||||||
These properties are included via "dump_modify"_dump_modify.html {global}.
|
f_, respectively. These properties are included via
|
||||||
|
"dump_modify"_dump_modify.html {global}.
|
||||||
|
|
||||||
|
:link(netcdf-home,http://www.unidata.ucar.edu/software/netcdf/)
|
||||||
|
:link(pnetcdf-home,http://trac.mcs.anl.gov/projects/parallel-netcdf/)
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
The {nc} and {nc/mpiio} dump styles are part of the USER-NC-DUMP package.
|
The {nc} and {nc/mpiio} dump styles are part of the USER-NC-DUMP
|
||||||
It is only enabled if LAMMPS was built with that package. See the "Making
|
package. It is only enabled if LAMMPS was built with that
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info.
|
package. See the "Making LAMMPS"_Section_start.html#start_3 section
|
||||||
|
for more info.
|
||||||
:link(netcdf-home,http://www.unidata.ucar.edu/software/netcdf/)
|
|
||||||
:link(pnetcdf-home,http://trac.mcs.anl.gov/projects/parallel-netcdf/)
|
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
|
|||||||
@ -190,6 +190,7 @@ of "this page"_Section_commands.html#cmd_5.
|
|||||||
"gcmc"_fix_gcmc.html - grand canonical insertions/deletions
|
"gcmc"_fix_gcmc.html - grand canonical insertions/deletions
|
||||||
"gld"_fix_gcmc.html - generalized Langevin dynamics integrator
|
"gld"_fix_gcmc.html - generalized Langevin dynamics integrator
|
||||||
"gravity"_fix_gravity.html - add gravity to atoms in a granular simulation
|
"gravity"_fix_gravity.html - add gravity to atoms in a granular simulation
|
||||||
|
"halt"_fix_halt.html - terminate a dynamics run or minimization
|
||||||
"heat"_fix_heat.html - add/subtract momentum-conserving heat
|
"heat"_fix_heat.html - add/subtract momentum-conserving heat
|
||||||
"indent"_fix_indent.html - impose force due to an indenter
|
"indent"_fix_indent.html - impose force due to an indenter
|
||||||
"langevin"_fix_langevin.html - Langevin temperature control
|
"langevin"_fix_langevin.html - Langevin temperature control
|
||||||
|
|||||||
@ -113,7 +113,7 @@ quantity being minimized), you MUST enable the
|
|||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
This fix can only be used if LAMMPS was built with the MOLECULE
|
This fix can only be used if LAMMPS was built with the MOLECULE
|
||||||
package (which it is by default). See the "Making
|
package. See the "Making
|
||||||
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
LAMMPS"_Section_start.html#start_3 section for more info on packages.
|
||||||
|
|
||||||
[Related commands:]
|
[Related commands:]
|
||||||
|
|||||||
@ -150,7 +150,7 @@ initial box length is 100 Angstroms, and V is 10 Angstroms/psec, then
|
|||||||
after 10 psec, the box length will have doubled. After 20 psec, it
|
after 10 psec, the box length will have doubled. After 20 psec, it
|
||||||
will have tripled.
|
will have tripled.
|
||||||
|
|
||||||
The {erate} style changes a dimension of the the box at a "constant
|
The {erate} style changes a dimension of the box at a "constant
|
||||||
engineering strain rate". The units of the specified strain rate are
|
engineering strain rate". The units of the specified strain rate are
|
||||||
1/time. See the "units"_units.html command for the time units
|
1/time. See the "units"_units.html command for the time units
|
||||||
associated with different choices of simulation units,
|
associated with different choices of simulation units,
|
||||||
|
|||||||
@ -21,7 +21,7 @@ type = atom type for inserted atoms (must be 0 if mol keyword used) :l
|
|||||||
seed = random # seed (positive integer) :l
|
seed = random # seed (positive integer) :l
|
||||||
T = temperature of the ideal gas reservoir (temperature units) :l
|
T = temperature of the ideal gas reservoir (temperature units) :l
|
||||||
mu = chemical potential of the ideal gas reservoir (energy units) :l
|
mu = chemical potential of the ideal gas reservoir (energy units) :l
|
||||||
translate = maximum Monte Carlo translation distance (length units) :l
|
displace = maximum Monte Carlo translation distance (length units) :l
|
||||||
zero or more keyword/value pairs may be appended to args :l
|
zero or more keyword/value pairs may be appended to args :l
|
||||||
keyword = {mol}, {region}, {maxangle}, {pressure}, {fugacity_coeff}, {full_energy}, {charge}, {group}, {grouptype}, {intra_energy}, or {tfac_insert}
|
keyword = {mol}, {region}, {maxangle}, {pressure}, {fugacity_coeff}, {full_energy}, {charge}, {group}, {grouptype}, {intra_energy}, or {tfac_insert}
|
||||||
{mol} value = template-ID
|
{mol} value = template-ID
|
||||||
|
|||||||
111
doc/src/fix_grem.txt
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
"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
|
||||||
|
|
||||||
|
fix grem command :h3
|
||||||
|
|
||||||
|
[Syntax:]
|
||||||
|
|
||||||
|
fix ID group-ID grem lambda eta H0 thermostat-ID :pre
|
||||||
|
|
||||||
|
ID, group-ID are documented in "fix"_fix.html command :ulb,l
|
||||||
|
grem = style name of this fix command :l
|
||||||
|
lambda = intercept parameter of linear effective temperature function :l
|
||||||
|
eta = slope parameter of linear effective temperature function :l
|
||||||
|
H0 = shift parameter of linear effective temperature function :l
|
||||||
|
thermostat-ID = ID of Nose-Hoover thermostat or barostat used in simulation :l,ule
|
||||||
|
|
||||||
|
[Examples:]
|
||||||
|
|
||||||
|
fix fxgREM all grem 400 -0.01 -30000 fxnpt
|
||||||
|
thermo_modify press fxgREM_press :pre
|
||||||
|
|
||||||
|
fix fxgREM all grem 502 -0.15 -80000 fxnvt :pre
|
||||||
|
|
||||||
|
[Description:]
|
||||||
|
|
||||||
|
This fix implements the molecular dynamics version of the generalized
|
||||||
|
replica exchange method (gREM) originally developed by "(Kim)"_#Kim,
|
||||||
|
which uses non-Boltzmann ensembles to sample over first order phase
|
||||||
|
transitions. The is done by defining replicas with an enthalpy
|
||||||
|
dependent effective temperature
|
||||||
|
|
||||||
|
:c,image(Eqs/fix_grem.jpg)
|
||||||
|
|
||||||
|
with {eta} negative and steep enough to only intersect the
|
||||||
|
characteristic microcanonical temperature (Ts) of the system once,
|
||||||
|
ensuring a unimodal enthalpy distribution in that replica. {Lambda} is
|
||||||
|
the intercept and effects the generalized ensemble similar to how
|
||||||
|
temperature effects a Boltzmann ensemble. {H0} is a reference
|
||||||
|
enthalpy, and is typically set as the lowest desired sampled enthalpy.
|
||||||
|
Further explanation can be found in our recent papers
|
||||||
|
"(Malolepsza)"_#Malolepsza.
|
||||||
|
|
||||||
|
This fix requires a Nose-Hoover thermostat fix reference passed to the
|
||||||
|
grem as {thermostat-ID}. Two distinct temperatures exist in this
|
||||||
|
generalized ensemble, the effective temperature defined above, and a
|
||||||
|
kinetic temperature that controls the velocity distribution of
|
||||||
|
particles as usual. Either constant volume or constant pressure
|
||||||
|
algorithms can be used.
|
||||||
|
|
||||||
|
The fix enforces a generalized ensemble in a single replica
|
||||||
|
only. Typically, this ideaology is combined with replica exchange with
|
||||||
|
replicas differing by {lambda} only for simplicity, but this is not
|
||||||
|
required. A multi-replica simulation can be run within the LAMMPS
|
||||||
|
environment using the "temper/grem"_temper_grem.html command. This
|
||||||
|
utilizes LAMMPS partition mode and requires the number of available
|
||||||
|
processors be on the order of the number of desired replicas. A
|
||||||
|
100-replica simulation would require at least 100 processors (1 per
|
||||||
|
world at minimum). If a many replicas are needed on a small number of
|
||||||
|
processors, multi-replica runs can be run outside of LAMMPS. An
|
||||||
|
example of this can be found in examples/USER/misc/grem and has no
|
||||||
|
limit on the number of replicas per processor. However, this is very
|
||||||
|
inefficient and error prone and should be avoided if possible.
|
||||||
|
|
||||||
|
In general, defining the generalized ensembles is unique for every
|
||||||
|
system. When starting a many-replica simulation without any knowledge
|
||||||
|
of the underlying microcanonical temperature, there are several tricks
|
||||||
|
we have utilized to optimize the process. Choosing a less-steep {eta}
|
||||||
|
yields broader distributions, requiring fewer replicas to map the
|
||||||
|
microcanonical temperature. While this likely struggles from the same
|
||||||
|
sampling problems gREM was built to avoid, it provides quick insight
|
||||||
|
to Ts. Initially using an evenly-spaced {lambda} distribution
|
||||||
|
identifies regions where small changes in enthalpy lead to large
|
||||||
|
temperature changes. Replicas are easily added where needed.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
||||||
|
|
||||||
|
No information about this fix is written to "binary restart
|
||||||
|
files"_restart.html.
|
||||||
|
|
||||||
|
The "thermo_modify"_thermo_modify.html {press} option is supported
|
||||||
|
by this fix to add the rescaled kinetic pressure as part of
|
||||||
|
"thermodynamic output"_thermo_style.html.
|
||||||
|
|
||||||
|
[Restrictions:]
|
||||||
|
|
||||||
|
This fix is part of the USER-MISC package. It is only enabled if
|
||||||
|
LAMMPS was built with that package. See the "Making
|
||||||
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
||||||
|
|
||||||
|
[Related commands:]
|
||||||
|
|
||||||
|
"temper/grem"_temper_grem.html, "fix nvt"_fix_nh.html, "fix
|
||||||
|
npt"_fix_nh.html, "thermo_modify"_thermo_modify.html
|
||||||
|
|
||||||
|
[Default:] none
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
:link(Kim)
|
||||||
|
[(Kim)] Kim, Keyes, Straub, J Chem. Phys, 132, 224107 (2010).
|
||||||
|
|
||||||
|
:link(Malolepsza)
|
||||||
|
[(Malolepsza)] Malolepsza, Secor, Keyes, J Phys Chem B 119 (42),
|
||||||
|
13379-13384 (2015).
|
||||||
@ -10,18 +10,19 @@ fix ipi command :h3
|
|||||||
|
|
||||||
[Syntax:]
|
[Syntax:]
|
||||||
|
|
||||||
fix ID group-ID ipi address port \[unix\] :pre
|
fix ID group-ID ipi address port \[unix\] \[reset\] :pre
|
||||||
|
|
||||||
ID, group-ID are documented in "fix"_fix.html command
|
ID, group-ID are documented in "fix"_fix.html command
|
||||||
ipi = style name of this fix command
|
ipi = style name of this fix command
|
||||||
address = internet address (FQDN or IP), or UNIX socket name
|
address = internet address (FQDN or IP), or UNIX socket name
|
||||||
port = port number (ignored for UNIX sockets)
|
port = port number (ignored for UNIX sockets)
|
||||||
optional keyword = {unix}, if present uses a unix socket :ul
|
optional keyword = {unix}, if present uses a unix socket
|
||||||
|
optional keyword = {reset}, if present reset electrostatics at each call :ul
|
||||||
|
|
||||||
[Examples:]
|
[Examples:]
|
||||||
|
|
||||||
fix 1 all ipi my.server.com 12345
|
fix 1 all ipi my.server.com 12345
|
||||||
fix 1 all ipi mysocket 666 unix
|
fix 1 all ipi mysocket 666 unix reset
|
||||||
|
|
||||||
[Description:]
|
[Description:]
|
||||||
|
|
||||||
@ -57,6 +58,15 @@ input are listed in the same order as in the data file of LAMMPS. The
|
|||||||
initial configuration is ignored, as it will be substituted with the
|
initial configuration is ignored, as it will be substituted with the
|
||||||
coordinates received from i-PI before forces are ever evaluated.
|
coordinates received from i-PI before forces are ever evaluated.
|
||||||
|
|
||||||
|
A note of caution when using potentials that contain long-range
|
||||||
|
electrostatics, or that contain parameters that depend on box size:
|
||||||
|
all of these options will be initialized based on the cell size in the
|
||||||
|
LAMMPS-side initial configuration and kept constant during the run.
|
||||||
|
This is required to e.g. obtain reproducible and conserved forces.
|
||||||
|
If the cell varies too wildly, it may be advisable to reinitialize
|
||||||
|
these interactions at each call. This behavior can be requested by
|
||||||
|
setting the {reset} switch.
|
||||||
|
|
||||||
[Restart, fix_modify, output, run start/stop, minimize info:]
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
||||||
|
|
||||||
There is no restart information associated with this fix, since all
|
There is no restart information associated with this fix, since all
|
||||||
|
|||||||
@ -237,7 +237,7 @@ described in the papers cited below, the purpose of this method is to
|
|||||||
enable longer timesteps to be used (up to the numerical stability
|
enable longer timesteps to be used (up to the numerical stability
|
||||||
limit of the integrator), while still producing the correct Boltzmann
|
limit of the integrator), while still producing the correct Boltzmann
|
||||||
distribution of atom positions. It is implemented within LAMMPS, by
|
distribution of atom positions. It is implemented within LAMMPS, by
|
||||||
changing how the the random force is applied so that it is composed of
|
changing how the random force is applied so that it is composed of
|
||||||
the average of two random forces representing half-contributions from
|
the average of two random forces representing half-contributions from
|
||||||
the previous and current time intervals.
|
the previous and current time intervals.
|
||||||
|
|
||||||
|
|||||||
@ -233,7 +233,7 @@ present, the speed of sound squared is set equal to (1/3)*(dx/dt)^2.
|
|||||||
Setting a0 > (dx/dt)^2 is not allowed, as this may lead to
|
Setting a0 > (dx/dt)^2 is not allowed, as this may lead to
|
||||||
instabilities.
|
instabilities.
|
||||||
|
|
||||||
If the {noise} keyword is used, followed by a a positive temperature
|
If the {noise} keyword is used, followed by a positive temperature
|
||||||
value, and a positive integer random number seed, a thermal
|
value, and a positive integer random number seed, a thermal
|
||||||
lattice-Boltzmann algorithm is used. If {LBtype} is set equal to 1
|
lattice-Boltzmann algorithm is used. If {LBtype} is set equal to 1
|
||||||
(i.e. the standard LB integrator is chosen), the thermal LB algorithm
|
(i.e. the standard LB integrator is chosen), the thermal LB algorithm
|
||||||
|
|||||||
@ -184,7 +184,7 @@ This fix requires LAMMPS be built with an FFT library. See the
|
|||||||
[Default:]
|
[Default:]
|
||||||
|
|
||||||
The option defaults are sysdim = the same dimemsion as specified by
|
The option defaults are sysdim = the same dimemsion as specified by
|
||||||
the "dimension"_dimension command, and nasr = 20.
|
the "dimension"_dimension.html command, and nasr = 20.
|
||||||
|
|
||||||
:line
|
:line
|
||||||
|
|
||||||
|
|||||||
@ -177,7 +177,7 @@ their values. This means that the values can be output via the "dump
|
|||||||
custom"_dump.html command, accessed by fixes like "fix
|
custom"_dump.html command, accessed by fixes like "fix
|
||||||
ave/atom"_fix_ave_atom.html, accessed by other computes like "compute
|
ave/atom"_fix_ave_atom.html, accessed by other computes like "compute
|
||||||
reduce"_compute_reduce.html, or used in "atom-style
|
reduce"_compute_reduce.html, or used in "atom-style
|
||||||
variables"_variables.
|
variables"_variable.html.
|
||||||
|
|
||||||
For example, these commands will output two new properties to a custom
|
For example, these commands will output two new properties to a custom
|
||||||
dump file:
|
dump file:
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
fix reax/bonds command :h3
|
fix reax/bonds command :h3
|
||||||
fix reax/c/bonds command :h3
|
fix reax/c/bonds command :h3
|
||||||
|
fix reax/c/bonds/kk command :h3
|
||||||
|
|
||||||
[Syntax:]
|
[Syntax:]
|
||||||
|
|
||||||
@ -47,6 +48,31 @@ commands"_Section_howto.html#howto_15. No parameter of this fix can
|
|||||||
be used with the {start/stop} keywords of the "run"_run.html command.
|
be used with the {start/stop} keywords of the "run"_run.html command.
|
||||||
This fix is not invoked during "energy minimization"_minimize.html.
|
This fix is not invoked during "energy minimization"_minimize.html.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
Styles with a {gpu}, {intel}, {kk}, {omp}, or {opt} suffix are
|
||||||
|
functionally the same as the corresponding style without the suffix.
|
||||||
|
They have been optimized to run faster, depending on your available
|
||||||
|
hardware, as discussed in "Section_accelerate"_Section_accelerate.html
|
||||||
|
of the manual. The accelerated styles take the same arguments and
|
||||||
|
should produce the same results, except for round-off and precision
|
||||||
|
issues.
|
||||||
|
|
||||||
|
These accelerated styles are part of the GPU, USER-INTEL, KOKKOS,
|
||||||
|
USER-OMP and OPT packages, respectively. They are only enabled if
|
||||||
|
LAMMPS was built with those packages. See the "Making
|
||||||
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
||||||
|
|
||||||
|
You can specify the accelerated styles explicitly in your input script
|
||||||
|
by including their suffix, or you can use the "-suffix command-line
|
||||||
|
switch"_Section_start.html#start_7 when you invoke LAMMPS, or you can
|
||||||
|
use the "suffix"_suffix.html command in your input script.
|
||||||
|
|
||||||
|
See "Section_accelerate"_Section_accelerate.html of the manual for
|
||||||
|
more instructions on how to use the accelerated styles effectively.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
The fix reax/bonds command requires that the "pair_style
|
The fix reax/bonds command requires that the "pair_style
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
:line
|
:line
|
||||||
|
|
||||||
fix reax/c/species command :h3
|
fix reax/c/species command :h3
|
||||||
|
fix reax/c/species/kk command :h3
|
||||||
|
|
||||||
[Syntax:]
|
[Syntax:]
|
||||||
|
|
||||||
@ -129,6 +130,31 @@ No parameter of this fix can be used with the {start/stop} keywords of
|
|||||||
the "run"_run.html command. This fix is not invoked during "energy
|
the "run"_run.html command. This fix is not invoked during "energy
|
||||||
minimization"_minimize.html.
|
minimization"_minimize.html.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
|
Styles with a {gpu}, {intel}, {kk}, {omp}, or {opt} suffix are
|
||||||
|
functionally the same as the corresponding style without the suffix.
|
||||||
|
They have been optimized to run faster, depending on your available
|
||||||
|
hardware, as discussed in "Section_accelerate"_Section_accelerate.html
|
||||||
|
of the manual. The accelerated styles take the same arguments and
|
||||||
|
should produce the same results, except for round-off and precision
|
||||||
|
issues.
|
||||||
|
|
||||||
|
These accelerated styles are part of the GPU, USER-INTEL, KOKKOS,
|
||||||
|
USER-OMP and OPT packages, respectively. They are only enabled if
|
||||||
|
LAMMPS was built with those packages. See the "Making
|
||||||
|
LAMMPS"_Section_start.html#start_3 section for more info.
|
||||||
|
|
||||||
|
You can specify the accelerated styles explicitly in your input script
|
||||||
|
by including their suffix, or you can use the "-suffix command-line
|
||||||
|
switch"_Section_start.html#start_7 when you invoke LAMMPS, or you can
|
||||||
|
use the "suffix"_suffix.html command in your input script.
|
||||||
|
|
||||||
|
See "Section_accelerate"_Section_accelerate.html of the manual for
|
||||||
|
more instructions on how to use the accelerated styles effectively.
|
||||||
|
|
||||||
|
:line
|
||||||
|
|
||||||
[Restrictions:]
|
[Restrictions:]
|
||||||
|
|
||||||
The fix species currently only works with
|
The fix species currently only works with
|
||||||
|
|||||||
@ -620,7 +620,7 @@ rigid styles for the rigid bodies. :l
|
|||||||
|
|
||||||
Use "fix press/berendsen"_fix_press_berendsen.html to compute the
|
Use "fix press/berendsen"_fix_press_berendsen.html to compute the
|
||||||
pressure and change the box dimensions. Use one of the 4 NVE or 2 NVT
|
pressure and change the box dimensions. Use one of the 4 NVE or 2 NVT
|
||||||
rigid styles for the rigid bodies. Use "fix nvt"_fix_nh.thml (or any
|
rigid styles for the rigid bodies. Use "fix nvt"_fix_nh.html (or any
|
||||||
other thermostat) for the non-rigid particles. :l
|
other thermostat) for the non-rigid particles. :l
|
||||||
:ule
|
:ule
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ end of each run. A positive value N means that the diagnostics are reported once
|
|||||||
per N time-steps.
|
per N time-steps.
|
||||||
|
|
||||||
The diagnostics report the average # of integrator steps and RHS function evaluations
|
The diagnostics report the average # of integrator steps and RHS function evaluations
|
||||||
and run-time per ODE as well as the the average/RMS/min/max per process. If the
|
and run-time per ODE as well as the average/RMS/min/max per process. If the
|
||||||
reporting frequency is 1, the RMS/min/max per ODE are also reported. The per ODE
|
reporting frequency is 1, the RMS/min/max per ODE are also reported. The per ODE
|
||||||
statistics can be used to adjust the tolerance and min/max step parameters. The
|
statistics can be used to adjust the tolerance and min/max step parameters. The
|
||||||
statistics per MPI process can be useful to examine any load imbalance caused by the
|
statistics per MPI process can be useful to examine any load imbalance caused by the
|
||||||
|
|||||||
@ -28,7 +28,7 @@ fix 1 all smd/adjust_dt 0.1 :pre
|
|||||||
The fix calculates a new stable time increment for use with the SMD time integrators.
|
The fix calculates a new stable time increment for use with the SMD time integrators.
|
||||||
|
|
||||||
The stable time increment is based on multiple conditions. For the SPH pair styles, a
|
The stable time increment is based on multiple conditions. For the SPH pair styles, a
|
||||||
CFL criterion (Courant, Friedrichs & Lewy, 1928) is evaluated, which determines the the speed of
|
CFL criterion (Courant, Friedrichs & Lewy, 1928) is evaluated, which determines the speed of
|
||||||
sound cannot propagate further than a typical spacing between particles within a single time step to ensure
|
sound cannot propagate further than a typical spacing between particles within a single time step to ensure
|
||||||
no information is lost. For the contact pair styles, a linear analysis of the pair potential determines a
|
no information is lost. For the contact pair styles, a linear analysis of the pair potential determines a
|
||||||
stable maximum time step.
|
stable maximum time step.
|
||||||
@ -36,7 +36,7 @@ stable maximum time step.
|
|||||||
This fix inquires the minimum stable time increment across all particles contained in the group for which this
|
This fix inquires the minimum stable time increment across all particles contained in the group for which this
|
||||||
fix is defined. An additional safety factor {s_fact} is applied to the time increment.
|
fix is defined. An additional safety factor {s_fact} is applied to the time increment.
|
||||||
|
|
||||||
See "this PDF guide"_USER/smd/SMD_LAMMPS_userguide.pdf to use Smooth Mach Dynamics in LAMMPS.
|
See "this PDF guide"_PDF/SMD_LAMMPS_userguide.pdf to use Smooth Mach Dynamics in LAMMPS.
|
||||||
|
|
||||||
[Restart, fix_modify, output, run start/stop, minimize info:]
|
[Restart, fix_modify, output, run start/stop, minimize info:]
|
||||||
|
|
||||||
|
|||||||