@zy-0815
2016-11-20T19:18:43.000000Z
字数 7991
阅读 1727
3.30
As the previous dicusssion of two kinds of situation in the chaos,we will consider one more chaotice model in this paper.Here we consider the problem of a ball moving without friction on a horizontal table.Apart from that,we are also going to consider the so-called Stadium shape,which can be described as in books.We will dicsuss the phase plot,the trajectory plot ant the divergence plot with the stadium ball.
Except for the collisions with the walls,the motion fo the billiard is quite simple.Between collisions the velocity is constant so we have:
As for the collision part,we have a solution.
After each step we must check to see if there has been a collision with one of the walls,that is,if the newly calculated position puts the billiard off the table.When this happens the program must backtrack to locate the position where the collision occurred.There are several ways to do this.One way is to back the billiar up to the position at the previous time step and then use a much smaller time step,so as to move the billiard in much smaller steps.When the billiard then goes off the table again,we take the location after that iteration to be the point of collision.
What if there are many balls? When shall learn next chapter.
Chaos theory is the field of study in mathematics that studies the behavior of dynamical systems that are highly sensitive to initial conditions—a response popularly referred to as the butterfly effect. Small differences in initial conditions (such as those due to rounding errors in numerical computation) yield widely diverging outcomes for such dynamical systems, rendering long-term prediction impossible in general. This happens even though these systems are deterministic, meaning that their future behavior is fully determined by their initial conditions, with no random elements involved. In other words, the deterministic nature of these systems does not make them predictable. This behavior is known as deterministic chaos, or simply chaos. The theory was summarized by Edward Lorenz as:
Chaos: When the present determines the future, but the approximate present does not approximately determine the future.
Logistic Tops Mixing:
Six iterations of a set of states passed through the logistic map. (a) the blue plot (legend 1) shows the first iterate (initial condition), which essentially forms a circle. Animation shows the first to the sixth iteration of the circular initial conditions. It can be seen that mixing occurs as we progress in iterations. The sixth iteration shows that the points are almost completely scattered in the phase space. Had we progressed further in iterations, the mixing would have been homogeneous and irreversible. The logistic map has equation . To expand the state-space of the logistic map into two dimensions, a second state, , was created as , if and otherwise.
Having been aware of them,we can safely say that it will not be hard for us to draw all the plot we needed.One points need to be mentioed.A hall mark of a chaotic system is an extreme sensitivity to intial conditions.This property is also found in the Lorentz attractor:
It look just like a butterfly.The Lorenz system is a system of ordinary differential equations (the Lorenz equations, note it is not Lorentz) first studied by Edward Lorenz. It is notable for having chaotic solutions for certain parameter values and initial conditions. In particular, the Lorenz attractor is a set of chaotic solutions of the Lorenz system which, when plotted, resemble a butterfly or figure eight.
Here is a photo of actual turrbulance!You may not want this.It is an airplane vortex.
Source Code 1 for stadium
Source Code 2 for Lyapunov exponent
Before rendering the stadium ball,we first check the situation in the perfect sphere.As you can see,it's perfect after hundreds of collisions.Additionally,there are some ponits in the plot can never be reached no matter how many collisions occurred.
With the previous notation of the backwarf trace.Here we would like to investigate the precesion of the time step that may make a influence on the accuracy of the plot.Here we use the precesion , , , the previous time step.But we see no obvious differnece after the precesion reaches and later.
Here we use the precesion , , , the previous time step.Now we can see evidently the progessively accurate plots.
How about we check the details of the collide points for further observation.It is eviednt that the higher the precesion,the closer the reflection points near the boundary.
In this plots,we specify a particular plots.With the difference in density of points,we know the bcakward program is actually working well!
From this plot,we acquire a better understanding of the actually process of the collision.The collision points are not actually lies in the boundary,but span a distance that is too small too be found.In that sense,we regared this process as reflection.
The phase plots:
For further description,we draw the phase plot.That is plots.We see the points gradually becomes more with the increment of collision times.
Interestingly,here are some plots with different intial position of x,you may see in the plots, the area that can not be reached is changing(the radius of blank area) via the changing of intial position.
To see an exgarrate = 0.5.It look just like a stadium
Having discussed the perfect balls,let us look at the stadium ball.Here we change the to , , , . It's obviously that the higher the ,the more chaotic the trajectory is,which means the area that may never be reached before shall be reached now.But as the is becoming smaller,it behaves like the perfect circle boundary.With the limit ,it will finally becomes a circle boundary.
Worth mentioning,the more precise the backward program,the more chaotic the trajectory may be.Here we use the precesion , , , the previous time step.
The conclusion also hold that the higher the precesion,the closer the reflection points near the boundary.
Some details of the refelction points:
A comparision of different precesion.It is clear that as the precesion becomes higher,the closer the dense points near the boundry.
Now it's time to make the phase plots.We choose to be , , , in order to see the variation of the plots.We can see with the increase of the value of ,the plots is becoming more alike the perfect circular one.But with low value of , it seems that all the points may be reached throughout the space.
Now we consider the Lorentz attractod effect of two nearly seperated balls.We plot the distance between two billiards as a function of time.The billiards were on a chaotic table (=0.01) and were given the same intial velocities,but were seperated with a small distance.Here are plots with differnet seperation of , , .Here you can see the varies a lot when the time is big enough.
The billiards seperation shows a very sharp dip after about every unit of time.These dips occur when the billiards collide with the walls,as this causes their trajectories to cross.The overall seperation is seen to increase very rapidly with time.
Plots wit differnet .We set to be , , .
from visual import *
side = 4.0
thk = 0.3
s2 = 2*side - thk
s3 = 2*side + thk
wallR = box (pos=( side, 0, 0), size=(thk, s2, s3), color = color.green)
wallL = box (pos=(-side, 0, 0), size=(thk, s2, s3), color = color.green)
wallB = box (pos=(0, -side, 0), size=(s3, thk, s3), color = color.green)
wallT = box (pos=(0, side, 0), size=(s3, thk, s3), color = color.green)
wallG = box (pos=(0,0,-2*side),size=(s3,s3,s3),color=color.green)
ball = sphere(pos=(0.2,0,0), color=color.white, radius = 0.5, make_trail=True, retain=200)
ball.trail_object.radius = 0.07
ball.v = vector(0.5,0.3,0.4)
side = side - thk*0.5 - ball.radius
dt = 0.5
t=0.0
while True:
rate(100)
t = t + dt
ball.pos = ball.pos + ball.v*dt
if not (side > ball.x > -side):
ball.v.x = -ball.v.x
if not (side > ball.y > -side):
ball.v.y = -ball.v.y
if not (side>ball.z>-side):
ball.v.z=-ball.v.z
We obtain the plot in 2-Dimension.
Also, there is 3-Dimension.!30
1.Thanks to Wikipedia.
2.Thanks to Yu Kang,since we discuss the details of the program.
3.Zong Yue for his VPython program.