Jump to content

File:Gravity well plot.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

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

Summary

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

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

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)AnonMoosadd header, slightly adjust margins
22:42, 17 September 2007Thumbnail for version as of 22:42, 17 September 2007600 × 232 (365 KB)AnonMoosFixing SVG
22:19, 17 September 2007Thumbnail for version as of 22:19, 17 September 2007300 × 116 (376 KB)BenRGAsymptote 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_

Global file usage

The following other wikis use this file:

Metadata