Skip to content

Commit 6134f5c

Browse files
Merge pull request #56 from lammpstutorials/added-note-on-vmd-ovito
Added a VMD/Ovito tip to tutorial 3
2 parents cfaed05 + c54bef6 commit 6134f5c

File tree

6 files changed

+62229
-6
lines changed

6 files changed

+62229
-6
lines changed

files/tutorial3/solution/merge.lmp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Python script (License CC BY 4.0)
2-
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
1+
# LAMMPS input file (License CC BY 4.0)
2+
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
33
# The DOI will be added upon publication
44
# Find more on GitHub: https://github.com/lammpstutorials
55

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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
4+
# Find more on GitHub: https://github.com/lammpstutorials
5+
6+
kspace_style pppm 1e-5
7+
read_restart merge.restart
8+
9+
group ends type OAlc
10+
variable xcm equal xcm(ends,x)
11+
variable oxies atom type==label2type(atom,OAlc)
12+
variable end1 atom v_oxies*(x>v_xcm)
13+
variable end2 atom v_oxies*(x<v_xcm)
14+
group topull1 variable end1
15+
group topull2 variable end2
16+
17+
dump mydmp all atom 1000 pull.lammpstrj
18+
19+
timestep 1.0
20+
fix mynvt all nvt temp 300 300 100
21+
fix myrct PEG recenter 0 0 0 shift all
22+
23+
compute rgyr PEG gyration
24+
compute prop PEG property/local dtype
25+
compute dphi PEG dihedral/local phi
26+
27+
thermo_style custom step temp etotal c_rgyr
28+
thermo 250
29+
30+
run 15000
31+
32+
fix myaf1 topull1 addforce 10 0 0
33+
fix myaf2 topull2 addforce -10 0 0
34+
35+
run 15000

0 commit comments

Comments
 (0)