Skip to content

Commit 53d7cd1

Browse files
Merge pull request #35 from lammpstutorials/improve-tutorial-4
Improve and clean tutorial 4
2 parents 64ea4aa + ee0f2d9 commit 53d7cd1

37 files changed

+16858
-339
lines changed

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1+
# Makefile for building lammps-tutorials.pdf
2+
all: build
3+
4+
# Target to build the PDF
15
build:
2-
latexmk -pdf lammps-tutorials.tex
6+
latexmk -pdf lammps-tutorials.tex
7+
8+
# Target to clean up generated files
9+
clean:
10+
rm -f lammps-tutorials.pdf \
11+
lammps-tutorials.aux \
12+
lammps-tutorials.log \
13+
lammps-tutorials.out \
14+
lammps-tutorials.bbl \
15+
lammps-tutorials.blg

figures/NANOSHEAR-density.png

-79.2 KB
Binary file not shown.
103 KB
Loading

figures/NANOSHEAR-minimization.png

44.9 KB
Loading

figures/NANOSHEAR-profiles.png

128 KB
Loading

figures/NANOSHEAR-velocity.png

-114 KB
Binary file not shown.

files/tutorial4/.manifest

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
groups.inc
8+
parameters.inc
9+
create.lmp
10+
minimize.lmp
11+
equilibrate.lmp
12+
shearing.lmp
13+
water.mol
14+
15+
# 2) solution files
16+
# only downloaded on request
17+
solution/groups.inc
18+
solution/parameters.inc
19+
solution/create.data
20+
solution/create.lmp
21+
solution/create.log
22+
solution/minimize.data
23+
solution/minimize.ipynb
24+
solution/minimize.lmp
25+
solution/minimize.log
26+
solution/equilibrate.data
27+
solution/equilibrate.ipynb
28+
solution/equilibrate.lmp
29+
solution/equilibrate.log
30+
solution/shearing-ions.dat
31+
solution/shearing.ipynb
32+
solution/shearing.lmp
33+
solution/shearing.log
34+
solution/shearing.png
35+
solution/shearing-wall.dat
36+
solution/shearing-water.dat
37+
solution/water.mol
38+
39+
# 3) support files
40+

files/tutorial4/create.lmp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
boundary p p f
3+
units real
4+
atom_style full
5+
bond_style harmonic
6+
angle_style harmonic
7+
pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
8+
kspace_style pppm/tip4p 1.0e−5
9+
kspace_modify slab 3.0
10+

files/tutorial4/equilibrate.lmp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
boundary p p f
3+
units real
4+
atom_style full
5+
bond_style harmonic
6+
angle_style harmonic
7+
pair_style lj/cut/tip4p/long O H O−H H−O−H 0.1546 12.0
8+
kspace_style pppm/tip4p 1.0e−5
9+
kspace_modify slab 3.0
10+
11+
read_data minimize.data
12+
13+
include parameters.inc
14+
include groups.inc
15+

files/tutorial4/groups.inc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
group H2O type O H
3+
group Na type Na+
4+
group Cl type Cl
5+
group ions union Na Cl
6+
group fluid union H2O ions
7+
8+
group wall type WALL
9+
region rtop block INF INF INF INF 0 INF
10+
region rbot block INF INF INF INF INF 0
11+
group top region rtop
12+
group bot region rbot
13+
group walltop intersect wall top
14+
group wallbot intersect wall bot

0 commit comments

Comments
 (0)