Jump to content
Science Forums

Recommended Posts

Posted

I recently started working on a small program which could visually simulate the big bang and the creation of the universe (in a very simplified way of course); I found it difficult to find other visual references based in math(most videos I could find were more artist renditions than based on actual physics).

So here's what I have so far->

 

https://www.box.com/s/4cc14b5db39fcb7d7c76

 

you can press 'Q' to reset the model, 'X' to slow it down and 'Z' to speed it up.

 

The origin particles turn from white to indigo when they are able to smash into each other. When they do, it creates a 'black hole' and a bunch of particles(they are given color based on the 2 particles that created them) which are attracted by gravity towards the hole. The hole is attracted by the gravity of the origin of the big bang.(not sure if any of this is scientifically correct, but it 'looked' right visually- especially for the galaxies).

 

I would really appreciate any help in making this a more realistic model physics wise. Thanks in advance.

Posted

Welcome to hypography, Lurks! :)

 

I recently started working on a small program which could visually simulate the big bang and the creation of the universe (in a very simplified way of course)

...

I would really appreciate any help in making this a more realistic model physics wise. Thanks in advance.

Sounds pretty interesting and cool. :thumbs_up

 

However, most folk, me included, don’t like running executable files, for fear that they’re malware. It’s also hard to tell much about a program just by watching its output.

 

How about posting its source code?

Posted

Welcome to hypography, Lurks! :)

 

 

Sounds pretty interesting and cool. :thumbs_up

 

However, most folk, me included, don’t like running executable files, for fear that they’re malware. It’s also hard to tell much about a program just by watching its output.

 

How about posting its source code?

 

here is a video showing it in action, it starts at 15 fps, but I accelerated it to 60 once the galaxies started forming

 

the program was done using the game maker engine, so most of the commands are using the built in functions.

Here is the the bigbang creation event

{

bigbangdirection=random(359)

bigbangforce=3.14159265

matter=2000

dirstray=45

for(i=0; i<=100; i+=1)

{

matterloss=5+random(10)

 

blastdir=bigbangforce+(dirstray/2-random(dirstray))

pix=instance_create(x+lengthdir_x(2,blastdir),y+lengthdir_y(2,blastdir),object1)

pix.matter=matterloss

pix.speed=(bigbangforce)

pix.direction=random(359)

pix.color_strain=make_color_hsv(i*2.55,255,255)

pix.i=i

}

status=0

alarm[0]=60

endtime=0.1

}

once the alarm run out, the particles can smash into each others

 

this is the event running every frame

{

with object1{

gravity=0.0314159265

gravity_direction=point_direction(x,y,object0.x,object0.y);if speed>=3.14159265{speed=3.14159265}

}

 

with object2{

gravity=0.0314159265

gravity_direction=point_direction(x,y,object0.x,object0.y);if speed>=3.14159265{speed=3.14159265}

}

 

with object3{

gravity=0.314159265

gravity_direction=point_direction(x,y,gravitywell.x,gravitywell.y);

if speed>=3.14159265{speed=3.14159265}

}

}

 

and here is the event when origin particles smash into each others

 

if object0.status=1

{

bhole=instance_create(x,y,object2);with other{for(i=0; i<=matter; i+=1)

{pixi=instance_create(x,y,object3);pixi.mass=1;pixi.image_blend=color_strain;pixi.i=i;pixi.speed=speed;pixi.direction=random(359);pixi.gravitywell=instance_nearest(x,y,object2)};instance_destroy()}

for(i=0; i<=matter; i+=1)

{pixi=instance_create(x,y,object3);pixi.mass=1;pixi.image_blend=color_strain;pixi.i=i;pixi.speed=speed;pixi.direction=random(359);pixi.gravitywell=bhole}

instance_destroy()

}

  • 1 month later...
Posted

i wonder of you could do one for my atomic model, basically the opposite of the condensation of the universe from a flat hydrogen one, where a quasar would be the center of a universe, with an active galactic nuclei being active, and having coronal mass ejections from the AGN, where the nucleus of the atom is matter/antimatter pairs constantly annihilating and recreating powered by time

 

and the effective role if the AGN is to go from large to small

 

similar to atomic decay

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...