opm-simulators
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
39namespace Opm {
40
41class EclipseState;
42class Schedule;
43
45template<class Scalar>
47{
48 using BrineCo2Pvt = ::Opm::BrineCo2Pvt<Scalar>;
49 using BrineH2Pvt = ::Opm::BrineH2Pvt<Scalar>;
50 using Co2GasPvt = ::Opm::Co2GasPvt<Scalar>;
51 using H2GasPvt = ::Opm::H2GasPvt<Scalar>;
52 using SolventPvt = ::Opm::SolventPvt<Scalar>;
53 using TabulatedFunction = Tabulated1DFunction<Scalar>;
54
55 template<bool enableSolvent>
56 void initFromState(const EclipseState& eclState, const Schedule& schedule);
57
58 BrineCo2Pvt brineCo2Pvt_{};
59 BrineH2Pvt brineH2Pvt_{};
60 Co2GasPvt co2GasPvt_{};
61 H2GasPvt h2GasPvt_{};
62 SolventPvt solventPvt_{};
63
64 std::vector<TabulatedFunction> ssfnKrg_{}; // the krg(Fs) column of the SSFN table
65 std::vector<TabulatedFunction> ssfnKrs_{}; // the krs(Fs) column of the SSFN table
66 std::vector<TabulatedFunction> sof2Krn_{}; // the krn(Sn) column of the SOF2 table
67 std::vector<TabulatedFunction> misc_{}; // the misc(Ss) column of the MISC table
68 std::vector<TabulatedFunction> pmisc_{}; // the pmisc(pg) column of the PMISC table
69 std::vector<TabulatedFunction> msfnKrsg_{}; // the krsg(Ssg) column of the MSFN table
70 std::vector<TabulatedFunction> msfnKro_{}; // the kro(Ssg) column of the MSFN table
71 std::vector<TabulatedFunction> sorwmis_{}; // the sorwmis(Sw) column of the SORWMIS table
72 std::vector<TabulatedFunction> sgcwmis_{}; // the sgcwmis(Sw) column of the SGCWMIS table
73
74 std::vector<Scalar> tlMixParamViscosity_{}; // Todd-Longstaff mixing parameter for viscosity
75 std::vector<Scalar> tlMixParamDensity_{}; // Todd-Longstaff mixing parameter for density
76 std::vector<TabulatedFunction> tlPMixTable_{}; // the tlpmixpa(Po) column of the TLPMIXPA table
77
78 bool isMiscible_ = false;
79 bool rsSolw_active_ = false;
80 bool co2sol_ = false;
81 bool h2sol_ = false;
82
88 void setNumSatRegions(unsigned numRegions);
89
95 void setMsfn(unsigned satRegionIdx,
96 const TabulatedFunction& msfnKrsg,
97 const TabulatedFunction& msfnKro);
98};
99
100} // namespace Opm
101
102#endif // OPM_BLACK_OIL_SOLVENT_PARAMS_HPP
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:45
Struct holding the parameters for the BlackOilSolventModule class.
Definition blackoilsolventparams.hpp:47
void setMsfn(unsigned satRegionIdx, const TabulatedFunction &msfnKrsg, const TabulatedFunction &msfnKro)
Specify miscible relative permeability multipliers of a single region.
Definition blackoilsolventparams.cpp:311
void setNumSatRegions(unsigned numRegions)
Specify the number of satuation regions.
Definition blackoilsolventparams.cpp:303