2.9

2.9 | 10 ratings Rate this file 21 Downloads (last 30 days) File Size: 2.29 KB File ID: #8799

Standard Atmosphere Calculator

by Richard Rieber

 

23 Oct 2005 (Updated 09 May 2006)

Calculates pressure, density, temperature, and speed of sound as a function of height.

| Watch this File

File Information
Description

Using the 1976 US standard atmosphere model, this function returns pressure, denisity, temperature, and speed of sound at a given altitude. Works for both English and metric units.

Acknowledgements
This submission has inspired the following:
Complete 1976 Standard Atmosphere, STDATMO: Standard Atmosphere Function
MATLAB release MATLAB 6.5 (R13)
Other requirements Cheesecake
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
15 Feb 2006 matt b

Needed to modify it to work with my version of matlab,
[mat] = atmosphere(...)
...
mat = [t, p,rho,a]

28 Mar 2006 Ramji Srimurugan  
29 Mar 2006 Denis Fefelov  
28 Apr 2006 Lance Locey  
06 May 2006 Eric Wendel

Also, I think line 112 should read:
"[TNew, PNew, RhoNew] = Gradient(H5, H6, TNew, PNew, RhoNew, L6)"

It would also be very helpful if the input were allowed to be a vector.

21 Dec 2006 Tom Terrell

Careful on the accuracy of this program, it is based on an obsolete atmosphere model

11 Jan 2007 Brent Lewis

Only covers less than 10% of the 1976 Standard Atmosphere(what is that half a star :) ). Might try the COMPLETE 1976 standard atmosphere. See ya in class(or the bar) Rich

17 Jan 2007 Caleb Weitz

Very rough values for constants and sloppy coding. Think about recoding.

21 Aug 2007 Richard Rieber

I have no plans about maintaining this function or improving its accuracy. Brent Lewis has written a much better function that includes altitudes upwards of 2000 km and also molecular composition. This is excellent for both aircraft, rockets, and for use in atmospheric drag calculations.

If you require high degrees of accuracy and the more complete version, please use Mr. Lewis' software. However, if you need a simple function with lower accuracy, by all means, try mine.

27 Oct 2007 Brad Hixon

Accuracy is far below what is required in most aerospace classes now

01 Jan 2008 Michael Young

Errors in calculated values. Don't Use

Please login to add a comment or rating.
Updates
04 Nov 2005

Found some big bugs in it that made the function not work. Everything is all better now ^_^

20 Mar 2006

Was informed about bad returns for density and that the code referenced a 1958 standard atmosphere. The density has been fixed and all altitude and lapse rates have been updated to the 1976 version.

09 May 2006

An error was discovered in the upper atmosphere section of the code. This has been fixed. The software can now accept vector inputs as opposed to just a single altitude.

Tag Activity for this File
Tag Applied By Date/Time
aerospace Richard Rieber 22 Oct 2008 08:04:03
aeronautics Richard Rieber 22 Oct 2008 08:04:03
aerodef Richard Rieber 22 Oct 2008 08:04:03
atmosphere Richard Rieber 22 Oct 2008 08:04:03
standard Richard Rieber 22 Oct 2008 08:04:03
altitude Richard Rieber 22 Oct 2008 08:04:03
pressure Richard Rieber 22 Oct 2008 08:04:03
density Richard Rieber 22 Oct 2008 08:04:03
temperature Richard Rieber 22 Oct 2008 08:04:03

Contact us at files@mathworks.com