1 hoomd_script::pair::table
2 # Due to deficiencies in doxygen, the commands used in this example are listed explicitly here
3 # run this script with "python -x filename" to skip the first line, or remove this header
5 # ---- pair_table_file.py ----
6 from hoomd_script import *
8 # create 1000 random particles of name A
9 init.create_random(N=1000, phi_p=0.01, name='A')
11 # read the pair interaction from a specified table
12 table = pair.table(width=171);
13 table.set_from_file('A', 'A', filename='pair_table_file.dat')
15 # integrate at constant temperature
17 integrate.mode_standard(dt=0.005)
18 integrate.nvt(group=all, T=1.2, tau=0.5)
20 # run 10,000 time steps