| 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 |
|
| 6 |
#### Images |
| 7 |
|
| 8 |
<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> |
| 9 |
|
| 10 |
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). |
| 11 |
|
| 12 |
|
| 13 |
### *WARNING: The atomic charges in this examples are not correct* |
| 14 |
|
| 15 |
The AMBER for field does not include charge information. (In this example, they were borrowed from the corresponding atoms in the ["oplsaa2024.lt" file](../../../../moltemplate/force_fields/oplsaa2024.lt). Do not do this!) |
| 16 |
|
| 17 |
The generation of atomic partial charges requires 3rd party software. |
| 18 |
|
| 19 |
For suggestions how to calculate charges correctly, see [README.md](../README.md). Then choose a 3rd party program to calculate partial charges for the atoms in each type of molecule. Then edit the corresponding ".lt" files in the "moltemplate_files" directory accordingly. |
| 20 |
|
| 21 |
|
| 22 |
## Instructions |
| 23 |
|
| 24 |
1) To build the files which LAMMPS needs, follow the instructions in: |
| 25 |
[README_setup.sh](README_setup.sh) |
| 26 |
|
| 27 |
2) To run LAMMPS with these files, follow these instructions: |
| 28 |
[README_run.sh](README_run.sh) |
| 29 |
|
| 30 |
(The instructions in "README_remove_irrelevant_info.sh" are optional. *(If you notice a problem with this example, please [report it](../README.md).*) |
| 31 |
|
| 32 |
|
| 33 |
### Requirements |
| 34 |
|
| 35 |
This example requires a version of LAMMPS compiled with support for the optional "EXTRA-MOLECULE" package (because the AMBER force field currently uses *dihedral_style fourier*). If you encounter the error *"Invalid dihedral_style"*, then see [this page](https://docs.lammps.org/Build_package.html) for instructions to compile LAMMPS to support this package. |