blackoilpolymerparams.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_POLYMER_PARAMS_HH
29#define EWOMS_BLACK_OIL_POLYMER_PARAMS_HH
30
31#include <opm/material/common/Tabulated1DFunction.hpp>
32#include <opm/material/common/IntervalTabulated2DFunction.hpp>
33
34#include <map>
35#include <vector>
36
37namespace Opm {
38
40template<class Scalar>
42 using TabulatedFunction = Tabulated1DFunction<Scalar>;
43 using TabulatedTwoDFunction = IntervalTabulated2DFunction<Scalar>;
44
46
52 void setNumSatRegions(unsigned numRegions)
53 {
54 plyrockDeadPoreVolume_.resize(numRegions);
55 plyrockResidualResistanceFactor_.resize(numRegions);
56 plyrockRockDensityFactor_.resize(numRegions);
57 plyrockAdsorbtionIndex_.resize(numRegions);
58 plyrockMaxAdsorbtion_.resize(numRegions);
59 plyadsAdsorbedPolymer_.resize(numRegions);
60 }
61
67 void setNumMixRegions(unsigned numRegions, bool enablePolymerMolarWeight)
68 {
69 plymaxMaxConcentration_.resize(numRegions);
70 plymixparToddLongstaff_.resize(numRegions);
71
72 if (enablePolymerMolarWeight) {
73 plyvmhCoefficients_.resize(numRegions);
74 }
75 }
76
82 void setPlyrock(unsigned satRegionIdx,
83 const Scalar& plyrockDeadPoreVolume,
84 const Scalar& plyrockResidualResistanceFactor,
85 const Scalar& plyrockRockDensityFactor,
86 const Scalar& plyrockAdsorbtionIndex,
87 const Scalar& plyrockMaxAdsorbtion)
88 {
89 plyrockDeadPoreVolume_[satRegionIdx] = plyrockDeadPoreVolume;
90 plyrockResidualResistanceFactor_[satRegionIdx] = plyrockResidualResistanceFactor;
91 plyrockRockDensityFactor_[satRegionIdx] = plyrockRockDensityFactor;
92 plyrockAdsorbtionIndex_[satRegionIdx] = plyrockAdsorbtionIndex;
93 plyrockMaxAdsorbtion_[satRegionIdx] = plyrockMaxAdsorbtion;
94 }
95
96 // a struct containing the constants to calculate polymer viscosity
97 // based on Mark-Houwink equation and Huggins equation, the constants are provided
98 // by the keyword PLYVMH
100 Scalar k_mh;
101 Scalar a_mh;
102 Scalar gamma;
103 Scalar kappa;
104 };
105
109 };
110
111 std::vector<Scalar> plyrockDeadPoreVolume_;
113 std::vector<Scalar> plyrockRockDensityFactor_;
114 std::vector<Scalar> plyrockAdsorbtionIndex_;
115 std::vector<Scalar> plyrockMaxAdsorbtion_;
116 std::vector<TabulatedFunction> plyadsAdsorbedPolymer_;
117 std::vector<TabulatedFunction> plyviscViscosityMultiplierTable_;
118 std::vector<Scalar> plymaxMaxConcentration_;
119 std::vector<Scalar> plymixparToddLongstaff_;
120 std::vector<std::vector<Scalar>> plyshlogShearEffectRefMultiplier_;
121 std::vector<std::vector<Scalar>> plyshlogShearEffectRefLogVelocity_;
122 std::vector<Scalar> shrate_;
125
126 std::vector<PlyvmhCoefficients> plyvmhCoefficients_;
127 std::map<int, TabulatedTwoDFunction> plymwinjTables_;
128 std::map<int, TabulatedTwoDFunction> skprwatTables_;
129
130 std::map<int, SkprpolyTable> skprpolyTables_;
131};
132
133} // namespace Opm
134
135#endif
Definition: blackoilboundaryratevector.hh:37
Definition: blackoilpolymerparams.hh:99
Scalar k_mh
Definition: blackoilpolymerparams.hh:100
Scalar gamma
Definition: blackoilpolymerparams.hh:102
Scalar a_mh
Definition: blackoilpolymerparams.hh:101
Scalar kappa
Definition: blackoilpolymerparams.hh:103
Definition: blackoilpolymerparams.hh:106
double refConcentration
Definition: blackoilpolymerparams.hh:107
TabulatedTwoDFunction table_func
Definition: blackoilpolymerparams.hh:108
Struct holding the parameters for the BlackOilPolymerModule class.
Definition: blackoilpolymerparams.hh:41
std::vector< std::vector< Scalar > > plyshlogShearEffectRefMultiplier_
Definition: blackoilpolymerparams.hh:120
std::vector< Scalar > plymixparToddLongstaff_
Definition: blackoilpolymerparams.hh:119
void setPlyrock(unsigned satRegionIdx, const Scalar &plyrockDeadPoreVolume, const Scalar &plyrockResidualResistanceFactor, const Scalar &plyrockRockDensityFactor, const Scalar &plyrockAdsorbtionIndex, const Scalar &plyrockMaxAdsorbtion)
Specify the polymer rock properties a single region.
Definition: blackoilpolymerparams.hh:82
std::vector< Scalar > plyrockDeadPoreVolume_
Definition: blackoilpolymerparams.hh:111
std::vector< Scalar > plyrockResidualResistanceFactor_
Definition: blackoilpolymerparams.hh:112
void setNumMixRegions(unsigned numRegions, bool enablePolymerMolarWeight)
Specify the number of mix regions.
Definition: blackoilpolymerparams.hh:67
std::vector< Scalar > plyrockMaxAdsorbtion_
Definition: blackoilpolymerparams.hh:115
std::vector< Scalar > plyrockAdsorbtionIndex_
Definition: blackoilpolymerparams.hh:114
std::vector< Scalar > plymaxMaxConcentration_
Definition: blackoilpolymerparams.hh:118
AdsorptionBehaviour
Definition: blackoilpolymerparams.hh:45
@ Desorption
Definition: blackoilpolymerparams.hh:45
@ NoDesorption
Definition: blackoilpolymerparams.hh:45
std::vector< std::vector< Scalar > > plyshlogShearEffectRefLogVelocity_
Definition: blackoilpolymerparams.hh:121
std::vector< Scalar > plyrockRockDensityFactor_
Definition: blackoilpolymerparams.hh:113
IntervalTabulated2DFunction< Scalar > TabulatedTwoDFunction
Definition: blackoilpolymerparams.hh:43
std::map< int, TabulatedTwoDFunction > plymwinjTables_
Definition: blackoilpolymerparams.hh:127
Tabulated1DFunction< Scalar > TabulatedFunction
Definition: blackoilpolymerparams.hh:42
std::vector< TabulatedFunction > plyadsAdsorbedPolymer_
Definition: blackoilpolymerparams.hh:116
std::vector< Scalar > shrate_
Definition: blackoilpolymerparams.hh:122
std::map< int, TabulatedTwoDFunction > skprwatTables_
Definition: blackoilpolymerparams.hh:128
bool hasPlyshlog_
Definition: blackoilpolymerparams.hh:124
bool hasShrate_
Definition: blackoilpolymerparams.hh:123
std::vector< TabulatedFunction > plyviscViscosityMultiplierTable_
Definition: blackoilpolymerparams.hh:117
void setNumSatRegions(unsigned numRegions)
Specify the number of satuation regions.
Definition: blackoilpolymerparams.hh:52
std::vector< PlyvmhCoefficients > plyvmhCoefficients_
Definition: blackoilpolymerparams.hh:126
std::map< int, SkprpolyTable > skprpolyTables_
Definition: blackoilpolymerparams.hh:130