16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.1. THE POINCAR ESECTION 321<br />

for the ith solution, the evaluations being carried out in the following do loop.<br />

> for i from 1 to N1 do xx[i]:=X(i); yy[i]:=Y(i); end do:<br />

An operator Gr is created to graph a phase-plane point, represented by a size-16<br />

blue cross, at time t = nT0 for the ith amplitude.<br />

> Gr:=(i,n)->pointplot(f[yy[i](n*T[0]),xx[i](n*T[0])]g<br />

color=blue,symbol=CROSS,symbolsize=16):<br />

Using this graphing operator in the following loop generates the Poincare section<br />

for each of the N1 = 4 amplitude values. To eliminate the transient part of the<br />

solution, a certain number of initial points must be removed in each plot. This<br />

number will vary for each numerical run and must usually be determined by<br />

trial and error. Here, the ¯rst 24 points have been removed. Since N2 =250,<br />

each plot still contains 225 points. A suitable viewing box is selected, which is<br />

the same for all four plots, and labels added and the minimum number of tick<br />

marks controlled.<br />

> for i from 1 to N1 do<br />

> display([seq(Gr(i,n),n=25..N2)],axes=boxed,view=<br />

[-0.4..0.8,-1.4..1.4],labels=["y","x"],tickmarks=[3,3]);<br />

> end do;<br />

1<br />

x<br />

–1<br />

0 y 0.5<br />

1<br />

x<br />

–1<br />

0 y 0.5<br />

Figure 8.1: Period-1 (left ¯gure) and period-2 (right) Poincare sections.<br />

The plot on the left of Figure 8.1 corresponds to F1 =0:325, the one on the right<br />

to F2 =0:35. Despite the fact that 225 points were plotted, we see only a single<br />

cross in the F1 =0:325 graph, indicating that the system has settled down to<br />

a period-1 solution. For F2 =0:35, the ODE system oscillates back and forth<br />

between the two crosses, the Poincare section being characteristic of a period-2<br />

solution. The observed periodicities agree with the results in Section 1.2.1.<br />

For F3 =0:356, Figure 8.2 indicates a period-4 solution, again agreeing<br />

with our earlier conclusion about the periodicity for this forcing amplitude.<br />

So it is clear that the Poincare section approach is a useful graphical tool for<br />

interpreting the periodicity of driven oscillator systems.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!