Jump to content

Calculating Pressure


Recommended Posts

I'm trying to figure out how to calculate parachute requirements, so I'm working through this equation. I think I get it, mostly, but I'm lost at calculating pressure. Can someone who knows their math explain how to work through that equation, maybe with a few examples?

Edited by norcalairman
Link to comment
Share on other sites

The pressure at an altitude is calculated via the following:

Each planet has two defining factors for the atmosphere. For Kerbin these are:

- Scale height (in Meter): 5000m

- Pressure at sealevel (in atm): 1 atm

For other planets these values are available on their wiki-pages.

You can calculate the pressure within the atmosphere at an altitude of lets say 13km above sealevel by:

pressureKerbin(Altitude) = Pressure_At_Sealevel * exp(-Altitude / Scale_Height_Kerbin)

pressureKerbin(13km) = 1 atm * exp(-13km / 5km) ~ 0.07427358 atm

(more physics stuff here)

Link to comment
Share on other sites

The pressure at an altitude is calculated via the following:

Each planet has two defining factors for the atmosphere. For Kerbin these are:

- Scale height (in Meter): 5000m

- Pressure at sealevel (in atm): 1 atm

For other planets these values are available on their wiki-pages.

You can calculate the pressure within the atmosphere at an altitude of lets say 13km above sealevel by:

pressureKerbin(Altitude) = Pressure_At_Sealevel * exp(-Altitude / Scale_Height_Kerbin)

pressureKerbin(13km) = 1 atm * exp(-13km / 5km) ~ 0.07427358 atm

(more physics stuff here)

Okay, I think I'm almost there, but what is "exp"?

Link to comment
Share on other sites

No, I didn't and I checked that python was returning -3 for -13/5. And exp(-3) resulted in 0.04978706. So is that correct?

what I mean is that you should make sure the numbers you are dividing are doubles otherwise they get rounded down (to -infinity) and you lose accuracy,

if you try -13.0/5.0=-2.6 and exp(-13.0/5.0) you will see the correct output (the ~0.07427358 you were expecting)

Link to comment
Share on other sites

what I mean is that you should make sure the numbers you are dividing are doubles otherwise they get rounded down (to -infinity) and you lose accuracy,

if you try -13.0/5.0=-2.6 and exp(-13.0/5.0) you will see the correct output (the ~0.07427358 you were expecting)

Ahhhh! It's been too long since I played with Python. Thank you for your patience, ratchet freak.

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...