forked from ipcamit/lammps-st3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlammps-init.sublime-snippet
41 lines (35 loc) · 1018 Bytes
/
lammps-init.sublime-snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<snippet>
<content><![CDATA[
# Processing Initialzation
print "${1:titiles}" file ${2:file}.out
variable ${3:nrun} index 1
shell date > ini.time
label loop
# System Initialization
units metal
dimension 3
boundary p p p
atom_style atomic
lattice bcc ${4:3.14} ${5:orient z 1 1 1 orient x -1 -1 2 orient y 1 -1 0}
# Box & atoms
region box block ${6:-5 5 -5 5 -5 5}
create_box ${7:2} box
create_atoms 1 box
# Interactions
include pot
thermo ${8:10}
thermo_style custom ${9:step}
# Run
# Ending
clear
next ${3:nrun}
jump SELF loop
shell date > end.time
print "Program Compeleted!"
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>init</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.lammps</scope>
<description>Initial LAMMPS settings</description>
</snippet>