File:Gravity well plot.svg

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

Original file (SVG file, nominally 604 × 236 pixels, file size: 309 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description Graph of gravity well. Above: Distortion of space-time. Below: Gravitational potential function.
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with Asymptote.
Source code
InfoField

Asymptote code

import graph3;
settings.render=0;

typedef real fun(real);

fun Phi(real R, real GM_R, real shift=0) {
  return new real(real r) {
    real r_R = abs(r) / R;
    if (r_R >= 1)
      return -GM_R / r_R + shift;
    else
      return 0.5 GM_R * (r_R^2 - 3) + shift;
  };
}

typedef real fun2(pair);
fun2 revolve(fun f) {return new real(pair z) {return f(abs(z));};}

picture pic;

size3(pic,300,0);
size(pic.xsize3,pic.ysize3);

currentprojection=perspective(0,20,4);

draw(pic,surface(revolve(Phi(2,7)),(-12,-12),(12,12),nx=20,Spline),lightgray,meshpen=black+thick(),nolight);

attach(pic.fit());

draw(shift(0,6)*graph(Phi(2,7,-10),-12,12));
Date
Source Own work
Author BenRG
Other versions See also: GravityPotential.jpg

Licensing

[edit]
Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

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

Date/TimeThumbnailDimensionsUserComment
current19:25, 13 April 2013Thumbnail for version as of 19:25, 13 April 2013604 × 236 (309 KB)AnonMoos (talk | contribs)add header, slightly adjust margins
22:42, 17 September 2007Thumbnail for version as of 22:42, 17 September 2007600 × 232 (365 KB)AnonMoos (talk | contribs)Fixing SVG
22:19, 17 September 2007Thumbnail for version as of 22:19, 17 September 2007300 × 116 (376 KB)BenRG (talk | contribs)Asymptote source code: import graph3; typedef real fun(real); fun Phi(real R, real GM_R, real shift=0) { return new real(real r) { real r_R = abs(r) / R; if (r_R >= 1) return -GM_R / r_R + shift; else return 0.5 GM_

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata