1 # -*- coding: iso-8859-1 -*-
4 from hoomd_script
import *
9 class wall_lj_tests (unittest
.TestCase
):
12 init
.create_random(N
=100, phi_p
=0.05);
14 sorter
.set_params(grid
=8)
16 # test to see that se can create a wall.lj
17 def test_create(self
):
20 # test setting coefficients
21 def test_set_coeff(self
):
22 lj_wall
= wall
.lj(r_cut
=3.0);
23 lj_wall
.set_coeff('A', epsilon
=1.0, sigma
=1.0, alpha
=1.0)
25 integrate
.mode_standard(dt
=0.005);
29 # test coefficient not set checking
30 def test_set_coeff_fail(self
):
31 lj_wall
= wall
.lj(r_cut
=3.0);
33 integrate
.mode_standard(dt
=0.005);
35 self
.assertRaises(RuntimeError, run
, 100);
40 if __name__
== '__main__':
41 unittest
.main(argv
= ['test.py', '-v'])