From 992d9ff3ea570dac090536623c480ab1e78ca360 Mon Sep 17 00:00:00 2001
From: sjplimp
print "Volume = $v" print 'Volume = $v' -if "$steps > 1000" then quit +if "${steps} > 1000" then quit variable a string "red green blue & purple orange cyan" print """ @@ -462,8 +462,8 @@ KOKKOS, o = USER-OMP, t = OPT.heat/flux improper/local inertia/chunk ke ke/atom ke/rigid msd msd/chunk msd/nongauss omega/chunk pair pair/local - pe (c) pe/atom plasticity/atom pressure (c) property/atom property/local - property/chunk rdf reduce reduce/region slice sna/atom + snad/atom snav/atom stress/atom temp (c) temp/asphere temp/com + property/chunk rdf reduce reduce/region slice sna/atom snad/atom snav/atom stress/atom temp (c) temp/asphere temp/com temp/chunk temp/deform temp/partial (c) temp/profile temp/ramp temp/region diff --git a/doc/doc2/Section_python.html b/doc/doc2/Section_python.html index c895035102..2921bc4c3f 100644 --- a/doc/doc2/Section_python.html +++ b/doc/doc2/Section_python.html @@ -225,8 +225,8 @@ described above. have to do it once. For the csh or tcsh shells, add something like this to your ~/.cshrc file, one line for each of the two files: - temp/sphere ti torque/chunk vacf vcm/chunk voronoi/atom setenv PYTHONPATH $PYTHONPATH:/home/sjplimp/lammps/python -setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/home/sjplimp/lammps/src +setenv PYTHONPATH ${PYTHONPATH}:/home/sjplimp/lammps/python +setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/home/sjplimp/lammps/srcIf you use the python/install.py script, you need to invoke it every time you rebuild LAMMPS (as a shared library) or make changes to the diff --git a/doc/doc2/Section_start.html b/doc/doc2/Section_start.html index 20769a24bb..bc7fa8169c 100644 --- a/doc/doc2/Section_start.html +++ b/doc/doc2/Section_start.html @@ -1138,11 +1138,11 @@ that use it.
For the csh or tcsh shells, you would add something like this to your ~/.cshrc file:
-setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH:/home/sjplimp/lammps/src +setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/home/sjplimp/lammps/srcCalling the LAMMPS library:
-Either flavor of library (static or shared0 allows one or more LAMMPS +
Either flavor of library (static or shared) allows one or more LAMMPS objects to be instantiated from the calling program.
When used from a C++ program, all of LAMMPS is wrapped in a LAMMPS_NS diff --git a/doc/doc2/compute.html b/doc/doc2/compute.html index c6a3030e53..56709a891b 100644 --- a/doc/doc2/compute.html +++ b/doc/doc2/compute.html @@ -223,9 +223,9 @@ page.
Here is an example for mixing CHARMM and AMBER: The global amber +setting sets the 1-4 interactions to non-zero scaling factors and +then overrides them with 0.0 only for CHARMM: +
+special_bonds amber +pair_hybrid lj/charmm/coul/long 8.0 10.0 lj/cut/coul/long 10.0 +pair_modify pair lj/charmm/coul/long special lj/coul 0.0 0.0 0.0 ++
The this input achieves the same effect: +
+special_bonds 0.0 0.0 0.1 +pair_hybrid lj/charmm/coul/long 8.0 10.0 lj/cut/coul/long 10.0 +pair_modify pair lj/cut/coul/long special lj 0.0 0.0 0.5 +pair_modify pair lj/cut/coul/long special coul 0.0 0.0 0.83333333 +pair_modify pair lj/charmm/coul/long special lj/coul 0.0 0.0 0.0 ++
Here is an example for mixing Tersoff with OPLS/AA based on +a data file that defines bonds for all atoms where for the +Tersoff part of the system the force constants for the bonded +interactions have been set to 0. Note the global settings are +effectively lj/coul 0.0 0.0 0.5 as required for OPLS/AA: +
+special_bonds lj/coul 1e-20 1e-20 0.5 +pair_hybrid tersoff lj/cut/coul/long 12.0 +pair_modify pair tersoff special lj/coul 1.0 1.0 1.0 ++
See the pair_modify doc page for details on +the specific syntax, requirements and restrictions. +
+The potential energy contribution to the overall system due to an individual sub-style can be accessed and output via the compute pair command. diff --git a/doc/doc2/pair_modify.html b/doc/doc2/pair_modify.html index f6013a430e..726f292286 100644 --- a/doc/doc2/pair_modify.html +++ b/doc/doc2/pair_modify.html @@ -17,14 +17,14 @@
pair values = sub-style N special which w1 wt2 wt3 +pair values = sub-style N special which wt1 wt2 wt3 sub-style = sub-style of pair hybrid N = which instance of sub-style (only if sub-style is used multiple times) - special values = flavor w1 w2 w3 - flavor = lj/coul or lj or coul - w1,w2,w3 = weights from 0.0 to 1.0 inclusive + special which wt1 wt2 wt3 = override special_bonds settings (optional) + which = lj/coul or lj or coul + w1,w2,w3 = 1-2, 1-3, and 1-4 weights from 0.0 to 1.0 inclusive mix value = geometric or arithmetic or sixthpower shift value = yes or no table value = N @@ -42,10 +42,12 @@
Examples:
-pair_modify shift yes mix geometric ++pair_modify table 12 +pair_modify pair lj/cut compute no +pair_modify pair lj/cut/coul/long 1 special lj/coul 0.0 0.0 0.0:pre +pair_modify shift yes mix geometric pair_modify tail yes -pair_modify table 12 -
Description:
Modify the parameters of the currently defined pair style. Not all @@ -64,13 +66,10 @@ keywords will be applied to. Note that if the pair keyword is not used, and the pair style is hybrid or hybrid/overlay, then all the specified keywords will be applied to all sub-styles.
-If used, the special keyword must appear second in the list of -keywords, and must follow the pair keyword. Like the pair -keyword, it also can only be used with the hybrid and -hybrid/overlay pair styles. Its parameters are -similar to the special_bonds command, and it -overrides the special_bond settings for the specified sub-style. More -details are given below. +
The special keyword can only be used in conjunction with the pair +keyword and must directly follow it. It allows to override the +special_bonds settings for the specified sub-style. +More details are given below.
The mix keyword affects pair coefficients for interactions between atoms of type I and J, when I != J and the coefficients are not @@ -216,36 +215,28 @@ pair style be defined.
The special keyword requires 4 values similar to those specified -with the special_bonds command, flavor and -w1,w2,w3. The flavor argument can be lj to change the -Lennard-Jones settings, coul to change the Coulombic settings, or -lj/coul to change both to the same set of 3 values. The w1,w2,w3 +
The special keyword allows to override the 1-2, 1-3, and 1-4 +exclusion settings for individual sub-styles of a +hybrid pair style. It requires 4 arguments similar +to the special_bonds command, which and +wt1,wt2,wt3. The which argument can be lj to change the +Lennard-Jones settings, coul to change the Coulombic settings, +or lj/coul to change both to the same set of 3 values. The wt1,wt2,wt3 values are numeric weights from 0.0 to 1.0 inclusive, for the 1-2, -1-3, and 1-4 bond topology neighbors. For example, these commands -
-special_bonds lj/coul 0.0 0.0 0.1 -pair_hybrid lj/charmm/coul/long 8.0 10.0 lj/cut/coul/long 10.0 -pair_modify pair lj/charmm/coul/long special lj/coul 0.0 0.0 0.0 -pair_modify pair lj/cut/coul/long special lj 0.0 0.0 0.5 -pair_modify pair lj/cut/coul/long special coul 0.0 0.0 0.8333 --
show how to use both the CHARMM and AMBER force fields in a single -simulation. The first pair modify command sets the special bonds to -CHARMM values (all 0.0). The last 2 pair modify commands set the -standard AMBER values for LJ and Coulombic weights. +1-3, and 1-4 bond topology neighbors, respectively. The special +keyword can only be used in conjunction with the pair keyword +and has to directly follow it.
IMPORTANT NOTE: The global settings specified by the special_bonds command affect the construction of neighbor lists. Weights of 0.0 (for 1-2, 1-3, or 1-4 neighbors) exclude those pairs from the neighbor list entirely. Weights of 1.0 -store the neighbor with no weighting applied. The format of the -neighbor list cannot be changed by setting a sub-style weight to a -non-zero or non-one value. Thus an error is generated if the new -sub-style value is not 0.0 (or 1.0) when the global setting is 0.0 (or -1.0). Note that as in the example above, the global factor can simply -be set a value other than 0.0 or 1.0, then overridden by any of the -sub-styles with a value that is 0.0 or 1.0. +store the neighbor with no weighting applied. Thus only global values +different from exactly 0.0 or 1.0 can be overridden and an error +is generated if the requested setting is not compatible with the +global setting. Substituting 1.0e-10 for 0.0 and 0.9999999999 for +1.0 is usually a sufficient workaround in this case without causing +a significant error.
for i in range(N): cut = cut0 + i*0.1 lmp.set_variable("cut",cut) # set a variable in LAMMPS - lmp.command("pair_style lj/cut $cut") # LAMMPS commands + lmp.command("pair_style lj/cut ${cut}") # LAMMPS commands lmp.command("pair_coeff * * 1.0 1.0") lmp.command("run 100") """ @@ -332,7 +332,7 @@ which loads and runs the following function from examples/python/funcs.py: cut = cut0 + i*0.1
lmp.set_variable("cut",cut) # set a variable in LAMMPS - lmp.command("pair_style lj/cut $cut") # LAMMPS command + lmp.command("pair_style lj/cut ${cut}") # LAMMPS command #lmp.command("pair_style lj/cut %d" % cut) # LAMMPS command option
lmp.command("pair_coeff * * 1.0 1.0") # ditto