.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 21st, 2003, 03:38 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

You need to multiply by 1000 instead of divide, since there are more meters than kilometers.
Reply With Quote
  #2  
Old August 21st, 2003, 05:15 PM
Slick's Avatar

Slick Slick is offline
Brigadier General
 
Join Date: Apr 2002
Location: Kailua, Hawaii
Posts: 1,860
Thanks: 0
Thanked 1 Time in 1 Post
Slick is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

DOH! That's pretty much how NASA missed Mars with the Last mission. Or maybe they hit Mars, but they certainly didn't get into orbit as desired. It was a unit conVersion error.

Slick.
__________________
Slick.
Reply With Quote
  #3  
Old August 21st, 2003, 11:54 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Calculating a planet\'s mass & gravitational pull

It helps if you set up "conVersion factors" (lame, yes; but still useful). An example:

code:
         / 1000 m \
12 km x | ------ | = 12000 m
\ 1 km /

(those are parenthesis)
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old August 22nd, 2003, 09:59 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

Yeah, one of my planned features will be the ability to select different units for input/output. I'll just have to filter all calculations through a "conVersion" function.
Reply With Quote
  #5  
Old August 22nd, 2003, 03:13 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

Why not just output it in all units simultaneously.
B5 = meters
B7 = B5 * feet/meter
...etc...
Reply With Quote
  #6  
Old August 22nd, 2003, 03:26 PM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

That would make it too cluttered. I'm not talking about the spreadsheet any more, I'm currently putting the whole thing into javascript for my webpage.
Reply With Quote
  #7  
Old August 28th, 2003, 01:58 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

*sigh*

sorry to bother y'all again, but...
Where am I going wrong? I'm trying to work out the calculation needed to derive radius (in km) from a known mass and surface gravity (in metres per second per wotsit):

g=surface gravity, G= gravitational constant, m=mass, r=radius.

g=G*m*(r*1000)^3 - this one works in my excel sheet.
therefore
g/G=m*(r*1000)^3
therefore
(g/G)/m=(r*1000)^3
therefore
cuberoot((g/G)/m)=r*1000
therefore
cuberoot((g/G)/m)/1000=r

Or is that all crud? It's a long time since I studied or used this kind of maths.

Apart from this, the javascript sheet is coming along nicely.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.