From e8d9bf05075df7c7fdd12d28486d0d115a16aeb2 Mon Sep 17 00:00:00 2001 From: schererc Date: Wed, 1 Jun 2022 16:30:37 +0200 Subject: [PATCH] examples/PACKAGES: renamed pair_3b_table to pair_threebody_table including all input and documentation files --- .../1-1-1.table | 0 .../1-1-2.table | 0 .../CG-CG-CG.dist.new | 0 .../CG-CG.dist.new | 0 .../README | 30 +++++++++---------- .../calculate_distributions.xml | 0 .../run.sh | 0 .../spce.3b | 0 .../spce.data | 0 .../spce.in | 6 ++-- .../spce_2.3b | 0 .../spce_2.data | 0 .../spce_2.in | 6 ++-- .../table_CG_CG.txt | 0 14 files changed, 21 insertions(+), 21 deletions(-) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/1-1-1.table (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/1-1-2.table (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/CG-CG-CG.dist.new (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/CG-CG.dist.new (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/README (66%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/calculate_distributions.xml (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/run.sh (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce.3b (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce.data (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce.in (83%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce_2.3b (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce_2.data (100%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/spce_2.in (82%) rename examples/PACKAGES/{pair_3b_table => pair_threebody_table}/table_CG_CG.txt (100%) diff --git a/examples/PACKAGES/pair_3b_table/1-1-1.table b/examples/PACKAGES/pair_threebody_table/1-1-1.table similarity index 100% rename from examples/PACKAGES/pair_3b_table/1-1-1.table rename to examples/PACKAGES/pair_threebody_table/1-1-1.table diff --git a/examples/PACKAGES/pair_3b_table/1-1-2.table b/examples/PACKAGES/pair_threebody_table/1-1-2.table similarity index 100% rename from examples/PACKAGES/pair_3b_table/1-1-2.table rename to examples/PACKAGES/pair_threebody_table/1-1-2.table diff --git a/examples/PACKAGES/pair_3b_table/CG-CG-CG.dist.new b/examples/PACKAGES/pair_threebody_table/CG-CG-CG.dist.new similarity index 100% rename from examples/PACKAGES/pair_3b_table/CG-CG-CG.dist.new rename to examples/PACKAGES/pair_threebody_table/CG-CG-CG.dist.new diff --git a/examples/PACKAGES/pair_3b_table/CG-CG.dist.new b/examples/PACKAGES/pair_threebody_table/CG-CG.dist.new similarity index 100% rename from examples/PACKAGES/pair_3b_table/CG-CG.dist.new rename to examples/PACKAGES/pair_threebody_table/CG-CG.dist.new diff --git a/examples/PACKAGES/pair_3b_table/README b/examples/PACKAGES/pair_threebody_table/README similarity index 66% rename from examples/PACKAGES/pair_3b_table/README rename to examples/PACKAGES/pair_threebody_table/README index d01c00afdd..3897f80a81 100644 --- a/examples/PACKAGES/pair_3b_table/README +++ b/examples/PACKAGES/pair_threebody_table/README @@ -1,10 +1,10 @@ -Example for pair style 3b/table +Example for pair style threebody/table This example contains all required input files for the simulation of CG SPC/E water with -the user pair style 3b/table, as well as a run.sh script. +the user pair style threebody/table, as well as a run.sh script. -To run the example, you have to compile LAMMPS with the MANYBODY package, including pair_3b_table.h and pair_3b_table.cpp. +To run the example, you have to compile LAMMPS with the MANYBODY package, including pair_threebody_table.h and pair_threebody_table.cpp. Running the simulations, you will reproduce results of the following publication: @@ -16,20 +16,20 @@ The three-body (force) tables for both parts (1-1-1.table and 1-1-2.table) have For a general description of the table format have a look at the documentation of this pair style. For a example on the parametrization, have a look at https://gitlab.mpcdf.mpg.de/votca/votca/-/tree/master/csg-examples/guide and https://gitlab.mpcdf.mpg.de/votca/votca/-/tree/master/csg-examples/ml. -In both cases, the parametrization has been done according to the three-body forces of the FM tabulated Stillinger-Weber (sw/3b/table) potential with the covariant meshing technique with the settings files used in https://gitlab.mpcdf.mpg.de/votca/votca/-/tree/master/csg-examples/ml/3body/with_binning. +In both cases, the parametrization is done according to a sample system, using the three-body forces of a Stillinger-Weber potential with tabulated angular forces (sw/angle/table). These then are learned with the covariant meshing technique with the settings files used in https://gitlab.mpcdf.mpg.de/votca/votca/-/tree/master/csg-examples/ml/3body/with_binning. -For the first part of example, the folder contains the contains the LAMMPS data file (spce.data) with the starting configuration of 1000 CG water molecules, an input file (spce.in) and a three-body file (spce.3b). +For the first part of example, the folder contains the contains the LAMMPS data file (spce.data) with the starting configuration of 1000 CG water molecules, an input file (spce.in) and a threebody file (spce.3b). The lammps input file contains the lines specifying the pair style and coefficients: -- pair_style hybrid/overlay table linear 1200 3b/table - use a combination of pair style table with 1200 linear table entries and the pair style 3b/table +- pair_style hybrid/overlay table linear 1200 threebody/table - use a combination of pair style table with 1200 linear table entries and the pair style threebody/table - pair_coeff 1 1 table table_CG_CG.txt VOTCA - set the table name and keyword for the pair style table -- pair_coeff * * 3b/table spce.3b type - set the name of 3body file and bead type for the pair style 3b/table +- pair_coeff * * threebody/table spce.3b type - set the name of threebody file and bead type for the pair style threebody/table -A hybrid pair style is used, where pair forces are calculated as a tabulated interaction (table_CG_CG.txt) and the pair style 3b/table is only used to calculate the three-body forces. -The tabulated pair interaction is the same as in the example of the sw/3b/table pair style: examples/PACKAGES/pair_sw_3b_table +A hybrid pair style is used, where pair forces are calculated as a tabulated interaction (table_CG_CG.txt) and the pair style threebody/table is only used to calculate the three-body forces. +The tabulated pair interaction is the same as in the example of the sw/angle/table pair style: examples/PACKAGES/pair_sw_angle_table -To run the simulation, one needs an additional 3body file (spce.3b). +To run the simulation, one needs an additional threebody file (spce.3b). It has the following structure: - type - relates to keyword type in LAMMPS input file @@ -46,18 +46,18 @@ As there is only one atom type (1), the force table is symmetric and contains "M The LAMMPS simulation is a standard nvt simulation. A dump file is output with the positions and forces every 10 time steps. You can calculate the pair distribution and compare it to the ones in the publication. -For the second part of the example, have a look at the LAMMPS data file (spce_2.data), the input file (spce_2.in) and the three-body file (spce_2.3b). +For the second part of the example, have a look at the LAMMPS data file (spce_2.data), the input file (spce_2.in) and the threebody file (spce_2.3b). Running the second part, you will in fact perform the same MD simulation as in the first part of the example. However, the atom type of the first 100 CG water molecules has been changed from 1 to 2. This is done to demonstrate how to run a simulation with different atom types. Again, lammps input file (spce_2.in) contains the lines specifying the pair style and coefficients: -- pair_style hybrid/overlay table linear 1200 3b/table - use a combination of pair style table with 1200 linear table entries and the pair style 3b/table +- pair_style hybrid/overlay table linear 1200 threebody/table - use a combination of pair style table with 1200 linear table entries and the pair style threebody/table - pair_coeff 1 1 table table_CG_CG.txt VOTCA - set the table name and keyword for the pair style table -- pair_coeff * * 3b/table spce_2.3b type1 type2 - set the name of 3body file and bead type for the pair style 3b/table +- pair_coeff * * threebody/table spce_2.3b type1 type2 - set the name of threebody file and bead type for the pair style threebody/table -Now, the atom type 1 is mapped to the element type1 and the atom type 2 is mapped to the element type2 in the 3body file (spce_2.3b). -For this (artificial) two-element simulation, the 3body file now contain 8 entries for: type1 type1 type1, type1 type1 type2, type1 type2 type1, type1 type2 type2, type2 type1 type1, type2 type1 type2, type2 type2 type1, type2 type2 type2. +Now, the atom type 1 is mapped to the element type1 and the atom type 2 is mapped to the element type2 in the threebody file (spce_2.3b). +For this (artificial) two-element simulation, the threebody file now contain 8 entries for: type1 type1 type1, type1 type1 type2, type1 type2 type1, type1 type2 type2, type2 type1 type1, type2 type1 type2, type2 type2 type1, type2 type2 type2. Each entry has the same structure as above. However, entries where the second and the third element are different require a different force table (1-1-2.table) instead of (1-1-1.table). 1-1-2.table contains exactly the force constants as 1-1-1.table. However it has to have the asymmetric structure where both interparticle distances (r_ij and r_ik) are varied from rmin to rmax and therefore contains "M = 2 * N * N * N" (2 * 12 * 12 * 12 = 3456) entries. diff --git a/examples/PACKAGES/pair_3b_table/calculate_distributions.xml b/examples/PACKAGES/pair_threebody_table/calculate_distributions.xml similarity index 100% rename from examples/PACKAGES/pair_3b_table/calculate_distributions.xml rename to examples/PACKAGES/pair_threebody_table/calculate_distributions.xml diff --git a/examples/PACKAGES/pair_3b_table/run.sh b/examples/PACKAGES/pair_threebody_table/run.sh similarity index 100% rename from examples/PACKAGES/pair_3b_table/run.sh rename to examples/PACKAGES/pair_threebody_table/run.sh diff --git a/examples/PACKAGES/pair_3b_table/spce.3b b/examples/PACKAGES/pair_threebody_table/spce.3b similarity index 100% rename from examples/PACKAGES/pair_3b_table/spce.3b rename to examples/PACKAGES/pair_threebody_table/spce.3b diff --git a/examples/PACKAGES/pair_3b_table/spce.data b/examples/PACKAGES/pair_threebody_table/spce.data similarity index 100% rename from examples/PACKAGES/pair_3b_table/spce.data rename to examples/PACKAGES/pair_threebody_table/spce.data diff --git a/examples/PACKAGES/pair_3b_table/spce.in b/examples/PACKAGES/pair_threebody_table/spce.in similarity index 83% rename from examples/PACKAGES/pair_3b_table/spce.in rename to examples/PACKAGES/pair_threebody_table/spce.in index c5b72c4f9a..2ca97708c6 100644 --- a/examples/PACKAGES/pair_3b_table/spce.in +++ b/examples/PACKAGES/pair_threebody_table/spce.in @@ -7,12 +7,12 @@ read_data spce.data #hybrid pair style consisting of #pair_style table to read in CG pair potential -#pair_style 3b/table for tabulated 3b interactions -pair_style hybrid/overlay table linear 1200 3b/table +#pair_style threebody/table for tabulated threebody interactions +pair_style hybrid/overlay table linear 1200 threebody/table #pair coefficients pair_coeff 1 1 table table_CG_CG.txt VOTCA -pair_coeff * * 3b/table spce.3b type +pair_coeff * * threebody/table spce.3b type #nvt run with nose-hoover thermostat #time coupling of 100 ts for thermostat diff --git a/examples/PACKAGES/pair_3b_table/spce_2.3b b/examples/PACKAGES/pair_threebody_table/spce_2.3b similarity index 100% rename from examples/PACKAGES/pair_3b_table/spce_2.3b rename to examples/PACKAGES/pair_threebody_table/spce_2.3b diff --git a/examples/PACKAGES/pair_3b_table/spce_2.data b/examples/PACKAGES/pair_threebody_table/spce_2.data similarity index 100% rename from examples/PACKAGES/pair_3b_table/spce_2.data rename to examples/PACKAGES/pair_threebody_table/spce_2.data diff --git a/examples/PACKAGES/pair_3b_table/spce_2.in b/examples/PACKAGES/pair_threebody_table/spce_2.in similarity index 82% rename from examples/PACKAGES/pair_3b_table/spce_2.in rename to examples/PACKAGES/pair_threebody_table/spce_2.in index 55db11b7cb..e05df5d719 100644 --- a/examples/PACKAGES/pair_3b_table/spce_2.in +++ b/examples/PACKAGES/pair_threebody_table/spce_2.in @@ -7,12 +7,12 @@ read_data spce_2.data #hybrid pair style consisting of #pair_style table to read in CG pair potential -#pair_style 3b/table for tabulated 3b interactions -pair_style hybrid/overlay table linear 1200 3b/table +#pair_style threebody/table for tabulated threebody interactions +pair_style hybrid/overlay table linear 1200 threebody/table #pair coefficients pair_coeff * * table table_CG_CG.txt VOTCA -pair_coeff * * 3b/table spce_2.3b type1 type2 +pair_coeff * * threebody/table spce_2.3b type1 type2 #nvt run with nose-hoover thermostat #time coupling of 100 ts for thermostat diff --git a/examples/PACKAGES/pair_3b_table/table_CG_CG.txt b/examples/PACKAGES/pair_threebody_table/table_CG_CG.txt similarity index 100% rename from examples/PACKAGES/pair_3b_table/table_CG_CG.txt rename to examples/PACKAGES/pair_threebody_table/table_CG_CG.txt