Java Gravitational Constant Problem in Planetary Java Model.

AI Thread Summary
The discussion revolves around implementing Newton's law of gravitation in a planetary model involving two objects with masses of 500 kg and 20 kg, separated by a distance of 150 meters. The initial formula presented for calculating the gravitational field is identified as incorrect; it actually represents gravitational force. The gravitational constant, G, is clarified as 6.67384 x 10^-11 m^3 kg^-1 s^-2, with emphasis on the importance of using consistent units—meters for distance, kilograms for mass, and seconds for time. The conversation highlights the need for understanding basic physics concepts and units to apply the formula correctly, noting that the gravitational force calculated will be quite small unless dealing with larger masses like planets. The interaction also underscores the value of patience and clarity in teaching complex topics.
eArtist
Messages
5
Reaction score
0
Hi there

I am currently trying to implement Newtons law of gravitation into a planetary model.

I have 2 objects with mass of 500 and 20. The distance between them is 150.
From what I gather from wikipedia I could use the following formula:

GravityField = G * ((500*20)/(150^2))
Where G is the gravitational constant.

What is the value of G? I could not figure it out from wiki...
And is the formula correct?

- eArtist
 
Technology news on Phys.org
eArtist said:
GravityField = G * ((500*20)/(150^2))
False! That is formula for gravitational force, not field.
Where G is the gravitational constant.
What is the value of G? I could not figure it out from wiki...
Come on! Could it be more obvious?
http://en.wikipedia.org/wiki/Gravitational_constant
 
I am not as into physics as you it seems. Can you please elaborate?
I need to set a value to G.
 
eArtist said:
I am not as into physics as you it seems. Can you please elaborate?
I need to set a value to G.
Just click the link to wiki. You need not to be a physicist to click and read it. It is written there in a VERY BIG characters.
 
I am a bit dissapointed at your hostile attitude. I am sorry if I offended you in any way.

Yes I have studied it for a while, but I don't understand.

6.67384 * 10^-11 m^3 kg^-1 s^-2 = ??
 
You finally found the value you looked for.
What is to be understood in it? You got it expressed using several units of measure, chose whichever fits to your needs or convert it to yet other ones. If you consequently use SI system the first units are easiest to follow.
 
What I don`t understand is:
what value is s?
what value is m?
what value is kg?

6.67384 * 10^-11 m^3 kg^-1 s^-2 = ??
 
They are the units. Your two objects have mass 200 and 50, hopefully that is kilograms, and if the distance of 150 is in metres, then your units are correct, and you can go ahead and use the number 6.67*10^(-11) for G (which will give you a force in Newtons). The units are an essential part of any physically meaningful equation.

Notice that it's a pretty small number, the mutual force between the masses will be pretty small unless you're dealing with planets or something!
 
You really do not know what second (s), meter (m), and kilogram (kg) are?
 
  • #10
Oh i see!
Thank you very much for the clarification :smile:
 
  • #11
xts said:
You really do not know what second (s), meter (m), and kilogram (kg) are?

We all were confused at some point in our lives, and we probably still all would be without patient teachers...
 

Similar threads

Replies
4
Views
5K
Replies
18
Views
6K
Replies
9
Views
10K
Replies
11
Views
3K
Replies
1
Views
3K
Back
Top