- #1
ComputerPsi
- 24
- 0
Hello,
This sounds like a silly idea, but I am trying to simulate all forces of in the universe on my computer, putting in the correct physics equations for each force, one by one.
I was already able to simulate the force of gravity with the following formulas/equations:
G = 6.674205043E-11 'The Universal Constant of Gravitation
initialspeed = 0 'No additional force added.
mass1 = 70 'Average Person
'Earth
mass2 = 5.98E+24 'Planet's Mass
distances = 6378000 'On surface
force = (G * mass1 * mass2) / distances ^ 2
acceleration = force / mass1
'Or
acceleration = (G * mass2) / distances ^ 2
'loop through time
newposition=initialspeed * Time + (1 / 2) * acceleration * Time ^ 2)
'Stop looping when crashed into planet
Now, I am trying to simulate electromagnetisem. I found one formula that is probably the correct its:
K = 8987550000 'Coulomb's Constant
force = (K * q1 * q2) / distance
My question is, can I use the same equation "acceleration = force / mass1" to convert this force into acceleration? If so, is mass1 equal to q1?
If both are true, This seems to become an interesting equation as a result:
(G * mass) / distance ^ 2 = (K * mass) / distance
...supposedly meaning that gravity is produced by an electromagnetic force...
Please correct me if I am wrong.
Edit:
I just did the calculations.
As an example, I made mass equal 70 and distance equal to .2
As a result I got:
(G*mass)/distance^2 = 1.167985883E-7
(K*mass)/distance = 3.1456425E+12
So.. something is wrong.
Also, its possible that I posted in the wrong section, I am not sure where to post this since I am new to this website.. Moderators, please redirect it to the correct position if it is in the wrong section. Thanks.
This sounds like a silly idea, but I am trying to simulate all forces of in the universe on my computer, putting in the correct physics equations for each force, one by one.
I was already able to simulate the force of gravity with the following formulas/equations:
G = 6.674205043E-11 'The Universal Constant of Gravitation
initialspeed = 0 'No additional force added.
mass1 = 70 'Average Person
'Earth
mass2 = 5.98E+24 'Planet's Mass
distances = 6378000 'On surface
force = (G * mass1 * mass2) / distances ^ 2
acceleration = force / mass1
'Or
acceleration = (G * mass2) / distances ^ 2
'loop through time
newposition=initialspeed * Time + (1 / 2) * acceleration * Time ^ 2)
'Stop looping when crashed into planet
Now, I am trying to simulate electromagnetisem. I found one formula that is probably the correct its:
K = 8987550000 'Coulomb's Constant
force = (K * q1 * q2) / distance
My question is, can I use the same equation "acceleration = force / mass1" to convert this force into acceleration? If so, is mass1 equal to q1?
If both are true, This seems to become an interesting equation as a result:
(G * mass) / distance ^ 2 = (K * mass) / distance
...supposedly meaning that gravity is produced by an electromagnetic force...
Please correct me if I am wrong.
Edit:
I just did the calculations.
As an example, I made mass equal 70 and distance equal to .2
As a result I got:
(G*mass)/distance^2 = 1.167985883E-7
(K*mass)/distance = 3.1456425E+12
So.. something is wrong.
Also, its possible that I posted in the wrong section, I am not sure where to post this since I am new to this website.. Moderators, please redirect it to the correct position if it is in the wrong section. Thanks.
Last edited: