| 1 |
Ethylene, Benzene mixture using PACKMOL |
| 2 |
============== |
| 3 |
This example also shows how to use moltemplate in together with PACKMOL to create mixture of two small organic molecules using the *OPLSAA* force field. [PACKMOL](http://m3g.iqm.unicamp.br/packmol/home.shtml) was used to generate the initial coordinates of the system. PACKMOL is a useful program for generating atomic coordinates. In this example, moltemplate.sh is only used to create the topology, force-field and charges, and PACKMOL generates the coordinates, which moltemplate reads (in "step 1"). Moltemplate can also be used for generating atomic coordinates, especially for mixing many small molecules together. However I wanted to demonstrate how to combine PACKMOL with moltemplate.sh. In some other scenarios, such as protein solvation, PACKMOL does a much better job than moltemplate. |
| 4 |
|
| 5 |
|
| 6 |
#### Images |
| 7 |
<img src="images/ethylene.jpg" width=110> <img src="images/plus.svg" height=80> <img src="images/benzene.jpg" width=110> <img src="images/rightarrow.svg" height=80> <img src="images/ethylene+benzene_box80x80x80_LR.jpg" width=200> |
| 8 |
|
| 9 |
The simulation size and number of ethylene and benzene is specified in the [mix_ethylene+benzene.inp](./packmol_files/mix_ethylene+benzene.inp) and [system.lt](./moltemplate_files/system.lt) files. (The numbers in these files must agree.) The simulation contitions can be controlled by editing the [run.in.npt](run.in.npt) file. |
| 10 |
|
| 11 |
## Instructions |
| 12 |
|
| 13 |
1) To build the files which LAMMPS needs, follow the instructions in: |
| 14 |
[README_setup.sh](README_setup.sh) |
| 15 |
|
| 16 |
2) To run LAMMPS with these files, follow these instructions: |
| 17 |
[README_run.sh](README_run.sh) |
| 18 |
|
| 19 |
(The instructions in "README_remove_irrelevant_info.sh" are optional. *(If you notice a problem with this example, please [report it](../README.md).*) |
| 20 |
|
| 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. |