File:Stokes aether drag.svg

From formulasearchengine
Jump to navigation Jump to search

Original file(SVG file, nominally 315 × 315 pixels, file size: 121 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Diagram illustrating Stokes' aether drag theory in the sun's rest frame. The aether velocity is shown in black vectors, the earth is shown moving at velocity v, and a light ray is shown being bent from the vertical.
Date
Source pylab, scipy, inkscape, matplotlib
Author BlankAxolotl
SVG development
InfoField
 
The source code of this SVG is invalid due to 32 errors.
 
This W3C-invalid plot was created with Matplotlib.
 
This SVG plot draws numbers with the path text method.
Source code
InfoField

Python code

#!/usr/bin/env python2
from pylab import *
from matplotlib import patches, path
class FlowField:
def __init__(self, v, R):
self.v = v
self.R = R
def __call__(self, x,y):
r2 = x**2 + y**2
theta = arctan(y/x)
vr = self.v*(1 - self.R**2/r2)*cos(theta)
vtheta = -self.v*(1 + self.R**2/r2)*sin(theta)
return (vr*cos(theta) - vtheta*sin(theta),
        vr*sin(theta) + vtheta*cos(theta))
R=3
v = -10
vel = FlowField(v, R)
width = 12
span = arange(0,width,1.3) 
span = r_[-span[::-1],span]
X,Y = meshgrid(span,span)
R2 = X**2 + Y**2
U,V = vel(X,Y)
U = U - v
U[R2 < R**2] = nan
V[R2 < R**2] = nan
#make up a trajectory. This is a totally made up trajectory.
dy = -0.001
x,y = 2.5,width
ux, uy = 0, -30000.0
traj = []
for i in range(int(abs(width/dy))):
uxp,uyp = vel(x,y)
ux += uxp-v;    uy += uyp
t = dy/uy
y += uy*t;      x += ux*t
traj.append((x,y))
traj = array(traj)
traj = traj[sum(traj**2,1) > R*R]
raycolor = 'brown'
earthcolor = (0.4,0.4,0.9)
fig = figure(figsize=(3.5,3.5), facecolor='white')
ax = Axes(fig,[0,0,1,1],yticks=[],xticks=[],frame_on=False)
fig.add_axes(ax)
ax.add_patch(patches.FancyArrowPatch(path=path.Path(traj),arrowstyle='-

Licensing

Ahalda at English Wikipedia, the copyright holder of this work, hereby publishes it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution: Ahalda at English Wikipedia
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
Date/Time Dimensions User Comment
2013-04-23 21:29 315×315× (123644 bytes) Ahalda
2013-04-21 04:36 450×450× (197690 bytes) Ahalda Uploading a self-made file using [[Wikipedia:File_Upload_Wizard|File Upload Wizard]]


Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

21 April 2013

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:09, 6 March 2016Thumbnail for version as of 11:09, 6 March 2016315 × 315 (121 KB)wikimediacommons>OgreBot(BOT): Reverting to most recent version before archival

There are no pages that use this file.