Matthen

Doppler Effect of spinning object

Jun 4th, 2011
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2. frame[t_, v_] := Graphics[Join[
  3. {PointSize[Large], ColorData["Rainbow"][0.2],
  4. Point[{Sin[t], Cos[t]}], RGBColor[0.4, 0.4, 0.5], Thick,
  5. Line[{{0, 0}, {Sin[t], Cos[t]}}]}
  6. ,
  7. Table[{Blend[{GrayLevel[(Max[0, (t - \[Tau])/20])], Green}, 0.1],
  8. Circle[{Sin[\[Tau]], Cos[\[Tau]]}, (t - \[Tau] ) v]}, {\[Tau],
  9. 0, t, (Sqrt[5] - 1)/2}]
  10. ], PlotRange -> {{-4, 4}, {-4, 4}}];
  11. frame4[t_] := GraphicsGrid[{
  12. {frame[t, 0.2], frame[t, 0.8]},
  13. {frame[t, 1], frame[t, 1.5]}
  14. }];
  15. Manipulate[frame4[t], {t, 0, 10}]
Advertisement
Add Comment
Please, Sign In to add comment