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):
54 m, rb0.get_rigid_members() + rb1.get_rigid_members()), 1, 3)
66 bd.set_scoring_function(sf)
67 bd.set_time_step(10000)
72 for i
in range(0, 100):
73 display(i, w, [h0, h1])