naigner

infile crack GPU

Oct 20th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. # 2d LJ crack simulation
  2.  
  3. #suffix cuda
  4. #package cuda gpu/node special 1 1
  5. suffix gpu
  6. package gpu force/neigh 1 1 1.0
  7. newton off
  8.  
  9. dimension 2
  10. boundary s s p
  11.  
  12. atom_style atomic
  13. neighbor 0.3 bin
  14. neigh_modify delay 5
  15.  
  16. # create geometry
  17.  
  18. lattice hex 0.93
  19. region box block 0 100 0 40 -0.25 0.25
  20. create_box 5 box
  21. create_atoms 1 box
  22.  
  23. mass 1 1.0
  24. mass 2 1.0
  25. mass 3 1.0
  26. mass 4 1.0
  27. mass 5 1.0
  28.  
  29. # LJ potentials
  30.  
  31. pair_style lj/cut 2.5
  32. pair_coeff * * 1.0 1.0 2.5
  33.  
  34. # define groups
  35.  
  36. region 1 block INF INF INF 1.25 INF INF
  37. group lower region 1
  38. region 2 block INF INF 38.75 INF INF INF
  39. group upper region 2
  40. group boundary union lower upper
  41. group mobile subtract all boundary
  42.  
  43. region leftupper block INF 20 20 INF INF INF
  44. region leftlower block INF 20 INF 20 INF INF
  45. group leftupper region leftupper
  46. group leftlower region leftlower
  47.  
  48. set group leftupper type 2
  49. set group leftlower type 3
  50. set group lower type 4
  51. set group upper type 5
  52.  
  53. # initial velocities
  54.  
  55. compute new mobile temp
  56. velocity mobile create 0.01 887723 temp new
  57. velocity upper set 0.0 0.3 0.0
  58. velocity mobile ramp vy 0.0 0.3 y 1.25 38.75 sum yes
  59.  
  60. # fixes
  61.  
  62. fix 1 all nve
  63. fix 2 boundary setforce NULL 0.0 0.0
  64.  
  65. # run
  66.  
  67. timestep 0.003
  68. thermo 200
  69. thermo_modify temp new
  70.  
  71. neigh_modify exclude type 2 3
  72. dump 1 all atom 500 dump.crack
  73. run 5000
  74.  
  75.  
Add Comment
Please, Sign In to add comment