No BSD License  

Highlights from
Air density calculation

3.83333

3.8 | 6 ratings Rate this file 11 Downloads (last 30 days) File Size: 2.74 KB File ID: #12565

Air density calculation

by Jose Luis Prego

 

06 Oct 2006 (Updated 05 Feb 2007)

This function calculates the density of the air

| Watch this File

File Information
Description

This function calculates the air-density based on the papers:

1)'Equation for the Determination of the Density of Moist Air'
P.Giacomo, Metrologia 18, 33-40 (1982)

2)'Equation for the Determination of the Density of Moist Air'
R.S. Davis Metrologia 29, 67-70 (1992)

Parameters:
   t = ambient temperature (ºC)
  hr = relative humidity [%]
   p = ambient pressure [Pa]

ver 1.0
06/10/2006 Jose Luis Prego Borges
Sensor & System Group, Universitat Politecnica de Catalunya, Spain

MATLAB release MATLAB 6.5 (R13)
Other requirements matlab 6.5
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
10 Oct 2006 Jos x

Why not vectorize it so you can put in a list of numbers? (simply use .* instead of * etc.)
Why is f0 in the argument list?
The help should mention what "ro" is and in what units it is expressed.
End the calculations with a semi-colon to suppress the display.
For some (most) values ro is negative? Can that be true?
You should check for unphysical inputs (e.g., hr>100%).

25 Dec 2006 Nanthakarn Udomputtisit  
22 Jun 2007 Niclas -

Good work! Although the difference is minor, the correct conversion between degrees Celsius and Kelvin is:

t90 / °C = T90/K - 273.15

Check the ITS-90 page on:
http://www.its-90.com/its-90.html

Best regards,
niclas

23 Nov 2007 paramust juntarakod

thank you for your work

18 Aug 2008 riva wahyudi

good

18 Aug 2008 riva wahyudi

good for reference tehnical specification

26 Jan 2012 Olfert

missing the temperature and pressure limitations for this function?

I tried to use it to get air density in a simulation of a combustion engine with 1>=hr>=0, but it seems that after 3.5e6Pa and 1500K the function doesn't work. It returns negatives densities. I guess thats the limitations, just so it is here.

other wise great function :D

21 Feb 2012 Kim DiGiovanni  
21 Feb 2012 Kim DiGiovanni

Excellent! Easy to use and well developed and cited!

Please login to add a comment or rating.
Updates
05 Feb 2007

New vectorized version 1.1
Thank's to:
Dr. Richard P. Signell
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598

Tag Activity for this File
Tag Applied By Date/Time
chemistry Jose Luis Prego 22 Oct 2008 08:42:59
physics Jose Luis Prego 22 Oct 2008 08:42:59
air density calculation value Jose Luis Prego 22 Oct 2008 08:42:59
giacomo Jose Luis Prego 22 Oct 2008 08:42:59
moisture Jose Luis Prego 22 Oct 2008 08:42:59
pressure Jose Luis Prego 22 Oct 2008 08:42:59

Contact us at files@mathworks.com