Skip to content

Commit a47f3ae

Browse files
committed
updated tutorials
1 parent 5cf1ff4 commit a47f3ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+98782
-82800
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ the main repository for LAMMPS tutorial.
2929

3030
- [Simon Gravelle](https://github.com/simongravelle) (corr. author),
3131
Université Grenoble Alpes, CNRS, LIPhy, 38000 Grenoble, France.
32+
- [Cecilia M. S. Alvares](https://github.com/cecimarques),
33+
Department of Chemistry, University of Warwick, Coventry CV4 7AL, United Kingdom
3234
- [Jacob R. Gissinger](https://www.stevens.edu/profile/jgissing),
3335
Stevens Institute of Technology, Hoboken, NJ 07030, USA.
3436
- [Axel Kohlmeyer](https://sites.google.com/site/akohlmey),

tutorial1/improved.md.lmp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# LAMMPS Input File (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Input File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
# 1) Initialization
@@ -34,7 +35,7 @@ compute sumcoor12 grp_t1 reduce ave c_coor12
3435

3536
# 3) Settings
3637

37-
# 4) Visualization
38+
# 4) Monitoring
3839
thermo 1000
3940
thermo_style custom step temp pe ke etotal &
4041
press v_n1_in v_n2_in c_sumcoor12

tutorial1/improved.min.lmp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# LAMMPS Input File (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Input File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
# 1) Initialization
@@ -25,7 +26,7 @@ pair_style lj/cut 4.0
2526
pair_coeff 1 1 1.0 1.0
2627
pair_coeff 2 2 0.5 3.0
2728

28-
# 4) Visualization
29+
# 4) Monitoring
2930
thermo 10
3031
thermo_style custom step etotal press
3132

tutorial1/initial.lmp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# LAMMPS Input File (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Input File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
# PART A - ENERGY MINIMIZATION
@@ -9,9 +10,8 @@ units lj
910
dimension 3
1011
atom_style atomic
1112
boundary p p p
12-
# 2) System definition
1313

14-
# 2) System definition
14+
# 2) System definition
1515
region simbox block -20 20 -20 20 -20 20
1616
create_box 2 simbox
1717
create_atoms 1 random 1500 34134 simbox overlap 0.3
@@ -24,15 +24,15 @@ pair_style lj/cut 4.0
2424
pair_coeff 1 1 1.0 1.0
2525
pair_coeff 2 2 0.5 3.0
2626

27-
# 4) Visualization
27+
# 4) Monitoring
2828
thermo 10
2929
thermo_style custom step etotal press
3030

3131
# 5) Run
3232
minimize 1.0e-6 1.0e-6 1000 10000
3333

3434
# PART B - MOLECULAR DYNAMICS
35-
# 4) Visualization
35+
# 4) Monitoring
3636
thermo 50
3737
thermo_style custom step temp etotal pe ke press
3838
dump viz all image 100 myimage-*.ppm type type &

tutorial2/breakable-with-tip.lmp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Python script (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Input File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
units metal

tutorial2/breakable-yaml-reader.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Python Script
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
5+
# Find more on GitHub: https://github.com/lammpstutorials
16
import numpy as np
27
import re
38
import yaml

tutorial2/breakable.lmp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Python script (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Input File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
units metal

tutorial2/unbreakable-yaml-reader.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Python script (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# Python Script
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
import numpy as np

tutorial2/unbreakable.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# LAMMPS Input File (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
3-
# The DOI will be added upon publication
1+
# LAMMPS Include File
2+
# Licensed under CC BY 4.0
3+
# By Simon Gravelle, Cecilia M. S. Alvares, Jacob R. Gissinger, and Axel Kohlmeyer
4+
# Please cite doi.org/10.48550/arXiv.2503.14020
45
# Find more on GitHub: https://github.com/lammpstutorials
56

67
pair_coeff 1 1 0.066 3.4

0 commit comments

Comments
 (0)