Skip to content

Commit 8acd628

Browse files
Merge pull request #36 from lammpstutorials/improve-tutorial-5
Improve tutorial 5
2 parents feaaba7 + 6c10b11 commit 8acd628

36 files changed

+29360
-246
lines changed

figures/SIO-charge.png

50.7 KB
Loading

figures/SIO-deformed-charge.png

60.5 KB
Loading

figures/SIO-distribution.png

64.9 KB
Loading

files/tutorial5/.manifest

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# LAMMPS Tutorial manifest file. This file determines what is downloaded when.
2+
# comments start with a # as the first character.
3+
# comments and empty lines are ignored
4+
##############################################################################
5+
# 1) input file templates and data files
6+
# the first file will be automatically loaded
7+
decorate.lmp
8+
deform.lmp
9+
reaxCHOFe.inc
10+
relax.lmp
11+
silica.data
12+
13+
# 2) solution files
14+
# only downloaded on request
15+
decorate-H.histo
16+
decorate.lmp
17+
decorate.log
18+
decorate-O.histo
19+
decorate.png
20+
decorate-Si.histo
21+
decorate.species
22+
deform.data
23+
deform.ipynb
24+
deform.lmp
25+
deform.log
26+
deform-mod.data
27+
deform-O.histo
28+
deform.png
29+
deform-Si.histo
30+
deform.species
31+
reaxCHOFe.inc
32+
relax.data
33+
relax.ipynb
34+
relax.lmp
35+
relax.log
36+
relax-O.histo
37+
relax.png
38+
relax-Si.histo
39+
relax.species
40+
silica.data
41+
42+
# 3) support files
43+

files/tutorial5/decorate.lmp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
units real
3+
atom_style full
4+
5+
read_data deform-mod.data
6+
displace_atoms all move −12 0 0 # optional
7+
8+
pair_style reaxff NULL safezone 3.0 mincap 150
9+
pair_coeff * * reaxCHOFe.inc Si O H
10+
fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 400

files/tutorial5/deform.lmp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
units real
3+
atom_style full
4+
5+
read_data relax.data
6+
7+
pair_style reaxff NULL safezone 3.0 mincap 150
8+
pair_coeff * * reaxCHOFe.inc Si O
9+
fix myqeq all qeq/reaxff 1 0.0 10.0 1.0e-6 reaxff maxiter 400
10+
11+
group grpSi type Si
12+
group grpO type O
13+
variable qSi equal charge(grpSi)/count(grpSi)
14+
variable qO equal charge(grpO)/count(grpO)
15+
variable vq atom q
16+
17+
thermo 200
18+
thermo_style custom step temp etotal press vol v_qSi v_qO
19+
dump viz all image 100 myimage-*.ppm q &
20+
type shiny 0.1 box no 0.01 view 180 90 zoom 2.3 size 1200 500
21+
dump_modify viz adiam Si 2.6 adiam O 2.3 backcolor white &
22+
amap -1 2 ca 0.0 3 min royalblue 0 green max orangered

files/tutorial5/dump-reader.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

files/tutorial5/relax.lmp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
units real
3+
atom_style full
4+
5+
read_data silica.data
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Histogrammed data for fix myhis3
2+
# TimeStep Number-of-bins Total-counts Missing-counts Min-value Max-value
3+
# Bin Coord Count Count/Total

0 commit comments

Comments
 (0)