3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
n2_o2.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_BINARY_COEFF_N2_O2_HH
25#define DUMUX_BINARY_COEFF_N2_O2_HH
26
29
32
33namespace Dumux {
34namespace BinaryCoeff {
35
40class N2_O2
41{
42public:
47 template <class Scalar>
48 static Scalar henry(Scalar temperature)
49 {
50 DUNE_THROW(Dune::NotImplemented, "henry coefficient for oxygen in liquid nitrogen");
51 }
52
60 template <class Scalar>
61 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
62 {
65
66 // atomic diffusion volumes
67 const Scalar SigmaNu[2] = { 18.1 /* N2 */, 16.3 /* O2 */ };
68 // molar masses [g/mol]
69 const Scalar M[2] = { N2::molarMass()*1e3, O2::molarMass()*1e3 };
70 return fullerMethod(M, SigmaNu, temperature, pressure);
71 }
72
78 template <class Scalar>
79 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
80 {
81 DUNE_THROW(Dune::NotImplemented, "diffusion coefficient for liquid oxygen and nitrogen");
82 }
83};
84
85} // end namespace BinaryCoeff
86} // end namespace Dumux
87
88#endif
Various relations for molecular diffusion coefficients.
The IAPWS formulation of Henry coefficients in water.
Properties of pure molecular oxygen .
Properties of pure molecular nitrogen .
Scalar fullerMethod(const Scalar *M, const Scalar *SigmaNu, const Scalar temperature, const Scalar pressure)
Estimate binary diffusion coefficients in gases according to the method by Fuller.
Definition: fullermethod.hh:48
Definition: adapt.hh:29
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
Binary coefficients for nitrogen and oxygen.
Definition: n2_o2.hh:41
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:61
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:79
static Scalar henry(Scalar temperature)
Henry coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:48
Properties of pure molecular nitrogen .
Definition: n2.hh:47
Properties of pure molecular oxygen .
Definition: o2.hh:47