Skip to content

Latest commit

 

History

History
69 lines (45 loc) · 2.72 KB

File metadata and controls

69 lines (45 loc) · 2.72 KB

NIPAM polymer in water with ions

x10 x970 x2

LAMMPS

Description

A NIPAM polymer (10mer) immersed in water with Ca++ and Cl- ions using the OPLSAA force field. In this example, the NIPAM polymer (defined in NIPAM_polymer_10mer.lt) was built from 10 "NIPAM_monomer" subunits (defined in NIPAM.lt) and mixed with 970 (SPC/E) water molecules, one Ca++ ion and two Cl- ions. The 970 water molecules and 3 ions were initially arranged in an 10x10x10 lattice (with 27 vacancies so the total sums to 10*10*10). The polymer was moved slightly to avoid overlap with the water molecules. (Alternatively, I could have usde PACKMOL to create random mixtures of molecules.)

The number of molecules, positions, and simulation box size can be controlled by editing the system.lt file. The simulation contitions can be controlled by editing the run.in.npt and run.in.npt files.

Atom types used

(See the NIPAM.lt file for details.)

Instructions

  1. To build the files which LAMMPS needs, follow the instructions in: README_setup.sh

  2. To run LAMMPS with these files, follow these instructions: README_run.sh

(The instructions in "README_remove_irrelevant_info.sh" are optional. (If you notice a problem with this example, please report it.)

Customizing atomic charges

In this example, atomic charge for OPLSAA atoms is determined by @atom type (...according to a lookup table located at the beginning of the "oplsaa2024.lt" file). (Any atomic charges listed in the "Data Atoms" section of your molecules' LT files will be ignored.) These charges can be overridden. See here for instructions explaining how to customize atomic charge.

Credit

This example is a modified version of the NIPAM polymer example created by Otello M. Roscioni (MaterialX) for the moltemplate howto documentation. Thanks Otello!