version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_BINARY_COEFF_N2_O2_HH
13#define DUMUX_BINARY_COEFF_N2_O2_HH
14
17
20
21namespace Dumux {
22namespace BinaryCoeff {
23
28class N2_O2
29{
30public:
35 template <class Scalar>
36 static Scalar henry(Scalar temperature)
37 {
38 DUNE_THROW(Dune::NotImplemented, "henry coefficient for oxygen in liquid nitrogen");
39 }
40
48 template <class Scalar>
49 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
50 {
53
54 // atomic diffusion volumes
55 const Scalar SigmaNu[2] = { 18.1 /* N2 */, 16.3 /* O2 */ };
56 // molar masses [g/mol]
57 const Scalar M[2] = { N2::molarMass()*1e3, O2::molarMass()*1e3 };
58 return fullerMethod(M, SigmaNu, temperature, pressure);
59 }
60
66 template <class Scalar>
67 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
68 {
69 DUNE_THROW(Dune::NotImplemented, "diffusion coefficient for liquid oxygen and nitrogen");
70 }
71};
72
73} // end namespace BinaryCoeff
74} // end namespace Dumux
75
76#endif
Binary coefficients for nitrogen and oxygen.
Definition: n2_o2.hh:29
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:49
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:67
static Scalar henry(Scalar temperature)
Henry coefficient for molecular oxygen in liquid nitrogen.
Definition: n2_o2.hh:36
Properties of pure molecular nitrogen .
Definition: n2.hh:35
Properties of pure molecular oxygen .
Definition: o2.hh:35
Various relations for molecular diffusion coefficients.
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:36
The IAPWS formulation of Henry coefficients in water.
Properties of pure molecular nitrogen .
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
Definition: adapt.hh:17
Properties of pure molecular oxygen .