Newer
Older
/**
* \copyright
* Copyright (c) 2015-2016, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
/**
* Namespace containing physical constants
* All members of this namespace should be given in SI standard units,
* i.e., in terms of kg, m, s, K, mol, A, cd.
*/
namespace PhysicalConstant
{
/// Zero degrees Celsius in Kelvin
const double CelsiusZeroInKelvin = 273.15;
/**
Ideal gas constant in SI standard units (J \per{mol} \per{K})
- Source: http://physics.nist.gov/cgi-bin/cuu/Value?r
- Date visited: 2015-04-17
- Standard uncertainty: 0.000 0075 J mol^-1 K^-1
*/
const double IdealGasConstant = 8.3144621;
/**
* Molar masses of certain elements and chemical compounds
*/
namespace MolarMass
{
/**
* Water.
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of O is in the range [15.999 03,
* 15.999 77] g/mol
* and the molar mass of H is in the range [1.007 84, 1.008 11] g/mol
*/
const double Water = 0.018016; ///< kg \per{mol}
/**
* Nitrogen N<sub>2</sub>.
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of N is in the range [14.006 43,
* 14.007 28] g/mol
*/
const double N2 = 0.028013; ///< kg \per{mol}
/**
*
* - Source: http://www.ciaaw.org/pubs/TSAW2013_xls.xls
* - Date visited: 2015-05-28
*
* According to the IUPAC report the molar mass of O is in the range [15.999 03,
* 15.999 77] g/mol
*/
const double O2 = 0.032; ///< kg \per{mol}
/**
* Air.
*
* - Source: http://www.engineeringtoolbox.com/molecular-mass-air-d_679.html
*/
const double Air = 0.02897; ///< kg \per{mol}
/**
* Hydrogen.
*
* - Source: https://pubchem.ncbi.nlm.nih.gov/compound/Hydrogen
*/
const double H2 = 0.002016; ///< kg \per{mol}
} // namespace MolarMass
/**
* Specific gas constant \f$ R_\mathrm{s} = R/M \f$.
* \$M\$ is the molar mass.
* The unit of \f$ R_\mathrm{s} \f$ is J \per{kg} \per{K}.
*/
namespace SpecificGasConstant
{
/// Specific gas constant for water vapour.
const double WaterVapour = IdealGasConstant / MolarMass::Water; // = 461.504;
} // namespace SpecificGasConstant
/**
* Henry's law constant
* It is defined here as the ratio of the aqueous-phase concentration of a
* chemical to its equilibrium partial pressure in the gas phase.
*/
namespace HenryConstant
{
/**Henry constant for hydrogen, Please refer to
* De Nevers N. Physical and chemical equilibrium for chemical engineers[M].
* John Wiley & Sons, 2012.
*/
double const HenryConstantH2 = 7.65e-6; /// mol/Pa./m3
} // namespace HenryConstant
} // namespace PhysicalConstant