I am simulating a 2D system of spherical colloidal beads in LAMMPS. I have added a torque by using the ‘fix addtorque’ command. The particle is rotating in the simulation as I can see that during visualization. But while dumping the angular velocity it is coming to zero. So is it due to the problem with dump command script or with 2D system? How solve this issue…
Can anybody help me with this…
The input script for the simulation is here;-
dimension 2
units lj
boundary p p p
atom_style sphere
neighbor 1.0 bin
neigh_modify every 1 delay 10
read_data test_sphere.data
pair_style lj/cut 2.5
pair_modify shift yes
pair_coeff 1 1 1.0 1.0 1.122
############# warmup integration #############
minimize 1e-5 1e-5 10000 10000
velocity all ramp vx 0.5 5.0 x 0 150 units box
group sph type 1
fix 1 all nve
fix 2 all langevin 1.0 1.0 10.0 954297 omega yes
fix 2dmini all enforce2d # 2D Simulation
timestep 0.001
thermo 10
run 100000
################# main run ----- compute ###############
fix 6 sph addtorque 0.2 0.2 0.2
fix 8 all nvt/sphere temp 1.00 1.00 10.00 disc # 2D disc
fix 87 all langevin 1.0 1.0 10.0 924856
variable tx equal torque(sph,x)
variable ty equal torque(sph,y)
fix syst sph print 10 “{tx} {ty}” file torque_sphere_ep4.dat
variable wx equal omega(sph,x)
variable wy equal omega(sph,y)
fix systw sph print 10 “{wx} {wy}” file omeg1_sphere_ep4.dat
reset_timestep 0
timestep 0.001
fix 2d all enforce2d # 2D Simulation
thermo_style custom step temp pe etotal press vol epair ebond eangle ecoul
thermo 10
dump 48 sph custom 10 traj_sph_ep4.lammpstrj id type x y z ix iy iz
dump W sph custom 1 omega_ep4.dat id type omegax omegay omegaz
dump 2 sph xyz 10 sph_pos_ep4.xyz
dump 4 sph custom 10 sph_velo_ep4.dat id type vx vy vz
run 1000000
Thanks in advance
-Ligesh