opm-simulators
Toggle main menu visibility
Loading...
Searching...
No Matches
blackoilsolventparams.hpp
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
This file is part of the Open Porous Media project (OPM).
5
6
OPM 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 2 of the License, or
9
(at your option) any later version.
10
11
OPM 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 OPM. If not, see <http://www.gnu.org/licenses/>.
18
19
Consult the COPYING file in the top-level source directory of this
20
module for the precise wording of the license and the list of
21
copyright holders.
22
*/
28
#ifndef OPM_BLACK_OIL_SOLVENT_PARAMS_HPP
29
#define OPM_BLACK_OIL_SOLVENT_PARAMS_HPP
30
31
#include <opm/material/fluidsystems/blackoilpvt/SolventPvt.hpp>
32
#include <opm/material/fluidsystems/blackoilpvt/Co2GasPvt.hpp>
33
#include <opm/material/fluidsystems/blackoilpvt/H2GasPvt.hpp>
34
#include <opm/material/fluidsystems/blackoilpvt/BrineCo2Pvt.hpp>
35
#include <opm/material/fluidsystems/blackoilpvt/BrineH2Pvt.hpp>
36
37
#include <opm/material/common/Tabulated1DFunction.hpp>
38
39
namespace
Opm
{
40
41
#if HAVE_ECL_INPUT
42
class
EclipseState;
43
class
Schedule;
44
#endif
45
47
template
<
class
Scalar>
48
struct
BlackOilSolventParams
49
{
50
using
BrineCo2Pvt = ::Opm::BrineCo2Pvt<Scalar>;
51
using
BrineH2Pvt = ::Opm::BrineH2Pvt<Scalar>;
52
using
Co2GasPvt = ::Opm::Co2GasPvt<Scalar>;
53
using
H2GasPvt = ::Opm::H2GasPvt<Scalar>;
54
using
SolventPvt = ::Opm::SolventPvt<Scalar>;
55
using
TabulatedFunction = Tabulated1DFunction<Scalar>;
56
57
#if HAVE_ECL_INPUT
58
template
<
bool
enableSolvent>
59
void
initFromState(
const
EclipseState& eclState,
const
Schedule& schedule);
60
#endif
61
62
BrineCo2Pvt brineCo2Pvt_{};
63
BrineH2Pvt brineH2Pvt_{};
64
Co2GasPvt co2GasPvt_{};
65
H2GasPvt h2GasPvt_{};
66
SolventPvt solventPvt_{};
67
68
std::vector<TabulatedFunction> ssfnKrg_{};
// the krg(Fs) column of the SSFN table
69
std::vector<TabulatedFunction> ssfnKrs_{};
// the krs(Fs) column of the SSFN table
70
std::vector<TabulatedFunction> sof2Krn_{};
// the krn(Sn) column of the SOF2 table
71
std::vector<TabulatedFunction> misc_{};
// the misc(Ss) column of the MISC table
72
std::vector<TabulatedFunction> pmisc_{};
// the pmisc(pg) column of the PMISC table
73
std::vector<TabulatedFunction> msfnKrsg_{};
// the krsg(Ssg) column of the MSFN table
74
std::vector<TabulatedFunction> msfnKro_{};
// the kro(Ssg) column of the MSFN table
75
std::vector<TabulatedFunction> sorwmis_{};
// the sorwmis(Sw) column of the SORWMIS table
76
std::vector<TabulatedFunction> sgcwmis_{};
// the sgcwmis(Sw) column of the SGCWMIS table
77
78
std::vector<Scalar> tlMixParamViscosity_{};
// Todd-Longstaff mixing parameter for viscosity
79
std::vector<Scalar> tlMixParamDensity_{};
// Todd-Longstaff mixing parameter for density
80
std::vector<TabulatedFunction> tlPMixTable_{};
// the tlpmixpa(Po) column of the TLPMIXPA table
81
82
bool
isMiscible_ =
false
;
83
bool
rsSolw_active_ =
false
;
84
bool
co2sol_ =
false
;
85
bool
h2sol_ =
false
;
86
92
void
setNumSatRegions
(
unsigned
numRegions);
93
99
void
setMsfn
(
unsigned
satRegionIdx,
100
const
TabulatedFunction& msfnKrsg,
101
const
TabulatedFunction& msfnKro);
102
};
103
104
}
// namespace Opm
105
106
#endif
// OPM_BLACK_OIL_SOLVENT_PARAMS_HPP
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition
blackoilbioeffectsmodules.hh:43
Opm::BlackOilSolventParams
Struct holding the parameters for the BlackOilSolventModule class.
Definition
blackoilsolventparams.hpp:49
Opm::BlackOilSolventParams::setMsfn
void setMsfn(unsigned satRegionIdx, const TabulatedFunction &msfnKrsg, const TabulatedFunction &msfnKro)
Specify miscible relative permeability multipliers of a single region.
Definition
blackoilsolventparams.cpp:315
Opm::BlackOilSolventParams::setNumSatRegions
void setNumSatRegions(unsigned numRegions)
Specify the number of satuation regions.
Definition
blackoilsolventparams.cpp:307
opm
models
blackoil
blackoilsolventparams.hpp
Generated by
1.17.0