1 # -*- coding: iso-8859-1 -*-
4 from hoomd_script
import *
9 class external_periodic_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 an external.periodic
17 def test_create(self
):
18 periodic
= external
.periodic();
19 periodic
.force_coeff
.set('A',A
=1.0, i
=3, w
=0.02, p
=3);
21 integrate
.mode_standard(dt
=0.001);
25 ## test enable/disable
26 def test_enable_disable(self
):
28 periodic
= external
.periodic();
29 periodic
.force_coeff
.set('A',A
=1.0, i
=3, w
=0.02, p
=3);
38 if __name__
== '__main__':
39 unittest
.main(argv
= ['test.py', '-v'])