File:Doppler Broadening.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Doppler_Broadening.gif(480 × 468 pixels, file size: 3.12 MB, MIME type: image/gif, looped, 150 frames, 15 s)

Captions

Captions

A simplified visualizationof Doppler broadening

Summary[edit]

Description
English: If an otherwise monochromatic emitter is moving, the Doppler effect will change the frequency you measure. And if it is bouncing around, the frequency you measure will fluctuate.
Date
Source https://twitter.com/j_bertolotti/status/1438468642073681920
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 12.0 code[edit]

npt = 50; numberwaves = 200;
pt = Accumulate@RandomVariate[NormalDistribution[], {npt - 1, 2}];
pt = Join[pt, {pt[[1]]}];
distances = Norm /@ Differences[pt];
timesegments = Join[{0}, Accumulate[distances]];
path[t_] := Piecewise[Table[{pt[[j + 1]] - (1 - (t - timesegments[[j]])/distances[[j]]) ( pt[[j + 1]] - pt[[j]]), timesegments[[j]] <= t < timesegments[[j + 1]]}, {j, 1, npt - 1}]
   ];
sourcet = Table[j, {j, 10^-2, timesegments[[-1]], timesegments[[-1]]/numberwaves}];
frames = Table[
   Graphics[{
     PointSize[0.02], Point[path[t] ],
     Table[ If[t < sourcet[[j]], {}, {Opacity[1/(1 + ( 2 ( t - sourcet[[j]]) )^1)], Circle[path[sourcet[[j]] ] , 2 ( t - sourcet[[j]]) ] }], {j, 1, numberwaves}]
     }, PlotRange -> {1.5 {Min[Flatten[pt[[All, 1]] ]], Max[Flatten[pt[[All, 1]] ]]}, 1.5 {Min[Flatten[pt[[All, 2]] ]], Max[Flatten[pt[[All, 2]] ]]}}]
   , {t, timesegments[[1]], timesegments[[-1]] - 10^-2, timesegments[[-1]]/150}];
ListAnimate[frames]

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:44, 17 September 2021Thumbnail for version as of 08:44, 17 September 2021480 × 468 (3.12 MB)Berto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata