Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lammps_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cchiang2
lammps_tutorial
Commits
fabac839
Commit
fabac839
authored
1 year ago
by
s1309877
Browse files
Options
Downloads
Patches
Plain Diff
Add the pair_modify shift command and visualisation tips
parent
725ebf02
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tut0_lj_fluid/init.sh
+5
-0
5 additions, 0 deletions
tut0_lj_fluid/init.sh
tut1_polymer/init.sh
+1
-0
1 addition, 0 deletions
tut1_polymer/init.sh
tut2_dna_protein/init.sh
+1
-0
1 addition, 0 deletions
tut2_dna_protein/init.sh
vmd_visualisation_tips.txt
+15
-0
15 additions, 0 deletions
vmd_visualisation_tips.txt
with
22 additions
and
0 deletions
tut0_lj_fluid/init.sh
+
5
−
0
View file @
fabac839
...
...
@@ -180,6 +180,11 @@ run ${run_init_time}
# If rc > 2^(1/6), then there is a region where the potential is attractive
pair_style lj/cut
${
rc_0
}
# Make sure the LJ potential is shifted by the energy value at the cutoff.
# This only changes the pairwise energy values output by LAMMPS but has no
# effect on the actual dynamics
pair_modify shift yes
# Set the params for the pairwise interactions between individual atom types
# Key params: atom_type_1 atom_type_2 epsilon sigma rc
# Try changing epsilon and rc (cutoff) and see how that affects the dynamics!
...
...
This diff is collapsed.
Click to expand it.
tut1_polymer/init.sh
+
1
−
0
View file @
fabac839
...
...
@@ -221,6 +221,7 @@ angle_coeff 1 ${l_p}
# Switch from soft to the purely repulsive LJ (or WCA) potential
pair_style lj/cut
${
rc_0
}
pair_modify shift yes
pair_coeff * * 1.0
${
sigma
}
${
rc_0
}
run
${
run_init_time_2
}
...
...
This diff is collapsed.
Click to expand it.
tut2_dna_protein/init.sh
+
1
−
0
View file @
fabac839
...
...
@@ -213,6 +213,7 @@ angle_coeff 1 ${l_p}
# Switch from soft to the purely repulsive LJ (or WCA) potential
pair_style lj/cut
${
rc_0
}
pair_modify shift yes
pair_coeff * * 1.0
${
sigma
}
${
rc_0
}
run
${
run_init_time_2
}
...
...
This diff is collapsed.
Click to expand it.
vmd_visualisation_tips.txt
0 → 100644
+
15
−
0
View file @
fabac839
Note that because LAMMPS does not output the bead positions in order (i.e., by
the bead index) while VMD thinks that is the case, beads are linked together
wrongly in the visualisation. We can fix this by typing the following set of
commands in the terminal after loading the molecule:
topo clearbonds
set N {nbeads}
for {set i 0} {$i < [expr $N-1]} {incr i} {
set j [expr $i+1]
topo addbond $i $j
}
[You will need to replace the variable nbeads with the actual number of beads
in the polymer]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment