This example shows how to run brownian dynamics with rigid bodies.
13 prb.set_coordinates_are_optimized(
True)
14 prb.set_name(name +
" rb")
28 d.set_name(name + str(i) + str(j) + str(k))
30 d.set_rotational_diffusion_coefficient(
31 d.get_rotational_diffusion_coefficient() * 100)
35 def display(i, w, hs):
51 rb0.get_members() + rb1.get_members()),
64 bd.set_time_step(10000)
69 for i
in range(0, 100):
70 display(i, w, [h0, h1])