This example shows how to run brownian dynamics with rigid bodies.
16 prb.set_coordinates_are_optimized(
True)
17 prb.set_name(name +
" rb")
31 d.set_name(name + str(i) + str(j) + str(k))
33 d.set_rotational_diffusion_coefficient(
34 d.get_rotational_diffusion_coefficient() * 100)
38 def display(i, w, hs):
55 m, rb0.get_rigid_members() + rb1.get_rigid_members()), 1, 3)
63 bd.set_scoring_function(sf)
64 bd.set_time_step(10000)
69 for i
in range(0, 100):
70 display(i, w, [h0, h1])