2007-06-23 07:46:37 +08:00
|
|
|
# Point dipoles in a 2d box
|
|
|
|
|
|
|
|
units lj
|
2011-04-14 05:40:28 +08:00
|
|
|
atom_style hybrid sphere dipole
|
2007-06-23 07:46:37 +08:00
|
|
|
dimension 2
|
|
|
|
|
|
|
|
lattice sq2 0.7
|
|
|
|
region box block 0 10 0 10 -0.5 0.5
|
|
|
|
create_box 1 box
|
|
|
|
create_atoms 1 box
|
|
|
|
|
2011-06-20 22:26:28 +08:00
|
|
|
# need both mass settings due to hybrid atom style
|
|
|
|
|
|
|
|
mass 1 1.0
|
2011-04-14 05:40:28 +08:00
|
|
|
set group all mass 1.0
|
|
|
|
set group all dipole/random 98934 0.75
|
2007-06-23 07:46:37 +08:00
|
|
|
|
|
|
|
velocity all create 0.0 87287 mom no
|
|
|
|
|
|
|
|
pair_style dipole/cut 2.5
|
|
|
|
pair_coeff * * 1.0 1.0
|
|
|
|
|
|
|
|
neighbor 0.3 bin
|
|
|
|
neigh_modify delay 0
|
|
|
|
|
2008-03-19 05:28:18 +08:00
|
|
|
fix 1 all nve/sphere update dipole
|
2007-06-23 07:46:37 +08:00
|
|
|
fix 2 all enforce2d
|
|
|
|
|
|
|
|
timestep 0.005
|
|
|
|
|
2008-03-19 05:28:18 +08:00
|
|
|
compute erot all erotate/sphere
|
|
|
|
thermo_style custom step temp epair c_erot etotal press
|
2007-06-23 07:46:37 +08:00
|
|
|
thermo 500
|
|
|
|
|
2009-01-10 06:18:56 +08:00
|
|
|
dump 1 all custom 200 dump.dipole id type x y z mux muy muz
|
2007-06-23 07:46:37 +08:00
|
|
|
|
|
|
|
run 10000
|