Lurk Posted July 4, 2012 Report Posted July 4, 2012 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. Quote
CraigD Posted July 4, 2012 Report Posted July 4, 2012 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? Quote
Lurk Posted July 4, 2012 Author Report Posted July 4, 2012 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.14159265matter=2000dirstray=45for(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=matterlosspix.speed=(bigbangforce) pix.direction=random(359)pix.color_strain=make_color_hsv(i*2.55,255,255)pix.i=i}status=0alarm[0]=60endtime=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.0314159265gravity_direction=point_direction(x,y,object0.x,object0.y);if speed>=3.14159265{speed=3.14159265}} with object2{gravity=0.0314159265gravity_direction=point_direction(x,y,object0.x,object0.y);if speed>=3.14159265{speed=3.14159265}} with object3{gravity=0.314159265gravity_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()} CraigD 1 Quote
LaurieAG Posted August 5, 2012 Report Posted August 5, 2012 Hi Lurk, thats interesting, bigbangforce=3.14159265...pix.speed=(bigbangforce) ...gravity=0.0314159265...if speed>=3.14159265{speed=3.14159265}Could you show the subroutines too. Quote
belovelife Posted August 5, 2012 Report Posted August 5, 2012 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.