| 1 |
Ethylene, Benzene mixture |
| 2 |
============== |
| 3 |
A mixture of two small organic molecules using the *OPLSAA* force field. In this example, the ethylene molecules were initially arranged in a rectangular lattice. The benzene molecules were also arranged in a lattice, and were shifted to avoid overlap with the ethylene molecules. *(Alternatively, you can create a single lattice and specify the number of ethelene and benzene 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 |
#### Images |
| 6 |
|
| 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_t=0_LR.jpg" width=150> <img src="images/rightarrow.svg" height=80> <img src="images/ethylene+benzene_50bar_t=100000_LR.jpg" width=150> |
| 8 |
|
| 9 |
The number of molecules, positions, and simulation box size can be controlled by editing the [system.lt file](moltemplate_files/system.lt). The simulation contitions can be controlled by editing the [run.in.npt file](run.in.npt). |
| 10 |
|
| 11 |
|
| 12 |
## Instructions |
| 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. *(If you notice a problem with this example, please [report it](../README.md).*) |
| 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. |