| 1 |
TIP5P water, ethanol mixture |
| 2 |
==================== |
| 3 |
This example of a mixture of rigid TIP5P water with an ordinary (flexible) molecule (ethanol) was contributed by Cheng Chen (Queen Mary University) on 2018-8-02. The ethanol molecules use the OPLSAA force-field, but the water molecules do not. The water molecules were initially arranged in a rectangular lattice. The ethanol molecules were also arranged in a lattice, and were shifted to avoid overlap with the water molecules. *(Alternatively, you can create a single lattice and specify the number of water and ethanol molecules you want in it using moltemplate's "new random([],[])" command, which is explained in [the manual](https://moltemplate.org/doc/moltemplate_manual.pdf#subsubsection.8.9.1). This gives you more control over the concentration of each ingredient. You can also use PACKMOL to create random mixtures of molecules.)* |
| 4 |
|
| 5 |
The "fix rigid" command (or "fix rigid/nph/small") was used to integrate the equations of motion for the TIP5P molecule. A combination of "fix nve" and "fix langevin" was used to integrate the equations of motion for the flexible ethanol molecule. |
| 6 |
|
| 7 |
However there are multiple other ways to run these kinds of simulations. A combination of "fix rigid/npt/small" and "fix nvt" might also work (without "fix langevin"). For a discussion of alternative ways to simulate mixtures of flexible and rigid molecules, see the [run.in.npt](run.in.npt) file. |
| 8 |
|
| 9 |
### Instructions |
| 10 |
|
| 11 |
More detailed instructions on how to build LAMMPS input files and |
| 12 |
run a short simulation are provided in other README files. |
| 13 |
|
| 14 |
1) To build the files which LAMMPS needs, follow the instructions in: |
| 15 |
[README_setup.sh](README_setup.sh) |
| 16 |
|
| 17 |
2) To run LAMMPS with these files, follow these instructions: |
| 18 |
[README_run.sh](README_run.sh) |
| 19 |
|
| 20 |
(The instructions in "README_remove_irrelevant_info.sh" are optional.) |
| 21 |
|
| 22 |
|
| 23 |
### Customizing atomic charges |
| 24 |
|
| 25 |
In this example, atomic charge for OPLSAA atoms is determined by @atom type |
| 26 |
*(...according to a lookup table located at the beginning of the |
| 27 |
["oplsaa2024.lt"](../../../moltemplate/force_fields/oplsaa2024.lt) file)*. |
| 28 |
*(Any atomic charges listed in the "Data Atoms" section of your molecules' |
| 29 |
LT files will be ignored.)* |
| 30 |
**These charges can be overridden.** |
| 31 |
See [here](../README.md#Customizing-atomic-charges-in-OPLSAA-molecules) |
| 32 |
for instructions explaining how to customize atomic charge. |