Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions files/tutorial3/solution/merge.lmp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Python script (License CC BY 4.0)
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
# LAMMPS input file (License CC BY 4.0)
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
# The DOI will be added upon publication
# Find more on GitHub: https://github.com/lammpstutorials

Expand Down
35 changes: 35 additions & 0 deletions files/tutorial3/solution/pull-with-tip.lmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# LAMMPS input file (License CC BY 4.0)
# By Simon Gravelle, Jacob R. Gissinger, and Axel Kohlmeyer
# The DOI will be added upon publication
# Find more on GitHub: https://github.com/lammpstutorials

kspace_style pppm 1e-5
read_restart merge.restart

group ends type OAlc
variable xcm equal xcm(ends,x)
variable oxies atom type==label2type(atom,OAlc)
variable end1 atom v_oxies*(x>v_xcm)
variable end2 atom v_oxies*(x<v_xcm)
group topull1 variable end1
group topull2 variable end2

dump mydmp all atom 1000 pull.lammpstrj

timestep 1.0
fix mynvt all nvt temp 300 300 100
fix myrct PEG recenter 0 0 0 shift all

compute rgyr PEG gyration
compute prop PEG property/local dtype
compute dphi PEG dihedral/local phi

thermo_style custom step temp etotal c_rgyr
thermo 250

run 15000

fix myaf1 topull1 addforce 10 0 0
fix myaf2 topull2 addforce -10 0 0

run 15000
Loading