Home > atmlab > h2o > thermodynamics > relhum_to_vmr.m

relhum_to_vmr

PURPOSE ^

relhum_to_vmr converts relative humidity to volume mixing ratio vmr

SYNOPSIS ^

function vmr = relhum_to_vmr(rh, T, p)

DESCRIPTION ^

 relhum_to_vmr converts relative humidity to volume mixing ratio vmr

   vmr mixing ratio is the volume mixing ratio of particles of water vapour,  
   per particles of dry air at a given pressure. It can be expressed
   using water vapor pressure and air pressure.

 FORMAT    vmr = relhum_to_vmr(rh, T, p)
        
 OUT   vmr volume mixing ratio []
 IN    rh  relative humidity [%, rh > 0], it can be a scalar or a tensor
       T   air temperature [K], it can be a scalar or a tensor
       p   air pressure [Pa], it can be a scalar or a tensor
 EXAMPLE:
       vmr = relhum_to_vmr(50, 298, 100000)
       vmr = 0.0157

 ACCURACY: WATER_VAPOR_MIXING_RATIO calculates water vapor mixing ratio
           according to thermodynamic functions without any assumptions.

 Reference: PhD thesis Mathis Milz, p 9 

 2012-10-02   Created by Mathias Milz

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

relhum_to_vmr.m

SOURCE CODE ^

0001 function vmr = relhum_to_vmr(rh, T, p)  
0002 % relhum_to_vmr converts relative humidity to volume mixing ratio vmr
0003 %
0004 %   vmr mixing ratio is the volume mixing ratio of particles of water vapour,
0005 %   per particles of dry air at a given pressure. It can be expressed
0006 %   using water vapor pressure and air pressure.
0007 %
0008 % FORMAT    vmr = relhum_to_vmr(rh, T, p)
0009 %
0010 % OUT   vmr volume mixing ratio []
0011 % IN    rh  relative humidity [%, rh > 0], it can be a scalar or a tensor
0012 %       T   air temperature [K], it can be a scalar or a tensor
0013 %       p   air pressure [Pa], it can be a scalar or a tensor
0014 % EXAMPLE:
0015 %       vmr = relhum_to_vmr(50, 298, 100000)
0016 %       vmr = 0.0157
0017 %
0018 % ACCURACY: WATER_VAPOR_MIXING_RATIO calculates water vapor mixing ratio
0019 %           according to thermodynamic functions without any assumptions.
0020 %
0021 % Reference: PhD thesis Mathis Milz, p 9
0022 %
0023 % 2012-10-02   Created by Mathias Milz
0024 
0025 es = e_eq_water(T);
0026 e = rh .* es ./ 100;
0027 vmr = e ./ p;
0028

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005