Wednesday, August 6, 2003

« Can I send this to my parents? | Main | Monkeys could do my job »

Centripetal acceleration calculator

So I was asking the other day for confirmation of some calculations about centripetal acceleration. Well, in my usual overboard fashion, I created a little CGI script to help myself play around with different values for size, speed, and effective gravity for my station:

http://www.shunn.net/cgi-bin/centrifuge.cgi

You provide two of the three values (ac , r, and/or Δt) and the script calculates the third. You can choose the units for input also; if they differ from G, meters, or seconds, respectively, the results are provided in both the default and specified units. You can also set the display units for the blank value.

The results print in a table that provides acceleration values for different levels of the station, moving closer to the hub.

The script is written in Perl, with most of the units conversions provided by the Math::Units module. Perl is not the best for casual math calculations, so there are sometimes small rounding errors in the results. Also, the script isn't really designed to squeal at invalid input. I didn't want to spend more time on this than I had to, although I still did.

The initial values when you access the script are the ones I finally settled on for my station. (Yeah, it's big. But the station figures in two stories I've already published, and I intend to write more, so it was probably past time to nail down its dimensions.)

[ original post:  http://shunn.livejournal.com/110671.html ]

TrackBack

TrackBack URL for this entry:
http://www.shunn.net/cgi-bin/managed-mt/mt-tb.cgi/2271

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

William Shunn

About

This page contains a single entry from the blog posted on August 6, 2003 9:31 AM.

The previous post in this blog was Can I send this to my parents?.

The next post in this blog is Monkeys could do my job.

Many more can be found on the main index page or by looking through the archives.

Copyright © 1995-2012 by William Shunn.
All rights reserved, except where explicitly specified otherwise.
write to feedback AT shunn DOT net