2.9

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

Standard Atmosphere Calculator

by

 

23 Oct 2005 (Updated )

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 file inspired Complete 1976 Standard Atmosphere and Stdatmo: Standard Atmosphere Function.

MATLAB release MATLAB 6.5 (R13)
Other requirements Cheesecake
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (11)
01 Jan 2008 Michael Young

Errors in calculated values. Don't Use

27 Oct 2007 Brad Hixon

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

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.

17 Jan 2007 Caleb Weitz

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

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

21 Dec 2006 Tom Terrell

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

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.

28 Apr 2006 Lance Locey  
29 Mar 2006 Denis Fefelov  
28 Mar 2006 Ramji Srimurugan  
15 Feb 2006 matt b

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

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.

Contact us