Home > atmlab > geophysics > mixr2massconc.m

mixr2massconc

PURPOSE ^

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

SYNOPSIS ^

function massconc = mixr2massconc( mixr, pres, temp )

DESCRIPTION ^

=============================================================
 massconc = mixr2massconc( mixr, pres, temp)

 Calculates mass concentration from mass mixing ratio assuming
 a mixture of an atmospheric species and dry air.
  
 Input:    mixr       mass mixing ratio vector of species [Kg/Kg]
           pres       atmopsheric pressures [Pa]
           temp       absolute temperature [K]

 Output:   massconc   mass concentration [Kg/m3]

 Carlos Jimenez 2014-02-12
=============================================================

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

mixr2massconc.m

SOURCE CODE ^

0001 %=============================================================
0002 % massconc = mixr2massconc( mixr, pres, temp)
0003 %
0004 % Calculates mass concentration from mass mixing ratio assuming
0005 % a mixture of an atmospheric species and dry air.
0006 %
0007 % Input:    mixr       mass mixing ratio vector of species [Kg/Kg]
0008 %           pres       atmopsheric pressures [Pa]
0009 %           temp       absolute temperature [K]
0010 %
0011 % Output:   massconc   mass concentration [Kg/m3]
0012 %
0013 % Carlos Jimenez 2014-02-12
0014 %=============================================================
0015 
0016 function massconc = mixr2massconc( mixr, pres, temp )
0017   
0018 %= specific gas constant for dry air
0019 Re = constants('GAS_CONST_DRY_AIR'); % Pa * m3 /(kg�K)
0020 
0021 %= density of dry air
0022 rho =  airdensity( pres, temp ); % Kg / m3
0023 
0024 %= mass concentration
0025 massconc = rho .* mixr;  % Kg / m3
0026 
0027 return
0028 
0029

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