~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to examples/balance/in.balance.bond.fast

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# 2d circle of particles inside a box with LJ walls
 
2
 
 
3
variable        b index 0
 
4
 
 
5
variable        x index 50
 
6
variable        y index 20
 
7
variable        d index 20
 
8
variable        v index 5
 
9
variable        w index 2
 
10
                
 
11
units           lj
 
12
dimension       2
 
13
atom_style      bond
 
14
boundary        f f p
 
15
 
 
16
lattice         hex 0.85
 
17
region          box block 0 $x 0 $y -0.5 0.5
 
18
create_box      1 box bond/types 1 extra/bond/per/atom 6
 
19
region          circle sphere $(v_d/2+1) $(v_d/2/sqrt(3.0)+1) 0.0 $(v_d/2)
 
20
create_atoms    1 region circle
 
21
mass            1 1.0
 
22
 
 
23
velocity        all create 0.5 87287 loop geom
 
24
velocity        all set $v $w 0 sum yes
 
25
 
 
26
pair_style      lj/cut 2.5
 
27
pair_coeff      1 1 10.0 1.0 2.5
 
28
 
 
29
bond_style      harmonic
 
30
bond_coeff      1 10.0 1.2
 
31
 
 
32
# need to preserve 1-3, 1-4 pairwise interactions during hard collisions
 
33
 
 
34
special_bonds   lj/coul 0 1 1
 
35
create_bonds    all all 1 1.0 1.5
 
36
 
 
37
neighbor        0.3 bin
 
38
neigh_modify    delay 0 every 1 check yes
 
39
 
 
40
fix             1 all nve
 
41
 
 
42
fix             2 all wall/lj93 xlo 0.0 1 1 2.5 xhi $x 1 1 2.5
 
43
fix             3 all wall/lj93 ylo 0.0 1 1 2.5 yhi $y 1 1 2.5
 
44
 
 
45
comm_style      tiled
 
46
comm_modify     cutoff 7.5
 
47
fix             10 all balance 50 0.9 rcb
 
48
 
 
49
#compute         1 all property/atom proc
 
50
#variable        p atom (c_1%10)+1
 
51
#dump            2 all custom 50 tmp.dump id v_p x y z
 
52
 
 
53
#dump            3 all image 50 image.*.jpg v_p type bond atom 0.25 &
 
54
#                adiam 1.0 view 0 0 zoom 1.8 subbox yes 0.02
 
55
#variable        colors string &
 
56
#                "red green blue yellow white &
 
57
#                purple pink orange lime gray"
 
58
#dump_modify     3 pad 5 amap 0 10 sa 1 10 ${colors}
 
59
 
 
60
thermo_style    custom step temp epair press f_10[3] f_10
 
61
thermo          100                
 
62
 
 
63
run             10000