Gravity Calculation: Calculate Accel Gravity

  • Context: MHB 
  • Thread starter Thread starter dcs1953
  • Start date Start date
  • Tags Tags
    Calculation Gravity
Click For Summary
SUMMARY

The discussion focuses on calculating gravitational acceleration using Newton's Universal Law of Gravitation and Newton's second Law of Motion. The gravitational constant (G) is defined as 6.673e-11, and the mass of Earth (M) is 5.98e24 kg. The formula derived for acceleration due to gravity is a = G * (M / r^2), where r is the distance from the center of the Earth, set at 6.38e6 meters. The code provided demonstrates how to implement this calculation in Java.

PREREQUISITES
  • Understanding of Newton's Laws of Motion
  • Familiarity with Java programming language
  • Knowledge of gravitational physics concepts
  • Basic mathematical skills for handling equations
NEXT STEPS
  • Implement the gravitational acceleration calculation in Python
  • Explore the effects of varying distance (r) on gravitational acceleration
  • Study the implications of gravitational acceleration in orbital mechanics
  • Learn about the integration of physics simulations in Java applications
USEFUL FOR

Students of physics, software developers working on simulations, and anyone interested in gravitational calculations and their applications in programming.

dcs1953
Messages
3
Reaction score
0
Code:
public class GravityCalculation {
   public static void main (String [] args) {
      double G            = 6.673e-11;
      double M            = 5.98e24;
      double accelGravity = 0.0;
      double distCenter   = 0.0;

      distCenter = 6.38e6;

      /* Your solution goes here  */

      System.out.println("accelGravity: " + accelGravity);
      return;
   }
}
 
Last edited by a moderator:
Technology news on Phys.org
Please wrap your code in [CODE][/CODE] tags...it will preserve the whitespace and make your code easier to read.

One form of Newton's second Law of Motion is:

$$a=\frac{F}{m}$$

where $a$ is acceleration, $F$is the applied force, and $m$ is the mass of the object in motion.

And, Newton's Universal Law of Gravitation states:

$$F=G\frac{Mm}{r^2}$$

Where $F$ is the resulting force, $G$ is the gravitational constant, $M$ and $m$ are the masses of the two objects attracting one another, and $r$ is the distance separating their centers of mass. And so, we find the resulting acceleration of the object having mass $m$ to be:

$$a=\frac{F}{m}=\frac{G\dfrac{Mm}{r^2}}{m}=G\frac{M}{r^2}$$

Can you now use this to construct the needed statement?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
17K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
12K
Replies
3
Views
3K
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
849
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
8K