Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.71 KB | None | 0 0
  1. dimension          2
  2. units              si
  3. atom_style         meso
  4.  
  5. # create simulation box
  6. region             box block -0.050e-3 5.044e-3 -0.05e-3 3.044e-3 -1.0e-6 1.0e-6 units box
  7. create_box         3 box
  8.  
  9. # create fluid particles
  10. region             fluid block EDGE EDGE 0.0001e-3 1.499e-3 EDGE EDGE side in units box
  11. lattice            hex 0.025e-3
  12. create_atoms       1 region fluid
  13.  
  14. # create bottom wall
  15. region             bottom-wall block EDGE EDGE -0.05e-3 0.0001e-3 EDGE EDGE side in units box
  16. lattice            hex 0.025e-3
  17. create_atoms       2 region bottom-wall
  18.  
  19. # create top wall
  20. region             top-wall block EDGE EDGE 2.999e-3 EDGE EDGE EDGE side in units box
  21. lattice            hex 0.025e-3
  22. create_atoms       2 region top-wall
  23.  
  24. # create a driver strip of particles, which exerts shear forces on the fluid
  25. region             driver block EDGE EDGE 1.500e-3 2.999e-3 EDGE EDGE side in units box
  26. lattice            hex 0.025e-3
  27. create_atoms       3 region driver
  28.  
  29. group              fluid type 1
  30. group              walls type 2
  31. group              driver type 3
  32. group              integrate_full union fluid driver
  33.  
  34. mass               3 2.0e-7
  35. mass               2 2.0e-7
  36. mass               1 4.0e-7
  37. set                group all meso/rho 1000.0
  38.  
  39. # use Tait's EOS in combination with Morris' laminar viscosity.
  40. # We set rho_0 = 1000 kg/m^3, c = 0.1 m/s, h = 6.5e-5 m.
  41. # The dynamic viscosity is set to 1.0e-3 Pa s, corresponding to a kinematic viscosity of 1.0e-6 m^2/s
  42. pair_style         hybrid sph/taitwater/morris
  43. pair_coeff         * *    sph/taitwater/morris 1000 0.1 1.0e-3 6.5e-5
  44. # pair_coeff         1 1 sph/rhosum 6.5e-5
  45.  
  46. compute            rho_peratom all meso/rho/atom
  47. compute            e_peratom all meso/e/atom
  48. compute            ke_peratom all ke/atom
  49. compute            esph all reduce sum c_e_peratom
  50. compute            ke all ke
  51. variable           etot equal c_ke+c_esph
  52.  
  53. # assign a constant velocity to shear driver
  54. velocity           driver set 0.5 0.0 0.0 units box
  55. velocity           fluid set -0.5 0.0 0.0 units box
  56. # fix                fluid_fix fluid setforce -2e-6 0.0 0.0
  57. # fix                freeze_fix driver setforce 2e-6 0.0 0.0
  58.  
  59. # do full time integration for shear driver and fluid, but keep walls stationary
  60. fix                integrate_fix_full integrate_full meso
  61. fix                integrate_fix_stationary walls meso/stationary
  62.  
  63. dump               dump_id all custom 100 dump.lammpstrj id type xs ys zs vx vy c_rho_peratom c_e_peratom
  64. dump_modify        dump_id first yes
  65. thermo             100
  66. thermo_style       custom step c_esph v_etot
  67. thermo_modify      norm no
  68.  
  69. neighbor           3.0e-6 bin
  70. timestep           5.0e-6
  71. run                25000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement