| 1 |
import "wall_particle.lt" |
| 2 |
|
| 3 |
# Create an immobile "wall" out of "WallParticle"s |
| 4 |
# arranged in the shape of a tube with radius 9.6 |
| 5 |
|
| 6 |
tube = new WallParticle.move(0,9.6,0) [20].rot(18,3.0,0,0) |
| 7 |
[20].move(3.0,0,0) |
| 8 |
|
| 9 |
|
| 10 |
# Add some "SolventParticle"s to the center of the tube: |
| 11 |
|
| 12 |
import "solvent_particle.lt" |
| 13 |
solvent = new SolventParticle [20].move(3.0,0,0) |
| 14 |
[3].move(0,3.0,0) |
| 15 |
[3].move(0,0,3.0) |
| 16 |
|
| 17 |
# These "solvent" particles currently occupy a rectangular region from |
| 18 |
# 0 to 6.0 in the y and z directions. Center them all using .move(): |
| 19 |
|
| 20 |
solvent[*][*][*].move(0,-3.0,-3.0) |
| 21 |
|
| 22 |
|
| 23 |
# Define the periodic boundary conditions for our system |
| 24 |
|
| 25 |
write_once("Data Boundary") { |
| 26 |
0.0 60.0 xlo xhi |
| 27 |
-20.0 20.0 ylo yhi |
| 28 |
-20.0 20.0 zlo zhi |
| 29 |
} |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
# LAMMPS supports a large number of force-field styles. We must select |
| 35 |
# which ones we need. This information belongs in the "In Init" section (and |
| 36 |
# (you can specify it anywhere in your LT files, multiple times if you like). |
| 37 |
# If different molecules use different force-field styles, you can use hybrid |
| 38 |
# styles. (In this example the molecules share the same pair_style.) |
| 39 |
|
| 40 |
write_once("In Init") { |
| 41 |
units real |
| 42 |
atom_style full |
| 43 |
pair_style lj/cut 9.0 |
| 44 |
# If you have charged molecules immersed in a salty implicit |
| 45 |
# solvent, you might try something like this this instead: |
| 46 |
# pair_style lj/cut/coul/debye 0.1 9.0 |
| 47 |
pair_modify mix arithmetic |
| 48 |
dielectric 80.0 |
| 49 |
special_bonds lj 0.0 0.0 0.0 |
| 50 |
} |
| 51 |
|
| 52 |
|
| 53 |
|