-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathinput.lammps
53 lines (42 loc) · 1.27 KB
/
input.lammps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This LAMMPS input script simulates neutral particles reversibly adsorbing at the surface of a cylindrical nanopore.
# Tested with the 30Jul2021 version of LAMMPS
# Written by Simon Gravelle (https://simongravelle.github.io/)
# Find more scripts here: https://github.com/simongravelle/lammps-input-files
# LAMMPS tutorials for beginners: https://lammpstutorials.github.io/
# basic parameters
units real
newton on off
dimension 3
boundary p p p
atom_style full
pair_style lj/cut 3.367386145
pair_modify shift yes
# read data, define region, import group
read_data data.lammps
region acces cylinder z 0 0 20.0535228296 INF INF
include group.lammps
include parm.lammps
# dynamics : nve + langevin = nvt
fix 1 ions nve
fix 2 ions langevin 300.0 300.0 23.0 33414 zero yes
# bond file for tapping
include bond.lammps
# output properties
thermo 10000
compute Tion ions temp
thermo_modify temp Tion
dump mydmp all atom 10000 dump.lammpstrj
# wall to prevent particle to leave cylinder
fix mur ions wall/region acces lj93 10.0 1.0 1.0
# first step small timestep
timestep 0.1
run 10000
# second equilibration step
timestep 2.0
run 100000
undump mydmp
reset_timestep 0
# save adsorbed status of atoms
fix myavt all ave/time 1000 1 1000 v_Ntot file AdsorbedParticles.dat
# final run
run 1000000