How Do I Convert the Gravitational Constant to Pixels?

Click For Summary
SUMMARY

This discussion focuses on converting the gravitational constant (G) into pixel units for a physics simulation of satellite motion around Earth. The gravitational constant is given as G = 6.673 x 10^-11 m^3/(kg·s^2). The conversion factor used is 1 pixel = 1829773.7957659496946338217168068 meters. By applying dimensional analysis, the new value of G in pixel units is calculated as G ≈ 1.089 x 10^-29 pixel^3/(kg·s^2) after dividing by the cube of the conversion factor.

PREREQUISITES
  • Understanding of gravitational constant G and its units
  • Familiarity with dimensional analysis
  • Basic knowledge of programming for physics simulations
  • Concept of unit conversion in physics
NEXT STEPS
  • Research dimensional analysis techniques in physics
  • Learn about unit conversion methods in scientific programming
  • Explore gravitational physics and its applications in simulations
  • Investigate programming libraries for physics simulations, such as Pygame or Unity
USEFUL FOR

Physics students, software developers working on simulations, and anyone interested in understanding gravitational constants in different unit systems.

devil
Messages
5
Reaction score
0
gravitational constanT G -- HELP!



ok, right now I'm working on a physics project :) satelite motion around earth...I managed to create a program that simulates all that stuff...but I don't quite like my G constant!

In my program I want to recreate moon and Earth relationship!

so scale looks this way:
1pixel = 1829773.7957659496946338217168068 meters

so now I want my G number to be written in pixels, I know it's m*m*m/kg * s * s

so, I can't make up my mind, how to write that in pixels...:)

any help appreciated :)
 
Last edited:
Astronomy news on Phys.org
You can do it by dimensional analysis. Just treat a pixel as just another unit of length, as if you were going to convert G from SI units to British units.

First, let b = 1829773.7957659496946338217168068, where your conversion factor is "b meters per pixel." Additionally, I'm going to write G = 6.673*10^-11 m^3/(kg*s^2) here, but you should use a value to however many decimals you wish.

So:

[tex] \newcommand{\unit}[1]{\mathrel{\mathrm{#1}}}<br /> G = \frac{6.673\times 10^{-11}\unit{m^3}}{\unit{kg\cdot s^2}}\cdot<br /> \frac{\unit{pixel^3}}{(b\unit{m})^3}[/tex]

Therefore, your new value of the gravitational constant is:

[tex] \newcommand{\unit}[1]{\mathrel{\mathrm{#1}}}<br /> G = \frac{6.673\times 10^{-11}\unit{pixel^3}}{b^3\unit{kg\cdot s^2}}<br /> \approx \frac{1.089\times 10^{-29}\unit{pixel^3}}{\unit{kg\cdot s^2}}[/tex]

To make a long story short, divide by 1829773.7957659496946338217168068^3.
 
Last edited:

Similar threads

  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 86 ·
3
Replies
86
Views
9K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 56 ·
2
Replies
56
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K