Académique Documents
Professionnel Documents
Culture Documents
,
and
with
( )
and
( )
( )
.
is the
departure of temperature from the state of no
convection, and k is the wavenumber of
perturbation. The original Lorenz system is
obtained by substituting the above equations in
the equations of motion. By doing this, he was
able to demonstrate that the development of
chaos is associated with the attractor acquiring
strange properties. [4]
4. The Strangeness
The trajectories in the phase plane in
the Lorenz model of thermal convection are
shown on page 2. The centers of the two loops
represent the two steady convections
)
(
.
The
trajectories go clockwise around the left loop
and counterclockwise around the right loop;
the two trajectories never intersect. This
structure is an attractor because orbits starting
with initial conditions outside of the attractor
merge on it and then follow it. The attraction is
3|Page
. (
) (
. (
Note that
and
/
)
)
(
{(
) ]
( )
Above implies global stability.
(
|
)
Using the following transformation:
|
(
)((
)(
)
(
(
)
)
4|Page
)
(
(
)(
)(
(
)
(
)(
)
(
|
(
),(
)(
, (
(
)
(
,
(
(
(
)
)(
(
)
) -
(
(
)
(
5|Page
6|Page
7|Page
8|Page
PART V PLOTS
9|Page
10 | P a g e
PART VI PLOTS
Poincar map
11 | P a g e
12 | P a g e
13 | P a g e
14 | P a g e
15 | P a g e
a. Calculate
Equations.
crosses (
) , then
)
as the trajectory
.
c.
, (
)-
(
(
)(
))
(
)
, which
) lies outside the ellipsoid
, if
holds if (
(
Let
(
), then the ellipsoid in
the first equation is contained inside the
sphere:
(
)
16 | P a g e
DISCUSSION
PART III
For r<1, we see that for any set of
initial conditions, the solution decays to zero
for large times. The result is expected since a
Liapunov function can be constructed for the
governing system implying global stability.
PART IV
For 1 < r < 470/19, there are two
stable critical points. Thus depending on the
prescribed initial conditions, the system settles
down to a steady state at one of the two points.
Note that the equilibrium state at the origin is
unstable, thus none of the solutions converge
to this point.
PART V
r=28 corresponds to a state where all
critical points are unstable. Thus, the
trajectories never settle down to a steady state.
Also, since there exists a trapping region as
derived in part 8, the solution never goes off to
infinity either. The solution lies on a strange
attractor. For the critical point at the origin, the
trajectories never get too close, however it
seems to define the boundary where certain
incoming paths become deflected from one one
wing of the attractor to the other. As for the
other two critical points, the solution winds
about the two point in an elliptical-like fashion.
As for the number of windings before it is flung
onto the other wing is completely random.
Also, no one point intersects another, yet come
arbitrarily close to one another.
PART VI POINCAR MAP
A Poincar map is a way of taking a
section out of dynamical system in order to
watch the behavior of the system in one less
dimension. For example, we use the Poincar
map to study the behavior of the 3D Lorenz
map in a 2D plane. The most usual aspect of
studying a Poincar map is to watch what the
mapped points are doing as time goes on. If the
points seem to be converging to a point, there
may be a fixed point. If they appear divergent,
that very well may be the case for the entire
18 | P a g e
APPENDIX: CODES
THIS FIRST SECTION SHOWS THE CODE FOR CALCULATIONS DONE FOR ALL THE PLOTS ON PAGES 6 TO 11 AND THE CODE USED TO
PRODUCE THOSE PLOTS.
%This code uses RungeKutta method of 4th order in a vector form.
tic
clear
clc
r = ;
h = ;
t=0:h:tf;
Y(i,1)*Y(i,2)Y(i,1)*Y(i,2)-(8/3)*Y(i,3)]
Y(i,1)*Y(i,2)-(8/3)*Y(i,3)]
Y(i,1)*Y(i,2)-(8/3)*Y(i,3)]
19 | P a g e
hold on
plot(sqrt(8/3*(27)),sqrt(8/3*(27)),'b*')
plot(-sqrt(8/3*(27)),-sqrt(8/3*(27)),'b*')
plot(0,0,'b*')
xlabel('time','fontsize',16)
title(['x vs. y; r = ',num2str(r)],'fontsize',16)
legend('x(t) vs. y(t)','CP')
grid on
hold off
%Produce a plot for phase plane x(t) vs. z(t)
figure3 = figure;
axes1 = axes('Parent',figure1,'FontSize',16,'Position',[0.025 0.0868 0.956875 0.855]);
box(axes1,'on');
hold(axes1,'all');
plot(Y(:,1),Y(:,3),'linewidth',2)
hold on
plot(sqrt(8/3*(27)),27,'b*')
plot(-sqrt(8/3*(27)),27,'b*')
plot(0,0,'b*')
xlabel('time','fontsize',16)
title(['x vs. z r = ',num2str(r)],'fontsize',16)
legend('x(t) vs. z(t)','CP')
grid on
hold off
%Produce a plot for phase plane y(t) vs. z(t)
figure4 = figure;
axes1 = axes('Parent',figure1,'FontSize',16,'Position',[0.025 0.0868 0.956875 0.855]);
box(axes1,'on');
hold(axes1,'all');
plot(Y(:,2),Y(:,3),'linewidth',2)
hold on
plot(sqrt(8/3*(27)),27,'b*')
plot(-sqrt(8/3*(27)),27,'b*')
plot(0,0,'b*')
xlabel('time','fontsize',16)
title(['y vs. z r = ',num2str(r)],'fontsize',16)
legend('y(t) vs. z(t)','CP')
grid on
hold off
%Produce a 3D plot for the strange attractor
figure5 = figure;
hold on
view([-297 107 228]);
plot3(Y(:,1),Y(:,2),Y(:,3));
scatter3(sqrt(8/3*(27)),sqrt(8/3*(27)),27,'m*')
scatter3(-sqrt(8/3*(27)),-sqrt(8/3*(27)),27,'m*')
grid on
xlabel('x','fontsize',16)
ylabel('y','fontsize',16)
zlabel('z','fontsize',16)
xlim([-18 18])
ylim([-25 25])
title(['r = ',num2str(r),' Initial Conditions: x_0 = ',num2str(x0),', y_0 =
',num2str(y0),', z_0 = ',num2str(z0)],'fontsize',16)
hold off
20 | P a g e
SECOND SECTION CONTAINS THE CODE FOR THE CALCULATIONS INVOLVING POINCAR MAP (PROBLEM 6).
program lorenz
integer n, i
parameter (n = 100000)
real x(n),y(n),z(n),t(n)
real pm(n,3)
real l(n,2)
call AB(n,x,y,z,t)
call poincareMap (x,y,z,t,n,pm)
call interpolate(n,pm,l)
50
-------------------------------------------------------------------------subroutine AB (n,x,y,z,t)
!Adams-Bashfourth third order explicit multi-step method.
real x(n),y(n),z(n),t(n)
real f0(3),f1(3),f2(3),f3(3)
real s,b,r
parameter (s = 10, b = 8.0/3.0, r = 28)
real e
parameter (e = 10**(-5))
real tmax
parameter (tmax = 100.0)
real h
integer i
h = tmax/n
!Initial conditions
x(1) = 5.0
y(1) = 5.0
z(1) = 5.0
t(1) = 0.0
!Forward Euler O(1) for n=1 (n=0,,99999)
i=1
call rhs (s,b,r,x(i),y(i),z(i),f0)
x(i+1) = x(i) + h*f0(1)
y(i+1) = y(i) + h*f0(2)
21 | P a g e
22 | P a g e
zz = 0
i = 1
do k=1, n
if ((zz .eq. 0) .and. (t(k) .ge. 30.0)) then
if (z(k) .gt. zp) then
pm(i,1) = x(k-1)
pm(i,2) = y(k-1)
pm(i,3) = z(k-1)
i = i + 1
pm(i,1) = x(k)
pm(i,2) = y(k)
pm(i,3) = z(k)
i = i + 1
zz = 1
endif
endif
if ((zz .eq. 1) .and. (t(k) .ge. 30.0)) then
if (z(k) .lt. zp) then
pm(i,1) = x(k-1)
pm(i,2) = y(k-1)
pm(i,3) = z(k-1)
i = i + 1
pm(i,1) = x(k)
pm(i,2) = y(k)
pm(i,3) = z(k)
i = i + 1
zz = 0
endif
endif
enddo
return
end
-------------------------------------------------------------------------subroutine interpolate(n,pm,l)
!Apply linear interpolation on the two points acquired in the poincareMap
!subroutine. From the line, use the point intersecting the z=r-1 plane.
!This point can be analytically calculated using the geometry of the problem
!involving two right triangles. This is the point used to plot the Poincare
!Maps.
!point(p,q)
!Z=r-1
!p=(x1-x0)/(z1-z0)*(z1-Z)+x1
!q=(y1-y0)/(z1-z0)*(z1-Z)+y1
real l(n,2)
real pm(n,3)
real zp
parameter (zp = 27.0)
integer i,j
do i=1, n
l(i,1) = 0
l(i,2) = 0
enddo
i=2
23 | P a g e
j=1
do while (pm(i,1) .ne. 0)
l(j,1) = (pm(i,1) - pm(i-1,1))/(pm(i,3) - pm(i-1,3))*&
&
(pm(i,3) - zp) + pm(i,1)
l(j,2) = (pm(i,2) - pm(i-1,2))/(pm(i,3) - pm(i-1,3))*&
&
(pm(i,3) - zp) + pm(i,2)
i = i + 2
j = j + 1
enddo
return
end
-------------------------------------------------------------------------plotting code ran in MATLAB
XYZT = dlmread('xyzt.txt'); x = XYZT(:,1); y = XYZT(:,2); z = XYZT(:,3);
t = XYZT(:,4);
X = XYZT(:,8); Y = XYZT(:,9);
figure
plot(X(2:186),Y(2:186),'k.')
xlabel('x')
ylabel('y')
title('r=28, z=27, x0=5, y0=5, z0=5')
--------------------------------------------------------------------------
24 | P a g e