blackoilsolventparams.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 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 EWOMS_BLACK_OIL_SOLVENT_PARAMS_HH
29#define EWOMS_BLACK_OIL_SOLVENT_PARAMS_HH
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
42template<class Scalar>
44 using TabulatedFunction = Tabulated1DFunction<Scalar>;
45
46 using SolventPvt = ::Opm::SolventPvt<Scalar>;
48
49 using Co2GasPvt = ::Opm::Co2GasPvt<Scalar>;
51
52 using H2GasPvt = ::Opm::H2GasPvt<Scalar>;
54
55 using BrineCo2Pvt = ::Opm::BrineCo2Pvt<Scalar>;
57
58 using BrineH2Pvt = ::Opm::BrineH2Pvt<Scalar>;
60
61 std::vector<TabulatedFunction> ssfnKrg_; // the krg(Fs) column of the SSFN table
62 std::vector<TabulatedFunction> ssfnKrs_; // the krs(Fs) column of the SSFN table
63 std::vector<TabulatedFunction> sof2Krn_; // the krn(Sn) column of the SOF2 table
64 std::vector<TabulatedFunction> misc_; // the misc(Ss) column of the MISC table
65 std::vector<TabulatedFunction> pmisc_; // the pmisc(pg) column of the PMISC table
66 std::vector<TabulatedFunction> msfnKrsg_; // the krsg(Ssg) column of the MSFN table
67 std::vector<TabulatedFunction> msfnKro_; // the kro(Ssg) column of the MSFN table
68 std::vector<TabulatedFunction> sorwmis_; // the sorwmis(Sw) column of the SORWMIS table
69 std::vector<TabulatedFunction> sgcwmis_; // the sgcwmis(Sw) column of the SGCWMIS table
70
71 std::vector<Scalar> tlMixParamViscosity_; // Todd-Longstaff mixing parameter for viscosity
72 std::vector<Scalar> tlMixParamDensity_; // Todd-Longstaff mixing parameter for density
73 std::vector<TabulatedFunction> tlPMixTable_; // the tlpmixpa(Po) column of the TLPMIXPA table
74
76 bool rsSolw_active_ = false;
77 bool co2sol_;
78 bool h2sol_;
79
85 void setNumSatRegions(unsigned numRegions)
86 {
87 ssfnKrg_.resize(numRegions);
88 ssfnKrs_.resize(numRegions);
89 }
90
96 void setMsfn(unsigned satRegionIdx,
97 const TabulatedFunction& msfnKrsg,
98 const TabulatedFunction& msfnKro)
99 {
100 msfnKrsg_[satRegionIdx] = msfnKrsg;
101 msfnKro_[satRegionIdx] = msfnKro;
102 }
103};
104
105} // namespace Opm
106
107#endif
Definition: blackoilboundaryratevector.hh:37
Struct holding the parameters for the BlackOilSolventModule class.
Definition: blackoilsolventparams.hh:43
SolventPvt solventPvt_
Definition: blackoilsolventparams.hh:47
::Opm::SolventPvt< Scalar > SolventPvt
Definition: blackoilsolventparams.hh:46
H2GasPvt h2GasPvt_
Definition: blackoilsolventparams.hh:53
::Opm::H2GasPvt< Scalar > H2GasPvt
Definition: blackoilsolventparams.hh:52
std::vector< Scalar > tlMixParamDensity_
Definition: blackoilsolventparams.hh:72
bool h2sol_
Definition: blackoilsolventparams.hh:78
std::vector< TabulatedFunction > msfnKro_
Definition: blackoilsolventparams.hh:67
BrineCo2Pvt brineCo2Pvt_
Definition: blackoilsolventparams.hh:56
std::vector< TabulatedFunction > sof2Krn_
Definition: blackoilsolventparams.hh:63
std::vector< TabulatedFunction > sgcwmis_
Definition: blackoilsolventparams.hh:69
::Opm::BrineCo2Pvt< Scalar > BrineCo2Pvt
Definition: blackoilsolventparams.hh:55
BrineH2Pvt brineH2Pvt_
Definition: blackoilsolventparams.hh:59
void setMsfn(unsigned satRegionIdx, const TabulatedFunction &msfnKrsg, const TabulatedFunction &msfnKro)
Specify miscible relative permeability multipliers of a single region.
Definition: blackoilsolventparams.hh:96
::Opm::Co2GasPvt< Scalar > Co2GasPvt
Definition: blackoilsolventparams.hh:49
void setNumSatRegions(unsigned numRegions)
Specify the number of satuation regions.
Definition: blackoilsolventparams.hh:85
std::vector< TabulatedFunction > msfnKrsg_
Definition: blackoilsolventparams.hh:66
bool rsSolw_active_
Definition: blackoilsolventparams.hh:76
Co2GasPvt co2GasPvt_
Definition: blackoilsolventparams.hh:50
bool co2sol_
Definition: blackoilsolventparams.hh:77
std::vector< TabulatedFunction > sorwmis_
Definition: blackoilsolventparams.hh:68
std::vector< TabulatedFunction > ssfnKrg_
Definition: blackoilsolventparams.hh:61
std::vector< TabulatedFunction > ssfnKrs_
Definition: blackoilsolventparams.hh:62
Tabulated1DFunction< Scalar > TabulatedFunction
Definition: blackoilsolventparams.hh:44
std::vector< TabulatedFunction > tlPMixTable_
Definition: blackoilsolventparams.hh:73
std::vector< TabulatedFunction > misc_
Definition: blackoilsolventparams.hh:64
std::vector< Scalar > tlMixParamViscosity_
Definition: blackoilsolventparams.hh:71
::Opm::BrineH2Pvt< Scalar > BrineH2Pvt
Definition: blackoilsolventparams.hh:58
std::vector< TabulatedFunction > pmisc_
Definition: blackoilsolventparams.hh:65
bool isMiscible_
Definition: blackoilsolventparams.hh:75