self.setVelocity( breve.vector( ( 1 + breve.randomExpression( ), ( 1.000000 + breve.randomExpression( 1.000000 ) ), 0 ) )
breve.Ball = Ball
Add our newly created classes to the breve namespace
breve.Balls = Ball
Create an instance of our controller object to initialize the simulation
Figure 9: Python source code for Gravity agent simulation
Figure 10: breve gravity and 3D collision simulation. Note, a video of this model has been generated and is available at the following location: http://insecure.ucdavis.edu/Members/adam/physics
The next model shows the interesting Gray Scott model of reaction diffusion , which shows that even chemical reactions can generate chaotic patterns in contrast to the conventional intuition that chemical reactions proceed forward to equilibrium.