GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/material/binarycoefficients/h2o_heavyoil.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 0 4 0.0%
Functions: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
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 //
7 /*!
8 * \file
9 * \ingroup Binarycoefficients
10 * \brief Binary coefficients for water and heavy oil.
11 */
12 #ifndef DUMUX_BINARY_COEFF_H2O_HEAVYOIL_HH
13 #define DUMUX_BINARY_COEFF_H2O_HEAVYOIL_HH
14
15 #include <dumux/material/components/h2o.hh>
16 #include <dumux/material/components/heavyoil.hh>
17
18 namespace Dumux {
19 namespace BinaryCoeff {
20
21 /*!
22 * \ingroup Binarycoefficients
23 * \brief Binary coefficients for water and heavy oil as in SAGD processes
24 */
25 class H2O_HeavyOil
26 {
27 public:
28 /*!
29 * \brief Henry coefficient \f$[N/m^2]\f$ for heavy oil in liquid water.
30 * \param temperature the temperature \f$\mathrm{[K]}\f$
31 *
32 * \todo values copied from TCE, please improve it
33 */
34 template <class Scalar>
35 static Scalar henryOilInWater(Scalar temperature)
36 {
37 // values copied from TCE, TODO: improve this!!
38 Scalar dumuxH = 1.5e-1 / 101.325; // unit [(mol/m^3)/Pa]
39 dumuxH *= 18.02e-6; //multiplied by molar volume of reference phase = water
40 return 1.0/dumuxH; // [Pa]
41 }
42
43 /*!
44 * \brief Henry coefficient \f$[N/m^2]\f$ for water in liquid heavy oil.
45 * \param temperature the temperature \f$\mathrm{[K]}\f$
46 *
47 * \todo arbitrary value, please improve it
48 */
49 template <class Scalar>
50 static Scalar henryWaterInOil(Scalar temperature)
51 {
52 // arbitrary, TODO: improve it!!
53 return 1.0e8; // [Pa]
54 }
55
56
57 /*!
58 * \brief Binary diffusion coefficient [m^2/s] for molecular water and heavy oil.
59 * \param temperature the temperature \f$\mathrm{[K]}\f$
60 * \param pressure the phase pressure \f$\mathrm{[Pa]}\f$
61 *
62 * \todo value is just an order of magnitude, please improve it
63 */
64 template <class Scalar>
65 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
66 {
67 return 1e-6; // [m^2/s] TODO: This is just an order of magnitude. Please improve it!
68 }
69
70 /*!
71 * \brief Diffusion coefficient [m^2/s] for heavy oil in liquid water.
72 * \param temperature the temperature \f$\mathrm{[K]}\f$
73 * \param pressure the phase pressure \f$\mathrm{[Pa]}\f$
74 *
75 * \todo value is just an order of magnitude, please improve it
76 */
77 template <class Scalar>
78 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
79 {
80 return 1.e-9; // This is just an order of magnitude. Please improve it!
81 }
82 };
83
84 } // end namespace BinaryCoeff
85 } // end namespace Dumux
86
87 #endif
88