Loading...
Searching...
No Matches
H2O_N2.hpp
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef OPM_BINARY_COEFF_H2O_N2_HPP
#define OPM_BINARY_COEFF_H2O_N2_HPP
#include "HenryIapws.hpp"
#include "FullerMethod.hpp"
#include <opm/material/components/N2.hpp>
#include <opm/material/components/H2O.hpp>
namespace Opm {
namespace BinaryCoeff {
class H2O_N2
{
public:
template <class Evaluation>
static Evaluation henry(const Evaluation& temperature)
{
const double E = 2388.8777;
const double F = -14.9593;
const double G = 42.0179;
const double H = -29.4396;
return henryIAPWS(E, F, G, H, temperature);
}
template <class Evaluation>
static Evaluation gasDiffCoeff(const Evaluation& temperature, const Evaluation& pressure)
{
typedef H2O<double> H2O;
typedef N2<double> N2;
// atomic diffusion volumes
const double SigmaNu[2] = { 13.1 /* H2O */, 18.5 /* N2 */ };
// molar masses [g/mol]
const double M[2] = { H2O::molarMass()*1e3, N2::molarMass()*1e3 };
return fullerMethod(M, SigmaNu, temperature, pressure);
}
template <class Evaluation>
static Evaluation liquidDiffCoeff(const Evaluation& temperature, const Evaluation& /*pressure*/)
{
const double Texp = 273.15 + 25; // [K]
const double Dexp = 2.01e-9; // [m^2/s]
return Dexp * temperature/Texp;
}
};
} // namespace BinaryCoeff
} // namespace Opm
#endif
FullerMethod.hpp
Estimate binary diffusion coefficents in gases according to the method by Fuller.
Opm::BinaryCoeff::fullerMethod
Evaluation fullerMethod(const Scalar *M, const Scalar *SigmaNu, const Evaluation &temperature, const Evaluation &pressure)
Estimate binary diffusion coefficents in gases according to the method by Fuller.
Definition FullerMethod.hpp:56
H2O.hpp
Material properties of pure water .
HenryIapws.hpp
The IAPWS formulation of Henry coefficients in water.
N2.hpp
Properties of pure molecular nitrogen .
Opm::BinaryCoeff::H2O_N2
Binary coefficients for water and nitrogen.
Definition H2O_N2.hpp:44
Opm::BinaryCoeff::H2O_N2::liquidDiffCoeff
static Evaluation liquidDiffCoeff(const Evaluation &temperature, const Evaluation &)
Diffusion coefficent for molecular nitrogen in liquid water.
Definition H2O_N2.hpp:102
Opm::BinaryCoeff::H2O_N2::gasDiffCoeff
static Evaluation gasDiffCoeff(const Evaluation &temperature, const Evaluation &pressure)
Binary diffusion coefficent for molecular water and nitrogen.
Definition H2O_N2.hpp:70
Opm::BinaryCoeff::H2O_N2::henry
static Evaluation henry(const Evaluation &temperature)
Henry coefficent for molecular nitrogen in liquid water.
Definition H2O_N2.hpp:52
Opm::H2O
Material properties of pure water .
Definition H2O.hpp:65
Opm::H2O::molarMass
static const Scalar molarMass()
The molar mass in of water.
Definition H2O.hpp:85
Opm::N2
Properties of pure molecular nitrogen .
Definition N2.hpp:50
Opm::N2::molarMass
static Scalar molarMass()
The molar mass in of molecular nitrogen.
Definition N2.hpp:63
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Opm::henryIAPWS
Evaluation henryIAPWS(Scalar E, Scalar F, Scalar G, Scalar H, const Evaluation &temperature)
The Henry constants in liquid water using the IAPWS 2004 formulation.
Definition HenryIapws.hpp:45