coupled oscillations with n=3


pendula.nb 1
Numerical study of coupled oscillations, with N=3 degrees of
freedom.
For Ph106a, fall term 2001, Caltech.
To see the eigenfrequencies, I need to Fourier transform some qi t . In practice it s convenient to do a discrete Fourier
transform, but the price is that when I then ListPlot the answer, the frequency is in funny units which depend on the length
of the time interval over which qi t was evaluated.
Another oddity of the numerics is that I won t see delta functions in frequency space, just because I m only looking over a
finite interval of time. So I should see sharp peaks instead.
Click on the square brackets on the right hand side of the window to look at the contents of each section.
Simple harmonic motion, one oscillator
soln
NDSolve q  t q t 0,q 0 0,q 0 1 ,q, t,0,500 ,MaxSteps Infinity 1
q InterpolatingFunction 0.,500. ,
range soln 1,2,1,1 ;
Plot q t .soln, t,range 1 ,range 2 ,PlotPoints 10000,PlotRange 2,2
2
1.5
1
0.5
pendula.nb 2
100
-0.5
-1
-1.5
-2
Graphics
NumPts 2^18;
ValueTable
Table q t .soln, t,range 1 ,range 2 , range 2 range 1 NumPts ;
FourierTable Fourier ValueTable ;
pendula.nb 3
OneOscillator ListPlot Abs FourierTable ,
PlotRange 50,180 , 0,Apply Max,Abs FourierTable 1 ,PlotJoined True
175
150
125
100
75
50
25
80 100 120 140 160 180
Graphics
Coupled harmonic pendula, moderately weak coupling
ClearAll kappa
CoupledPendula q1  t q1 t kappa q1 t q2 t 0,
q2  t q2 t kappa 2 q2 t q1 t q3 t 0,
q3  t q3 t kappa q3 t q2 t 0,q1 0 0,
q2 0 0,q3 0 0,q1 0 1,q2 0 0,q3 0 0 ;
kappa 0.1
0.1
soln NDSolve CoupledPendula, q1,q2,q3 , t,0,500 ,MaxSteps Infinity 1
q1 InterpolatingFunction 0.,500. , ,
q2 InterpolatingFunction 0.,500. , ,
q3 InterpolatingFunction 0.,500. ,
range soln 1,2,1,1 ;
Plot q1 t .soln, t,range 1 ,range 2
1
pendula.nb 4
0.5
100
-0.5
-1
Graphics
NumPts 2^18;
ValueTable
Table q1 t .soln, t,range 1 ,range 2 , range 2 range 1 NumPts ;
FourierTable Fourier ValueTable ;
pendula.nb 5
WeakCoupling ListPlot Abs FourierTable ,
PlotRange 50,180 , 0,Apply Max,Abs FourierTable 1 ,PlotJoined True
80
60
40
20
80 100 120 140 160 180
Graphics
Coupled harmonic pendula, moderately strong coupling
ClearAll kappa
CoupledPendula q1  t q1 t kappa q1 t q2 t 0,
q2  t q2 t kappa 2 q2 t q1 t q3 t 0,
q3  t q3 t kappa q3 t q2 t 0,q1 0 0,
q2 0 0,q3 0 0,q1 0 1,q2 0 0,q3 0 0 ;
kappa 1
1
soln NDSolve CoupledPendula, q1,q2,q3 , t,0,500 ,MaxSteps Infinity 1
q1 InterpolatingFunction 0.,500. , ,
q2 InterpolatingFunction 0.,500. , ,
q3 InterpolatingFunction 0.,500. ,
range soln 1,2,1,1 ;
Plot q1 t .soln, t,range 1 ,range 2
1
0.75
pendula.nb 6
0.5
0.25
100
-0.25
-0.5
-0.75
Graphics
NumPts 2^18;
ValueTable
Table q1 t .soln, t,range 1 ,range 2 , range 2 range 1 NumPts ;
FourierTable Fourier ValueTable ;
pendula.nb 7
StrongCoupling ListPlot Abs FourierTable ,
PlotRange 50,180 , 0,Apply Max,Abs FourierTable 1 ,PlotJoined True
80
60
40
20
80 100 120 140 160 180
Graphics
Anharmonic pendula, moderately strong coupling
ClearAll kappa
CoupledPendula q1  t q1 t kappa q1 t q2 t 0,
q2  t q2 t ^3 kappa 2 q2 t q1 t q3 t 0,
q3  t q3 t kappa q3 t q2 t 0,q1 0 0,
q2 0 0,q3 0 0,q1 0 1,q2 0 0,q3 0 0 ;
kappa 1
1
soln NDSolve CoupledPendula, q1,q2,q3 , t,0,500 ,MaxSteps Infinity 1
q1 InterpolatingFunction 0.,500. , ,
q2 InterpolatingFunction 0.,500. , ,
q3 InterpolatingFunction 0.,500. ,
range soln 1,2,1,1 ;
Plot q1 t .soln, t,range 1 ,range 2
1
pendula.nb 8
0.5
100
-0.5
-1
Graphics
NumPts 2^18;
ValueTable
Table q1 t .soln, t,range 1 ,range 2 , range 2 range 1 NumPts ;
FourierTable Fourier ValueTable ;
pendula.nb 9
Anharmonic ListPlot Abs FourierTable ,
PlotRange 50,180 , 0,Apply Max,Abs FourierTable 1 ,PlotJoined True
80
60
40
20
80 100 120 140 160 180
Graphics
Anharmonic pendula, moderately strong coupling, bigger amplitude
ClearAll kappa
CoupledPendula q1  t q1 t kappa q1 t q2 t 0,
q2  t q2 t ^3 kappa 2 q2 t q1 t q3 t 0,
q3  t q3 t kappa q3 t q2 t 0,q1 0 0,
q2 0 0,q3 0 0,q1 0 10,q2 0 0,q3 0 0 ;
kappa 1
1
soln NDSolve CoupledPendula, q1,q2,q3 , t,0,500 ,MaxSteps Infinity 1
q1 InterpolatingFunction 0.,500. , ,
q2 InterpolatingFunction 0.,500. , ,
q3 InterpolatingFunction 0.,500. ,
range soln 1,2,1,1 ;
Plot q1 t .soln, t,range 1 ,range 2
10
pendula.nb 10
5
100
-5
-10
Graphics
NumPts 2^18;
ValueTable
Table q1 t .soln, t,range 1 ,range 2 , range 2 range 1 NumPts ;
FourierTable Fourier ValueTable ;
pendula.nb 11
BigAnharmonic ListPlot Abs FourierTable ,
PlotRange 50,180 , 0,Apply Max,Abs FourierTable 1 ,PlotJoined True
1200
1000
800
600
400
200
80 100 120 140 160 180
Graphics
Show all Fourier plots
A single harmonic oscillator:
Show OneOscillator
175
150
125
100
75
50
25
80 100 120 140 160 180
Graphics
Three coupled pendula, where the springs between the pendula make only a weak perturbation on the period of the free
motion:
pendula.nb 12
Show WeakCoupling
80
60
40
20
80 100 120 140 160 180
Graphics
Stronger coupling between the pendula splits the eigenfrequencies more:
Show StrongCoupling
80
60
40
20
80 100 120 140 160 180
Graphics
Just for fun: the MIDDLE pendulum is anharmonic, but we re watching the left hand one. Startlingly similar to the Strong-
Coupling case.
Show Anharmonic
80
60
40
20
80 100 120 140 160 180
Graphics
pendula.nb 13
But now we multiplied the amplitude by 10, and we get QUITE a different spectrum... Pretty weird that I only get two
peaks now---is
this an accident?
Show BigAnharmonic
1200
1000
800
600
400
200
80 100 120 140 160 180
Graphics


Wyszukiwarka

Podobne podstrony:
2002 09 Creating Virtual Worlds with Pov Ray and the Right Front End
Building web applications with flask
110 Amazing Magic Tricks With Everyday Objects
Headlights, Pickup with daytime running light
Golden Dawn Meditation with the Archangel Gabriel
Some Problems with the Concept of Feedback
Grid Power Quality with Variable Speed Wind Turbines
Wireless Hacking with backtrack 3
Cute Couple Cuffs
2008 11 Maximum Math Free Computer Algebra with Maxima
gigi d agostino ill fly with you
2007 07 Partition Tricks Backing Up Partitions with Partimage
Patons Grace Daisies and Stripes Set with Blanket
AT89C51 8 bit Microcontroller with 4K Bytes Flash
EC vocabulary numbers 0 20 E with KEY
Making Robots With The Arduino part 1

więcej podobnych podstron