Home > atmlab > geophysics > mixr2vmr.m

mixr2vmr

PURPOSE ^

=============================================================

SYNOPSIS ^

function vmr = mixr2vmr( mixr, molm )

DESCRIPTION ^

=============================================================
 vmr = mixr2vmr(mixr,molm)

 Calculates VMR-values from mass mixing ratio assuming
 a mixture of an atmospheric species and dry air.
  
 Derivation 

  mixr = mass_species/mass_dry-air
      = n.moles species * molecular mass species / 
        n.moles dry-air * molecular mass dry-air  
  
  vmr = n_w/n_d
  
     vmr = Md/Mw*mixr


 Input:    mixr   mass mixing ratio vector of species [Kg/Kg]
           molm   species molecular mass  [Kg/mol]

 Output:   vmr vector of VMR-values [m3/m3]

 Carlos Jimenez 2013
=============================================================

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

mixr2vmr.m

SOURCE CODE ^

0001 %=============================================================
0002   % vmr = mixr2vmr(mixr,molm)
0003 %
0004 % Calculates VMR-values from mass mixing ratio assuming
0005 % a mixture of an atmospheric species and dry air.
0006 %
0007 % Derivation
0008 %
0009 %  mixr = mass_species/mass_dry-air
0010 %      = n.moles species * molecular mass species /
0011 %        n.moles dry-air * molecular mass dry-air
0012 %
0013 %  vmr = n_w/n_d
0014 %
0015 %     vmr = Md/Mw*mixr
0016 %
0017 %
0018 % Input:    mixr   mass mixing ratio vector of species [Kg/Kg]
0019 %           molm   species molecular mass  [Kg/mol]
0020 %
0021 % Output:   vmr vector of VMR-values [m3/m3]
0022 %
0023 % Carlos Jimenez 2013
0024 %=============================================================
0025 
0026 function vmr = mixr2vmr( mixr, molm )
0027   
0028 %= molecular mass of dry air
0029 molmd = 28.9661e-3; 
0030 
0031 %= vmr
0032 vmr = mixr * ( molmd / molm );
0033 
0034 return
0035 
0036

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