Hello,(adsbygoogle = window.adsbygoogle || []).push({});

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.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Simulation of Electromagnet Force

Loading...

Similar Threads for Simulation Electromagnet Force | Date |
---|---|

I Why Monte Carlo Simulations? What do they tell us? | Feb 22, 2017 |

I Unbroken electromagnetic symmetry | Jan 21, 2017 |

I Where are the four muons in this picture | Jul 31, 2016 |

A How reliable are MC simulations when it comes to jets? | Jul 16, 2016 |

How to simulate protons on a computer program to observe them? | Jan 12, 2016 |

**Physics Forums - The Fusion of Science and Community**