This example prints out various statistics about a prospective Brownian dynamics simulation. You can use the statistics to determine if the time step is likely to be sufficiently short given the forces and particle sizes involved.
9 minimum_particle_radius=10
11 maximum_spring_constant=1
13 maximum_diffusion_coefficient=\
18 expected_rotational_delta=\
20 time_step) * minimum_particle_radius
22 expected_spring_diffusion_length=\
24 .5*maximum_spring_constant*4*expected_delta**2,
27 print "with a time step of", time_step,
"fs"
28 print "an object of radius", minimum_particle_radius,
"A will move",\
29 expected_delta,
"A and a point on its surface will move",\
30 expected_rotational_delta,
"A more"
31 print "the motion from fluctuations in the spring compression will be",\
32 expected_spring_diffusion_length,
"A"
33 print "and a compression of 10% of the radius will induce a motion of",\
35 .5*maximum_spring_constant*\
36 (.1*minimum_particle_radius)**2,