| 1 |
NIPAM polymer in water with ions |
| 2 |
============== |
| 3 |
|
| 4 |
<img src="images/NIPAM_monomer.jpg" width=60> x10 <img src="images/plus.svg" height=80> <img src="images/wat.jpg" width=70> x970 <img src="images/plus.svg" height=80> <img src="images/Ca++.jpg" width=40> <img src="images/plus.svg" height=80> <img src="images/Cl-.jpg" width=40> x2 |
| 5 |
|
| 6 |
<img src="images/rightarrow.svg" height=80> <img src="images/t=0.jpg" width=170> <img src="images/rightarrow.svg" height=80> **LAMMPS** <img src="images/rightarrow.svg" height=80> <img src="images/t=2200000fs.jpg" width=170> |
| 7 |
|
| 8 |
|
| 9 |
### Description |
| 10 |
|
| 11 |
A NIPAM polymer (10mer) immersed in water with Ca++ and Cl- ions |
| 12 |
using the *OPLSAA* force field. |
| 13 |
In this example, the NIPAM polymer (defined in |
| 14 |
[NIPAM_polymer_10mer.lt](./moltemplate_files/NIPAM_polymer_10mer.lt)) |
| 15 |
was built from 10 "NIPAM_monomer" subunits |
| 16 |
(defined in [NIPAM.lt](./moltemplate_files/NIPAM.lt)) |
| 17 |
and mixed with 970 (SPC/E) water molecules, |
| 18 |
one Ca++ ion and two Cl- ions. |
| 19 |
The 970 water molecules and 3 ions were initially arranged in an 10x10x10 |
| 20 |
lattice (with 27 vacancies so the total sums to 10\*10\*10). |
| 21 |
The polymer was moved slightly to avoid overlap with the water molecules. |
| 22 |
*(Alternatively, I could have usde PACKMOL to create random mixtures |
| 23 |
of molecules.)* |
| 24 |
|
| 25 |
|
| 26 |
The number of molecules, positions, and simulation box size can be |
| 27 |
controlled by editing the [system.lt](moltemplate_files/system.lt) file. |
| 28 |
The simulation contitions can be controlled by editing the |
| 29 |
[run.in.npt](./run.in.npt) and [run.in.npt](./run.in.nvt) files. |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
## Atom types used |
| 34 |
|
| 35 |
(See the [NIPAM.lt](./moltemplate_files/NIPAM.lt) file for details.) |
| 36 |
|
| 37 |
<img src="images/NIPAM_monomer_OPLS.jpg" width=200> |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
## Instructions |
| 42 |
|
| 43 |
1) To build the files which LAMMPS needs, follow the instructions in: |
| 44 |
[README_setup.sh](README_setup.sh) |
| 45 |
|
| 46 |
2) To run LAMMPS with these files, follow these instructions: |
| 47 |
[README_run.sh](README_run.sh) |
| 48 |
|
| 49 |
(The instructions in "README_remove_irrelevant_info.sh" are optional. *(If you notice a problem with this example, please [report it](../README.md).*) |
| 50 |
|
| 51 |
|
| 52 |
### Customizing atomic charges |
| 53 |
|
| 54 |
In this example, atomic charge for OPLSAA atoms is determined by @atom type |
| 55 |
*(...according to a lookup table located at the beginning of the |
| 56 |
["oplsaa2024.lt"](../../../../moltemplate/force_fields/oplsaa2024.lt) file)*. |
| 57 |
*(Any atomic charges listed in the "Data Atoms" section of your molecules' |
| 58 |
LT files will be ignored.)* |
| 59 |
**These charges can be overridden.** |
| 60 |
See [here](../README.md#Customizing-atomic-charges-in-OPLSAA-molecules) |
| 61 |
for instructions explaining how to customize atomic charge. |
| 62 |
|
| 63 |
|
| 64 |
### Credit |
| 65 |
|
| 66 |
This example is a modified version of the |
| 67 |
NIPAM polymer example created by Otello M. Roscioni (MaterialX) for the |
| 68 |
[moltemplate howto documentation](https://docs.lammps.org/Howto_moltemplate.html). |
| 69 |
Thanks Otello! |