Jump to content

Center of Mass?


Recommended Posts

How does KSP calculate the center of mass of ships with partially empty tanks? I mean, does it calculate the center of mass of a partially-full tank assuming the remaining fuel is at one end of the tank...or does it just use the decreased mass of the partially-full tank and assume the CoM of that tank is at the center of the tank?

I could do some experiments, of course, but I thought I'd ask if anybody knew the answer first.

And I want to know because I'm pondering making a VTOL aircraft, and I expect keeping it balanced as fuel is used to be a major difficulty.

Link to comment
Share on other sites

I believe each fuel tank's center of mass remains in the same place as fuel is burned, but a group of fuel tanks would normally have a shift in the CoM as the fuel in the front tanks is used.

Link to comment
Share on other sites

I would like to know this too. I struggle to create balanced RCS systems to make docking something other than a screen punching, teeth grinding affair and i seem to be doing okay, but i'd hate to find out someday in Duna orbit or whatever that i cant move worth a damn because my cog has shifted.

Link to comment
Share on other sites

And I want to know because I'm pondering making a VTOL aircraft, and I expect keeping it balanced as fuel is used to be a major difficulty.

IMO an easy way is to make the tank arrangement 'Plus' shaped. So symmetric on both axis. A couple of examples below. I have stripped away wings to show the tanks.

1 seater

9099590389_0ce127f8a6_c.jpg

3 seater

9101828022_dea9e3f836_c.jpg

Edited by bsalis
Link to comment
Share on other sites

Yes, but that's not how the CoM of ships is calculated in KSP (perhaps individual parts, but not whole vessels). The center of mass can (sort of) be explained as the average of all the masses of the objects and their positions, so bigger objects farther out will shift the CoM farther towards the new big object, versus a lighter object at the same location which won't move the CoM quite as much. Now this explanation is just a sort of visual aid and not necessarily used in real science, but if you get the concept then you should be good.

(Somewhat) Helpful equation: Mn*(xn,yn,zn)+Mn+1*(xn+1,yn+1,zn+1)+ ... ad infinitum

Where M is mass of each object n and (x,y,z) is the position of the object.

Again, note that this is a visual aid with a simple way for the CoM to be calculated, don't go into a college physics class and say "this is the way!" because while it may work for KSP, real life and KSP physics are significantly different (I came up with it while eating breakfast, so there's that too). :)

If I did do it right, then terrific! Physicists, feel free to correct me if something isn't right; it'd be good to have someone who does this professionally in here to help. :D

Link to comment
Share on other sites

Yes, but that's not how the CoM of ships is calculated in KSP (perhaps individual parts, but not whole vessels). The center of mass can (sort of) be explained as the average of all the masses of the objects and their positions, so bigger objects farther out will shift the CoM farther towards the new big object, versus a lighter object at the same location which won't move the CoM quite as much. Now this explanation is just a sort of visual aid and not necessarily used in real science, but if you get the concept then you should be good.

(Somewhat) Helpful equation: Mn*(xn,yn,zn)+Mn+1*(xn+1,yn+1,zn+1)+ ... ad infinitum

Where M is mass of each object n and (x,y,z) is the position of the object.

Again, note that this is a visual aid with a simple way for the CoM to be calculated, don't go into a college physics class and say "this is the way!" because while it may work for KSP, real life and KSP physics are significantly different (I came up with it while eating breakfast, so there's that too). :)

If I did do it right, then terrific! Physicists, feel free to correct me if something isn't right; it'd be good to have someone who does this professionally in here to help. :D

or if you use fuel lines to equal it all out at the same time you don't need the math, but if you have three tanks and burn only from the front one you will shift your com back.

Link to comment
Share on other sites

The CoM of the fuel tanks doesn't change, just the value. So the best way to build a balanced VTOL is to build the fuselage so that the CoM of the craft is as near as possible to the CoM of the tanks. Same with Helicopters.

I agree with this. So all you have to do is build the vessel so that CoM is exactly at the center of the fuel tank(s), and put the VTOL engine at that same point. Here's an example:

Intrepid_abort2.jpg

(By the way, this one features your wonderful BirdDog landing gear system.) Basically what I did here was to build the core and fuel tanks, position the VTOL so that it matches CoM, then position the outer wings for proper CoL. It would have been easier with a single fuel tank, but I was feeling inspired at the time to do twin-hull stuff.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...