Search found 9 matches

by ahmedkq
Mon May 16, 2022 11:46 am
Forum: Gravity Simulator
Topic: Gravity Art Megathread
Replies: 58
Views: 135184

Re: Gravity Art Megathread

https://i.ibb.co/xDJmcsM/Screenshot-2022-05-16-174145.png //Gravity fun at TestTubeGames _settings(gravity: r^-2, n: 2 trapped particles); _type0(m: -1, col: 3, pic: 1); _type1(m: -1, col: 2, pic: 2); _add(type: 0, x: -10, y: 190 ,vx:5, t: 0); _add(type: 1, x: -10, y: 190 ,vx:2, t: 50); _addCircle(...
by ahmedkq
Sun Oct 31, 2021 2:20 pm
Forum: Gravity Simulator
Topic: How to simulate an elastic collision?
Replies: 1
Views: 1915

How to simulate an elastic collision?

I tried to simulate a collision between two bodies with nograv options. I thought I would get an elastic collision result, but it seems that the collision is not perfectly elastic! //Gravity fun at TestTubeGames _settings(gravity: 0.000001*r^(-2)); _add(m: 1, col: 4, lcol: 4, pic: 1, x: -200, y: 0, ...
by ahmedkq
Sun Sep 05, 2021 10:19 am
Forum: Gravity Simulator
Topic: Rotating object code
Replies: 1
Views: 4357

Rotating object code

Hi,
Assume I want to write the code of a more realistic solar system, how to code the angular velocity of the sun, earth, or any planet rotating around its own axis?
Thanks
by ahmedkq
Sun Apr 05, 2020 11:04 pm
Forum: Gravity Simulator
Topic: 5 suns controlled by spring action
Replies: 0
Views: 11042

5 suns controlled by spring action

@ couples of binary stars that revolve around each other and all revolve around big mass making a very beautiful stable art piece https://i.imgur.com/Ns7yBtv.png //Gravity fun at TestTubeGames _settings(gravity: r^-2+0.5*r, zoom: 1.09, n: 5 suns controlled by spring action); _type1(m: 10, col: 2, lc...
by ahmedkq
Sun Apr 08, 2018 2:11 am
Forum: Gravity Simulator
Topic: How to include general relativity in the code?
Replies: 4
Views: 11975

Re: How to include general relativity in the code?

Many Thanks for the useful answer :)
by ahmedkq
Sat Apr 07, 2018 2:16 am
Forum: Gravity Simulator
Topic: 12 negative masses confined in negative mass rings
Replies: 2
Views: 10105

12 negative masses confined in negative mass rings

https://image.ibb.co/eDObNH/12_negative_masses_confined_in_negative_mass_rings.png //Gravity fun at TestTubeGames _settings(gravity: r^-2, n:12 negative masses confined in negative mass rings; _add(m: -100, d: 10, col: 1, lcol: 2, pic: 1, x: -20, y: 150, vx=0, vy=0, t: 0); _add(m: -100, d: 10, col:...
by ahmedkq
Thu Feb 15, 2018 10:34 pm
Forum: Gravity Simulator
Topic: How to include general relativity in the code?
Replies: 4
Views: 11975

How to include general relativity in the code?

When I start GR I have to load the code first then to switch on the GR option from setup. I am asking how to start directly with GR (and light speed value) such that it is already included in the code?
by ahmedkq
Sat Feb 15, 2014 7:11 pm
Forum: Gravity Simulator
Topic: Symmetric 8 high -ve mass suns and 4 -ve masses
Replies: 6
Views: 7974

Re: Symmetric 8 high -ve mass suns and 4 -ve masses

Oh my, negative masses! I would've loved to take a look at that kind of stuff... but... When I tried to use your code and it doesn't work. D: This is mostly because there's some unnecessary line breaks and its lacking the "Gravity Fun at TestTubeGames.com:" Also, you really should've used the code ...
by ahmedkq
Sat Feb 15, 2014 6:04 am
Forum: Gravity Simulator
Topic: Symmetric 8 high -ve mass suns and 4 -ve masses
Replies: 6
Views: 7974

Symmetric 8 high -ve mass suns and 4 -ve masses

ahmedkq 8 high -ve mass suns , 4 -ve mass bodies: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 100,y0:0,vx: -8,vy: 0,t0: 0,who: 2,m: -1000], [x0: -100,y0:0,vx: 8,vy: 0,t0: 0,who: 2,m: -1000], [x0: 0,y0:100,vx: 0,vy: -8,t0: 0,who: 2,m: -1000], [x0: 0,y0:-100,vx: 0,vy: 8,t0: 0,who: 2,m: -1000],[...