Interesting gravity laws

What did you draw?
Stargate38
Posts: 68
Joined: Thu Aug 15, 2013 3:06 pm
Location: Visible Universe
Contact:

Re: Interesting gravity laws

Post by Stargate38 »

Here's a good one: (e*r)^(e*r)/(abs(e^(e*r)-(e*r)^(e))+0.05)+0.15/r^3. At close distances, it acts like 1/r^3. But as you head out, gravity suddenly increases, maxing out at r=1. Head even further out and gravity decreases, then increases in proportion to e^(r*ln(r))=r^r, which is between exponential and double exponential.

Watch this at 1x:

Code: Select all

Gravity Fun at TestTubeGames.com: [ForceGr: (e*r)^(e*r)/(abs(e^(e*r)-(e*r)^(e))+0.05)+0.15/r^3,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 50,y0: 0,vx: 0,vy: 5.9,t0: 0,who: 2,m: 4,c: 0], [x0: 0,y0: 10,vx: 0,vy: 0,t0: 0,who: 1,m: 1000,c: 1], [x0: 8.55,y0: -5,vx: 0,vy: 0,t0: 0,who: 1,m: 1000,c: 1], [x0: -8.55,y0: -5,vx: 0,vy: 0,t0: 0,who: 1,m: 1000,c: 1], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 0,c: 1], [x0: -30,y0: -40,vx: 4.72,vy: -3.54,t0: 0,who: 2,m: 3,c: 1], [x0: -30,y0: 40,vx: -4.72,vy: -3.54,t0: 0,who: 2,m: 3,c: 1], [x0: 75,y0: 0,vx: 0,vy: 17.6358041855991,t0: 0,who: 2,m: 10,c: 0]
Notice that the planets start out in nice circular orbits, then chaos causes the inner ones to suddenly (and repeatedly) plunge into the triple suns, coming out on random looking trajectories. The outer planet (which has a shorter orbital period) eventually collides with them and ends up on a stable, flowerlike orbit.
I LOVE your Gravity Simulator! :)
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: Interesting gravity laws

Post by testtubegames »

Huh, that's cool how the outermost planet really just keeps doing its own thing. All the other ones flew around pretty chaotically, but that one just kept circling and circling (with minor wobbles here and there). I suppose it just had too much kinetic energy to get pulled any closer to the center, maybe? (I was surprised to see another planet cross the stable planet's path...so it's not just it's position that keeps it safe, conservation of angular momentum must come into play)
AlternateGravity
Posts: 80
Joined: Thu May 15, 2014 5:45 pm

Re: Interesting gravity laws

Post by AlternateGravity »

sin(4*(log(r)/log(1.6)))/(r^3) produces star shaped orbits.
Asteroid in Star shaped orbit.png
Asteroid in Star shaped orbit.png (61.81 KiB) Viewed 12165 times
I found that it's possible for a moon to orbit a planet using this law.
sin(4(log(r)log(1.6)))(r^3).png
sin(4(log(r)log(1.6)))(r^3).png (106.53 KiB) Viewed 12165 times
Gravitons would be my favorite particle as their existence could prove extra dimensions.
Post Reply