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
39namespace Opm {
40
41#if HAVE_ECL_INPUT
42class EclipseState;
43class Schedule;
44#endif
45
47template<class Scalar>
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
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
Definition: blackoilboundaryratevector.hh:37
Struct holding the parameters for the BlackOilSolventModule class.
Definition: blackoilsolventparams.hpp:49
SolventPvt solventPvt_
Definition: blackoilsolventparams.hpp:66
::Opm::SolventPvt< Scalar > SolventPvt
Definition: blackoilsolventparams.hpp:54
H2GasPvt h2GasPvt_
Definition: blackoilsolventparams.hpp:65
::Opm::H2GasPvt< Scalar > H2GasPvt
Definition: blackoilsolventparams.hpp:53
std::vector< Scalar > tlMixParamDensity_
Definition: blackoilsolventparams.hpp:79
bool h2sol_
Definition: blackoilsolventparams.hpp:85
std::vector< TabulatedFunction > msfnKro_
Definition: blackoilsolventparams.hpp:74
BrineCo2Pvt brineCo2Pvt_
Definition: blackoilsolventparams.hpp:62
std::vector< TabulatedFunction > sof2Krn_
Definition: blackoilsolventparams.hpp:70
std::vector< TabulatedFunction > sgcwmis_
Definition: blackoilsolventparams.hpp:76
::Opm::BrineCo2Pvt< Scalar > BrineCo2Pvt
Definition: blackoilsolventparams.hpp:50
BrineH2Pvt brineH2Pvt_
Definition: blackoilsolventparams.hpp:63
void setMsfn(unsigned satRegionIdx, const TabulatedFunction &msfnKrsg, const TabulatedFunction &msfnKro)
Specify miscible relative permeability multipliers of a single region.
::Opm::Co2GasPvt< Scalar > Co2GasPvt
Definition: blackoilsolventparams.hpp:52
void setNumSatRegions(unsigned numRegions)
Specify the number of satuation regions.
std::vector< TabulatedFunction > msfnKrsg_
Definition: blackoilsolventparams.hpp:73
bool rsSolw_active_
Definition: blackoilsolventparams.hpp:83
Co2GasPvt co2GasPvt_
Definition: blackoilsolventparams.hpp:64
bool co2sol_
Definition: blackoilsolventparams.hpp:84
std::vector< TabulatedFunction > sorwmis_
Definition: blackoilsolventparams.hpp:75
std::vector< TabulatedFunction > ssfnKrg_
Definition: blackoilsolventparams.hpp:68
std::vector< TabulatedFunction > ssfnKrs_
Definition: blackoilsolventparams.hpp:69
Tabulated1DFunction< Scalar > TabulatedFunction
Definition: blackoilsolventparams.hpp:55
std::vector< TabulatedFunction > tlPMixTable_
Definition: blackoilsolventparams.hpp:80
std::vector< TabulatedFunction > misc_
Definition: blackoilsolventparams.hpp:71
std::vector< Scalar > tlMixParamViscosity_
Definition: blackoilsolventparams.hpp:78
::Opm::BrineH2Pvt< Scalar > BrineH2Pvt
Definition: blackoilsolventparams.hpp:51
std::vector< TabulatedFunction > pmisc_
Definition: blackoilsolventparams.hpp:72
bool isMiscible_
Definition: blackoilsolventparams.hpp:82