A star circle
Posted: Thu Mar 06, 2014 6:57 pm
[[Beta Sim]]
http://codepad.org/D9pCMTv2
Try to make an object go in a circle inside it.
Then I had a little fun, put some negamasses inside:
http://codepad.org/HPVQd6s7
I was somewhat hoping it would "crystalize" into a lattice, but it wouldn't work since energy is conserved in the sim.
Things to try:
Fling a heavy planet into the box (It'll probably exit due to conservation of energy)
Put a heavy planet into the box
Fling/put a heavy negative planet into the box.
Make a heavy/heavy negative planet go in a circle in the box. With a heavy negative I got something that looked like the clouds at L4/5 (but only one). This is entirely different though.
(No one's been posting recently.)
Code: Select all
import math
output = "Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0]"
stars = 30
mass = -100
dist = 200
for a in range(stars):
output = output + ", [x0: " + str(dist * math.cos(2*math.pi*a/stars)) + ",y0: " + str(dist * math.sin(2*math.pi*a/stars)) + ",vx: 0,vy: 0,t0: 0,who: 1,m: " + str(mass) + ",c: 1]"
print output
Code: Select all
Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 200.0,y0: 0.0,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 195.629520147,y0: 41.5823381636,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 182.709091529,y0: 81.3473286152,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 161.803398875,y0: 117.557050458,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 133.826121272,y0: 148.628965095,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 100.0,y0: 173.205080757,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 61.803398875,y0: 190.211303259,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 20.9056926535,y0: 198.904379074,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -20.9056926535,y0: 198.904379074,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -61.803398875,y0: 190.211303259,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -100.0,y0: 173.205080757,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -133.826121272,y0: 148.628965095,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -161.803398875,y0: 117.557050458,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -182.709091529,y0: 81.3473286152,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -195.629520147,y0: 41.5823381636,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -200.0,y0: 1.13309969046e-13,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -195.629520147,y0: -41.5823381636,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -182.709091529,y0: -81.3473286152,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -161.803398875,y0: -117.557050458,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -133.826121272,y0: -148.628965095,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -100.0,y0: -173.205080757,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -61.803398875,y0: -190.211303259,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -20.9056926535,y0: -198.904379074,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 20.9056926535,y0: -198.904379074,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 61.803398875,y0: -190.211303259,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 100.0,y0: -173.205080757,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 133.826121272,y0: -148.628965095,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 161.803398875,y0: -117.557050458,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 182.709091529,y0: -81.3473286152,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 195.629520147,y0: -41.5823381636,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1]
Then I had a little fun, put some negamasses inside:
Code: Select all
import math
import random
random.seed(19683)
output = "Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0]"
stars = 30
mass = -100
dist = 50
for a in range(stars):
output = output + ", [x0: " + str(dist * math.cos(2*math.pi*a/stars)) + ",y0: " + str(dist * math.sin(2*math.pi*a/stars)) + ",vx: 0,vy: 0,t0: 0,who: 1,m: " + str(mass) + ",c: 1]"
for a in range(50):
output = output + ", [x0: " + str(random.random()*dist/1-dist/2) + ",y0: " + str(random.random()*dist/1-dist/2) + ",vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2]"
print output
Code: Select all
Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 50.0,y0: 0.0,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 48.9073800367,y0: 10.3955845409,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 45.6772728821,y0: 20.3368321538,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 40.4508497187,y0: 29.3892626146,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 33.4565303179,y0: 37.1572412739,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 25.0,y0: 43.3012701892,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 15.4508497187,y0: 47.5528258148,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 5.22642316338,y0: 49.7260947684,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -5.22642316338,y0: 49.7260947684,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -15.4508497187,y0: 47.5528258148,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -25.0,y0: 43.3012701892,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -33.4565303179,y0: 37.1572412739,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -40.4508497187,y0: 29.3892626146,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -45.6772728821,y0: 20.3368321538,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -48.9073800367,y0: 10.3955845409,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -50.0,y0: 2.83274922616e-14,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -48.9073800367,y0: -10.3955845409,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -45.6772728821,y0: -20.3368321538,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -40.4508497187,y0: -29.3892626146,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -33.4565303179,y0: -37.1572412739,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -25.0,y0: -43.3012701892,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -15.4508497187,y0: -47.5528258148,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -5.22642316338,y0: -49.7260947684,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 5.22642316338,y0: -49.7260947684,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 15.4508497187,y0: -47.5528258148,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 25.0,y0: -43.3012701892,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 33.4565303179,y0: -37.1572412739,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 40.4508497187,y0: -29.3892626146,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 45.6772728821,y0: -20.3368321538,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: 48.9073800367,y0: -10.3955845409,vx: 0,vy: 0,t0: 0,who: 1,m: -100,c: 1], [x0: -24.7771503663,y0: 2.40317817282,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -23.5360402186,y0: -24.279893236,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -16.271714365,y0: 10.2273764721,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -14.4699296212,y0: -10.4472444681,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 15.1464663463,y0: -24.5686259671,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 4.57143908964,y0: -15.4411968891,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 16.3022060781,y0: 6.56057804079,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -11.5420880084,y0: 4.00539695562,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -3.65340200779,y0: -9.84855047882,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 23.8794865495,y0: 18.246984963,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 3.72683951129,y0: 20.4570538849,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -18.6019238954,y0: 15.6327461517,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -1.78824209061,y0: 14.1933980394,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 7.52454184743,y0: -15.5618769111,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 2.52545896356,y0: 14.2243289583,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -24.9473181007,y0: 2.430873516,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 11.2407332778,y0: -11.0728905485,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -19.6219491315,y0: 6.47887045229,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -12.0603888274,y0: -7.29884184805,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -24.1873546306,y0: 12.7117881633,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 23.4643447727,y0: 5.93979604962,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -24.4534773316,y0: 6.00131026572,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -12.6694882149,y0: 0.63710381361,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 3.74004716721,y0: -19.6178952484,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 4.24079068522,y0: 14.1740947946,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 23.6712454038,y0: -0.968472825339,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -17.1201873923,y0: -3.49822211719,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 22.455656402,y0: -12.5521970524,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 14.146868421,y0: -8.30886881398,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 4.70196016364,y0: -2.99108323972,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -7.89304783067,y0: 16.5134224273,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -14.2842042684,y0: 10.9602770253,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -7.61059329324,y0: -12.7896306053,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 11.5740421956,y0: 9.2350016815,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -4.86731273381,y0: 13.3749849787,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 18.78247601,y0: 23.7265569451,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -20.7005242911,y0: -21.5494339278,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -11.1335416249,y0: 16.3033612713,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 2.74028621213,y0: 20.2967316012,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 9.57671234929,y0: 19.7389662889,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -7.92027713049,y0: -10.9759381994,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -7.41553541785,y0: 4.79780095831,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -21.1850189384,y0: -13.2285909548,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -3.97852426761,y0: 5.20438300013,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 18.7821571328,y0: -6.93163039546,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 20.6988084467,y0: 3.32610882845,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -1.34397431608,y0: -8.53385445597,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -7.82527892276,y0: 4.10224996472,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: -10.4988451728,y0: -22.0929186547,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2], [x0: 22.00860151,y0: 10.8801345093,vx: 0,vy: 0,t0: 0,who: 2,m: -10,c: 2]
Things to try:
Fling a heavy planet into the box (It'll probably exit due to conservation of energy)
Put a heavy planet into the box
Fling/put a heavy negative planet into the box.
Make a heavy/heavy negative planet go in a circle in the box. With a heavy negative I got something that looked like the clouds at L4/5 (but only one). This is entirely different though.
(No one's been posting recently.)