Advertisement
Guest User

NVT_inputfile.inp

a guest
Mar 12th, 2025
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1.  
  2.  
  3. units real #Angstroms, g/mol, etc.
  4. atom_style full #Molecule + charge
  5.  
  6. timestep 2.0 #Set the integrator time step (default = 1.0fs for real units)
  7.  
  8. boundary p p p #Periodic Boundaries
  9. read_data Rb1Xe15_a96.cfg #Rb1_Xe16.cfg.lammps
  10.  
  11. replicate 1 1 1 #cell replication (none = 1 1 1)
  12.  
  13. variable dt equal 2.0
  14. variable ext_temp equal 420
  15. variable Tdamp equal 100.0*${dt} #units are time units, LAMMPS suggestion is 100 time steps
  16. #(e.g. 50fs if time step is 0.5fs)
  17. ########
  18. pair_style table linear 11600 #lj/cut 10.0 #LJ with 15.0ang cutoff, Coulomb with 15.0ang cutoff
  19. #pair_modify tail yes #Analytic Long-range Tail corrections, for the LJ interactions
  20. pair_coeff 1 1 POT_XeXe2.pot POT_XeXe 10.0
  21. pair_coeff 1 2 POT_XeRb2.pot POT_XeRb 10.0
  22. pair_coeff 2 2 POT_XeRb2.pot POT_XeRb 10.0 # usng fake potential for RbRb
  23. pair_write 1 1 16000 r 2.7 13.9 table_xexe.txt xexe
  24. pair_write 1 2 16000 r 2.7 13.9 table_xerb.txt xerb
  25. #########
  26.  
  27. bond_style none nocoeff #harmonic #Sets the bond type as harmonic
  28. angle_style none nocoeff #harmonic #Sets the triplet bond type as harmonic
  29. dihedral_style none #TraPPE N2 has no dihedrals (quadruplets)
  30. improper_style none #TraPPE N2 has no improper quadruplets
  31.  
  32.  
  33. group xenon type 1
  34. group rubiduim type 2
  35.  
  36. #Neighbor List Parameters
  37. #neighbor 2.0 bin #Skin (default = 2.0 bin for real units)
  38. #neigh_modify delay 1 every 1 check no
  39. # delay N = never delay until at least N steps after previous build
  40. # every N = build list every N steps
  41. # check no = build whenever delay/every criteria are met
  42. # check yes = build whenever delay/every criteria are met and atom moved > skin/2
  43.  
  44. #Create initial velocity distribution
  45. velocity all create ${ext_temp} 4561 dist uniform
  46.  
  47. #Reset the time step counter
  48. reset_timestep 0 #Reset the time step counter to 0
  49.  
  50. #Ensemble set-up: NVT ensemble, thermostatted by Nose-Hoover a chained thermostat, set at temperature $ext_temp
  51. #fix 2 all rigid/nvt molecule temp ${ext_temp} ${ext_temp} ${Tdamp}
  52. fix 2 all nvt temp ${ext_temp} ${ext_temp} ${Tdamp}
  53. #start temperature = ext_temp
  54. #end temperature = ext_temp
  55. #Tdamp (in time units, fs)
  56.  
  57. #Output Style
  58. dump dump_1 all custom 100 dump.min id type x y z vx vy vz
  59.  
  60. variable Nevery equal 20 #Specify the distance (in timesteps) between samples for computing ensemble aver$
  61. # (Interval between samples in a block)
  62. variable Nrepeat equal 50 #Specify the number of samples per output of thermodynamic averages
  63. # (Samples per block output)
  64. variable Nfreq equal ${Nevery}*${Nrepeat} #Specify the dump interval (in timesteps)
  65. # (Some people call these blocks)
  66. variable KineticEnergy equal ke # Kinetic energy
  67. variable TotalEnergy equal etotal
  68. variable PotentialEnergy equal epair #Call the intermolecular potential energy $PotentialEnergy
  69. variable Pressure equal press #Call the pressure $Pressure
  70. variable Temperature equal temp #Call the instantaneous temperature $Temperature
  71. variable Density equal density #Call the instantaneous density $Density (will not change for NVT)
  72.  
  73. #fix 3 all ave/time ${Nevery} ${Nrepeat} ${Nfreq} v_Temperature v_Density v_PotentialEnergy v_Pressure file ave.dens_22.0molL.out format " %g"
  74. fix 3 all ave/time ${Nevery} ${Nrepeat} ${Nfreq} v_Temperature v_Density v_PotentialEnergy v_KineticEnergy v_TotalEnergy v_Pressure file ave.mydata.out format " %g"
  75.  
  76. thermo 1000 #Specify the interval between screen output of thermodynamic averages
  77. thermo_style custom step temp density epair press #Format for screen output of thermodynamics
  78. # (MD step, temperature, internal energy, pressure)
  79. #Run it!
  80. write_restart ./restart_file
  81. run 5000000
  82. write_restart ./restart_file
  83. undump dump_1
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement