2012-02-29 04:27:59 -06:00
|
|
|
/*
|
|
|
|
Copyright 2012 SINTEF ICT, Applied Mathematics.
|
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2012-03-02 08:14:14 -06:00
|
|
|
#ifndef OPM_POLYMERPROPERTIES_HEADER_INCLUDED
|
|
|
|
#define OPM_POLYMERPROPERTIES_HEADER_INCLUDED
|
|
|
|
|
2014-04-26 04:09:43 -05:00
|
|
|
#include <opm/parser/eclipse/Deck/Deck.hpp>
|
2014-09-17 06:28:39 -05:00
|
|
|
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
2016-01-20 08:11:30 -06:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/PlyadsTable.hpp>
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/PlymaxTable.hpp>
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/PlyrockTable.hpp>
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/PlyshlogTable.hpp>
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/PlyviscTable.hpp>
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
|
2016-01-25 12:04:19 -06:00
|
|
|
#include <opm/parser/eclipse/Units/Dimension.hpp>
|
2016-01-20 08:11:30 -06:00
|
|
|
#include <opm/parser/eclipse/Units/UnitSystem.hpp>
|
|
|
|
|
2012-03-02 08:14:14 -06:00
|
|
|
|
2012-03-06 14:59:02 -06:00
|
|
|
#include <cmath>
|
2012-02-29 04:27:59 -06:00
|
|
|
#include <vector>
|
2015-10-12 08:24:59 -05:00
|
|
|
#include <opm/common/ErrorMacros.hpp>
|
2012-02-29 04:27:59 -06:00
|
|
|
|
|
|
|
|
|
|
|
namespace Opm
|
|
|
|
{
|
2012-03-02 08:14:14 -06:00
|
|
|
|
2012-02-29 04:27:59 -06:00
|
|
|
class PolymerProperties
|
|
|
|
{
|
|
|
|
public:
|
2012-03-02 08:14:29 -06:00
|
|
|
PolymerProperties()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-03-27 08:33:48 -05:00
|
|
|
enum AdsorptionBehaviour { Desorption = 1, NoDesorption = 2 };
|
|
|
|
|
2012-09-05 04:45:54 -05:00
|
|
|
/// Construct from parameters
|
|
|
|
/// \param[in] c_max Maximum polymer concentration used in computation of effective viscosity
|
|
|
|
/// \param[in] mix_param Mixing parameter
|
|
|
|
/// \param[in] rock_density Rock density
|
|
|
|
/// \param[in] dead_pore_vol Dead pore volume
|
|
|
|
/// \param[in] res_factor Residual resistance factor
|
|
|
|
/// \param[in] c_max_ads Maximum polymer adsorption value used in computation of the resistance factor
|
|
|
|
/// \param[in] c_vals_visc Array of concentration for effective vicosity multiplier
|
|
|
|
/// \param[in] visc_mult_vals Array of effective vicosity multiplier
|
|
|
|
/// \param[in] c_vals_ads Array of concentration for adsorption values
|
|
|
|
/// \param[in] ads_vals Array of adsorption values
|
2014-03-18 00:25:52 -05:00
|
|
|
/// \param[in] water_vel_vals_ Array of water phase velocity for shear
|
|
|
|
/// \param[in] shear_vrf_vals_ Array of viscosity reduction factor
|
2012-03-02 08:14:29 -06:00
|
|
|
PolymerProperties(double c_max,
|
|
|
|
double mix_param,
|
|
|
|
double rock_density,
|
|
|
|
double dead_pore_vol,
|
2012-03-23 11:40:03 -05:00
|
|
|
double res_factor,
|
|
|
|
double c_max_ads,
|
2012-03-27 08:33:48 -05:00
|
|
|
AdsorptionBehaviour ads_index,
|
2012-03-02 08:14:29 -06:00
|
|
|
const std::vector<double>& c_vals_visc,
|
|
|
|
const std::vector<double>& visc_mult_vals,
|
|
|
|
const std::vector<double>& c_vals_ads,
|
2014-03-18 00:25:52 -05:00
|
|
|
const std::vector<double>& ads_vals,
|
|
|
|
const std::vector<double>& water_vel_vals,
|
|
|
|
const std::vector<double>& shear_vrf_vals
|
2012-03-26 09:37:39 -05:00
|
|
|
)
|
2012-03-02 08:14:29 -06:00
|
|
|
: c_max_(c_max),
|
|
|
|
mix_param_(mix_param),
|
|
|
|
rock_density_(rock_density),
|
|
|
|
dead_pore_vol_(dead_pore_vol),
|
2012-03-23 11:40:03 -05:00
|
|
|
res_factor_(res_factor),
|
|
|
|
c_max_ads_(c_max_ads),
|
2012-03-26 09:37:39 -05:00
|
|
|
ads_index_(ads_index),
|
2012-03-02 08:14:29 -06:00
|
|
|
c_vals_visc_(c_vals_visc),
|
|
|
|
visc_mult_vals_(visc_mult_vals),
|
|
|
|
c_vals_ads_(c_vals_ads),
|
2014-03-18 00:25:52 -05:00
|
|
|
ads_vals_(ads_vals),
|
|
|
|
water_vel_vals_(water_vel_vals),
|
|
|
|
shear_vrf_vals_(shear_vrf_vals)
|
2012-03-02 08:14:29 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-10-14 05:29:31 -05:00
|
|
|
PolymerProperties(Opm::DeckConstPtr deck, Opm::EclipseStateConstPtr eclipseState)
|
2012-03-02 08:14:29 -06:00
|
|
|
{
|
2014-10-14 05:29:31 -05:00
|
|
|
readFromDeck(deck, eclipseState);
|
2012-03-02 08:14:29 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void set(double c_max,
|
|
|
|
double mix_param,
|
|
|
|
double rock_density,
|
|
|
|
double dead_pore_vol,
|
2012-03-23 11:40:03 -05:00
|
|
|
double res_factor,
|
|
|
|
double c_max_ads,
|
2012-03-27 08:33:48 -05:00
|
|
|
AdsorptionBehaviour ads_index,
|
2012-03-02 08:14:29 -06:00
|
|
|
const std::vector<double>& c_vals_visc,
|
|
|
|
const std::vector<double>& visc_mult_vals,
|
|
|
|
const std::vector<double>& c_vals_ads,
|
2014-03-18 00:25:52 -05:00
|
|
|
const std::vector<double>& ads_vals,
|
|
|
|
const std::vector<double>& water_vel_vals,
|
|
|
|
const std::vector<double>& shear_vrf_vals
|
2012-03-26 09:37:39 -05:00
|
|
|
)
|
2012-03-02 08:14:29 -06:00
|
|
|
{
|
|
|
|
c_max_ = c_max;
|
|
|
|
mix_param_ = mix_param;
|
|
|
|
rock_density_ = rock_density;
|
|
|
|
dead_pore_vol_ = dead_pore_vol;
|
2012-03-23 11:40:03 -05:00
|
|
|
res_factor_ = res_factor;
|
|
|
|
c_max_ads_ = c_max_ads;
|
2012-03-02 08:14:29 -06:00
|
|
|
c_vals_visc_ = c_vals_visc;
|
|
|
|
visc_mult_vals_ = visc_mult_vals;
|
|
|
|
c_vals_ads_ = c_vals_ads;
|
|
|
|
ads_vals_ = ads_vals;
|
2012-03-26 09:37:39 -05:00
|
|
|
ads_index_ = ads_index;
|
2014-03-18 00:25:52 -05:00
|
|
|
water_vel_vals_ = water_vel_vals;
|
|
|
|
shear_vrf_vals_ = shear_vrf_vals;
|
2012-03-02 08:14:29 -06:00
|
|
|
}
|
|
|
|
|
2014-10-14 05:29:31 -05:00
|
|
|
void readFromDeck(Opm::DeckConstPtr deck, Opm::EclipseStateConstPtr eclipseState)
|
2012-03-02 08:14:29 -06:00
|
|
|
{
|
|
|
|
// We assume NTMISC=1
|
2016-04-11 02:15:06 -05:00
|
|
|
const auto& tables = eclipseState->getTableManager();
|
|
|
|
const auto& plymaxTable = tables.getPlymaxTables().getTable<PlymaxTable>(0);
|
2016-02-09 09:05:00 -06:00
|
|
|
const auto& plmixparRecord = deck->getKeyword("PLMIXPAR").getRecord(0);
|
2014-04-26 04:09:43 -05:00
|
|
|
|
|
|
|
// We also assume that each table has exactly one row...
|
|
|
|
assert(plymaxTable.numRows() == 1);
|
|
|
|
|
|
|
|
c_max_ = plymaxTable.getPolymerConcentrationColumn()[0];
|
2016-02-09 09:05:00 -06:00
|
|
|
mix_param_ = plmixparRecord.getItem("TODD_LONGSTAFF").getSIDouble(0);
|
2012-03-02 08:14:29 -06:00
|
|
|
|
|
|
|
// We assume NTSFUN=1
|
2016-04-11 02:15:06 -05:00
|
|
|
const auto& plyrockTable = tables.getPlyrockTables().getTable<PlyrockTable>(0);
|
2014-04-26 04:09:43 -05:00
|
|
|
|
|
|
|
// We also assume that each table has exactly one row...
|
|
|
|
assert(plyrockTable.numRows() == 1);
|
|
|
|
|
|
|
|
dead_pore_vol_ = plyrockTable.getDeadPoreVolumeColumn()[0];
|
|
|
|
res_factor_ = plyrockTable.getResidualResistanceFactorColumn()[0];
|
|
|
|
rock_density_ = plyrockTable.getRockDensityFactorColumn()[0];
|
|
|
|
ads_index_ = static_cast<AdsorptionBehaviour>(plyrockTable.getAdsorbtionIndexColumn()[0]);
|
|
|
|
c_max_ads_ = plyrockTable.getMaxAdsorbtionColumn()[0];
|
2012-03-02 08:14:29 -06:00
|
|
|
|
|
|
|
// We assume NTPVT=1
|
2016-04-11 02:15:06 -05:00
|
|
|
const auto& plyviscTable = tables.getPlyviscTables().getTable<PlyviscTable>(0);
|
2014-04-26 04:09:43 -05:00
|
|
|
|
|
|
|
|
2016-01-06 07:53:53 -06:00
|
|
|
c_vals_visc_ = plyviscTable.getPolymerConcentrationColumn().vectorCopy( );
|
|
|
|
visc_mult_vals_ = plyviscTable.getViscosityMultiplierColumn().vectorCopy( );
|
2012-03-02 08:14:29 -06:00
|
|
|
|
|
|
|
// We assume NTSFUN=1
|
2016-04-11 02:15:06 -05:00
|
|
|
const auto& plyadsTable = tables.getPlyadsTables().getTable<PlyadsTable>(0);
|
2014-04-26 04:09:43 -05:00
|
|
|
|
2016-01-06 07:53:53 -06:00
|
|
|
c_vals_ads_ = plyadsTable.getPolymerConcentrationColumn().vectorCopy( );
|
|
|
|
ads_vals_ = plyadsTable.getAdsorbedPolymerColumn().vectorCopy( );
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2015-06-05 02:28:20 -05:00
|
|
|
has_plyshlog_ = deck->hasKeyword("PLYSHLOG");
|
|
|
|
has_shrate_ = deck->hasKeyword("SHRATE");
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2015-06-23 07:02:57 -05:00
|
|
|
if (has_plyshlog_) {
|
2015-10-24 06:23:25 -05:00
|
|
|
// Assuming NTPVT == 1 always
|
2016-04-11 02:15:06 -05:00
|
|
|
const auto& plyshlogTable = tables.getPlyshlogTables().getTable<PlyshlogTable>(0);
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2016-01-06 07:53:53 -06:00
|
|
|
water_vel_vals_ = plyshlogTable.getWaterVelocityColumn().vectorCopy( );
|
|
|
|
shear_vrf_vals_ = plyshlogTable.getShearMultiplierColumn().vectorCopy( );
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2015-06-05 02:13:25 -05:00
|
|
|
// do the unit version here for the water_vel_vals_
|
2016-02-09 09:05:00 -06:00
|
|
|
Opm::UnitSystem unitSystem = deck->getActiveUnitSystem();
|
2015-06-05 02:28:20 -05:00
|
|
|
double siFactor;
|
|
|
|
if (has_shrate_) {
|
|
|
|
siFactor = unitSystem.parse("1/Time")->getSIScaling();
|
2016-02-09 09:05:00 -06:00
|
|
|
const auto& shrateKeyword = deck->getKeyword("SHRATE");
|
|
|
|
std::vector<double> shrate_readin = shrateKeyword.getSIDoubleData();
|
2015-10-19 00:53:27 -05:00
|
|
|
if (shrate_readin.size() == 1) {
|
|
|
|
shrate_ = shrate_readin[0];
|
|
|
|
} else if (shrate_readin.size() == 0) {
|
2015-06-05 02:28:20 -05:00
|
|
|
shrate_ = 4.8; // default value
|
|
|
|
} else {
|
|
|
|
OPM_THROW(std::logic_error, "Only NTPVT == 1 is allowed for SHRATE keyword now !\n");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
siFactor = unitSystem.parse("Length/Time")->getSIScaling();
|
|
|
|
}
|
2015-06-05 02:13:25 -05:00
|
|
|
|
|
|
|
for (size_t i = 0; i < water_vel_vals_.size(); ++i) {
|
|
|
|
water_vel_vals_[i] *= siFactor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-06-02 07:17:41 -05:00
|
|
|
plyshlog_ref_conc_ = plyshlogTable.getRefPolymerConcentration();
|
|
|
|
|
2015-06-09 04:25:36 -05:00
|
|
|
if (plyshlogTable.hasRefSalinity()) {
|
2015-06-02 07:17:41 -05:00
|
|
|
has_plyshlog_ref_salinity_ = true;
|
|
|
|
plyshlog_ref_salinity_ = plyshlogTable.getRefSalinity();
|
|
|
|
} else {
|
|
|
|
has_plyshlog_ref_salinity_ = false;
|
|
|
|
}
|
|
|
|
|
2015-06-09 04:25:36 -05:00
|
|
|
if (plyshlogTable.hasRefTemperature()) {
|
2015-06-02 07:17:41 -05:00
|
|
|
has_plyshlog_ref_temp_ = true;
|
|
|
|
plyshlog_ref_temp_ = plyshlogTable.getRefTemperature();
|
|
|
|
} else {
|
|
|
|
has_plyshlog_ref_temp_ = false;
|
|
|
|
}
|
|
|
|
}
|
2012-03-02 08:14:29 -06:00
|
|
|
}
|
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double cMax() const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double mixParam() const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double rockDensity() const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double deadPoreVol() const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double resFactor() const;
|
2012-03-23 11:40:03 -05:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double cMaxAds() const;
|
2012-03-23 11:40:03 -05:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
int adsIndex() const;
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2015-06-05 02:28:20 -05:00
|
|
|
/// indicate whehter PLYSHLOG is specified
|
|
|
|
bool hasPlyshlog() const;
|
|
|
|
|
2015-06-02 07:17:41 -05:00
|
|
|
/// the water velocity or water shear rate in PLYSHLOG table
|
2014-03-18 20:23:20 -05:00
|
|
|
const std::vector<double>& shearWaterVelocity() const;
|
2014-03-18 00:25:52 -05:00
|
|
|
|
2015-06-02 07:17:41 -05:00
|
|
|
/// the viscosity reduction factor PLYSHLOG table
|
|
|
|
const std::vector<double>& shearViscosityReductionFactor() const;
|
|
|
|
|
|
|
|
/// the reference polymer concentration in PLYSHLOG
|
|
|
|
double plyshlogRefConc() const;
|
|
|
|
|
|
|
|
/// indicate wheter reference salinity is specified in PLYSHLOG
|
|
|
|
bool hasPlyshlogRefSalinity() const;
|
|
|
|
|
|
|
|
/// indicate whether reference temperature is specified in PLYSHLOG
|
|
|
|
bool hasPlyshlogRefTemp() const;
|
|
|
|
|
|
|
|
/// the reference salinity in PLYSHLOG
|
|
|
|
double plyshlogRefSalinity() const;
|
|
|
|
|
|
|
|
/// the reference temperature in PLYSHLOG
|
|
|
|
double plyshlogRefTemp() const;
|
|
|
|
|
2015-06-05 02:28:20 -05:00
|
|
|
/// indicate whether SHRATE keyword is specified
|
|
|
|
bool hasShrate() const;
|
|
|
|
|
|
|
|
/// the value of SHRATE
|
|
|
|
double shrate() const;
|
|
|
|
|
2014-03-21 01:34:46 -05:00
|
|
|
double shearVrf(const double velocity) const;
|
2012-03-26 09:37:39 -05:00
|
|
|
|
2014-03-26 03:02:39 -05:00
|
|
|
double shearVrfWithDer(const double velocity, double& der) const;
|
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double viscMult(double c) const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
double viscMultWithDer(double c, double* der) const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
void simpleAdsorption(double c, double& c_ads) const;
|
2012-03-02 08:14:29 -06:00
|
|
|
|
2012-04-23 04:49:05 -05:00
|
|
|
void simpleAdsorptionWithDer(double c, double& c_ads,
|
2012-04-19 10:21:08 -05:00
|
|
|
double& dc_ads_dc) const;
|
2012-02-29 04:27:59 -06:00
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
void adsorption(double c, double cmax, double& c_ads) const;
|
2012-03-26 09:37:39 -05:00
|
|
|
|
2012-04-23 04:49:05 -05:00
|
|
|
void adsorptionWithDer(double c, double cmax,
|
2012-04-19 10:21:08 -05:00
|
|
|
double& c_ads, double& dc_ads_dc) const;
|
|
|
|
|
2012-04-26 02:25:46 -05:00
|
|
|
void effectiveVisc(const double c, const double* visc,
|
|
|
|
double& mu_w_eff) const;
|
2012-04-19 10:21:08 -05:00
|
|
|
|
2012-04-26 02:25:46 -05:00
|
|
|
void effectiveViscWithDer(const double c, const double* visc
|
|
|
|
, double& mu_w_eff
|
|
|
|
, double dmu_w_eff_dc) const;
|
2012-03-26 09:37:39 -05:00
|
|
|
|
2012-04-26 02:25:46 -05:00
|
|
|
void effectiveInvVisc(const double c, const double* visc,
|
|
|
|
double& inv_mu_w_eff) const;
|
2012-04-19 10:21:08 -05:00
|
|
|
|
2012-04-26 02:25:46 -05:00
|
|
|
void effectiveInvViscWithDer(const double c,
|
|
|
|
const double* visc,
|
|
|
|
double& inv_mu_w_eff,
|
|
|
|
double& dinv_mu_w_eff_dc) const;
|
2016-04-14 05:29:57 -05:00
|
|
|
void effectiveInvPolyVisc(const double c,
|
|
|
|
const double* visc,
|
|
|
|
double& inv_mu_p_eff) const;
|
|
|
|
|
|
|
|
void effectiveInvPolyViscWithDer(const double c,
|
|
|
|
const double* visc,
|
|
|
|
double& inv_mu_p_eff,
|
|
|
|
double& d_inv_mu_p_eff_dc) const;
|
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
void effectiveRelperm(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* relperm,
|
|
|
|
double& eff_relperm_wat) const;
|
|
|
|
|
|
|
|
void effectiveRelpermWithDer (const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelperm_ds,
|
|
|
|
double& eff_relperm_wat,
|
|
|
|
double& deff_relperm_wat_ds,
|
|
|
|
double& deff_relperm_wat_dc) const;
|
2012-03-06 09:06:00 -06:00
|
|
|
|
2012-03-20 05:58:09 -05:00
|
|
|
void effectiveMobilities(const double c,
|
2012-04-19 10:21:08 -05:00
|
|
|
const double cmax,
|
2012-03-20 05:58:09 -05:00
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
2012-04-25 01:39:39 -05:00
|
|
|
double* mob) const;
|
2012-04-19 10:21:08 -05:00
|
|
|
|
|
|
|
void effectiveMobilitiesWithDer(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelpermds,
|
2012-04-25 01:39:39 -05:00
|
|
|
double* mob,
|
|
|
|
double* dmob_ds,
|
2012-04-23 04:49:05 -05:00
|
|
|
double& dmobwatdc) const;
|
2012-04-19 10:21:08 -05:00
|
|
|
|
|
|
|
void effectiveMobilitiesBoth(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelperm_ds,
|
2012-04-25 01:39:39 -05:00
|
|
|
double* mob,
|
|
|
|
double* dmob_ds,
|
2012-04-19 10:21:08 -05:00
|
|
|
double& dmobwat_dc,
|
|
|
|
bool if_with_der) const;
|
|
|
|
|
2012-04-23 04:49:05 -05:00
|
|
|
void effectiveTotalMobility(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
|
|
|
double& totmob) const;
|
|
|
|
|
|
|
|
void effectiveTotalMobilityWithDer(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelpermds,
|
|
|
|
double& totmob,
|
2012-04-25 01:39:39 -05:00
|
|
|
double* dtotmob_dsdc) const;
|
2012-04-23 04:49:05 -05:00
|
|
|
|
|
|
|
void effectiveTotalMobilityBoth(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* visc,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelperm_ds,
|
|
|
|
double& totmob,
|
2012-04-25 01:39:39 -05:00
|
|
|
double* dtotmob_dsdc,
|
2012-04-23 04:49:05 -05:00
|
|
|
bool if_with_der) const;
|
|
|
|
|
2012-04-23 03:27:27 -05:00
|
|
|
void computeMc(const double& c, double& mc) const;
|
2012-04-19 10:21:08 -05:00
|
|
|
|
|
|
|
void computeMcWithDer(const double& c, double& mc,
|
|
|
|
double& dmc_dc) const;
|
|
|
|
|
2012-04-23 04:49:05 -05:00
|
|
|
void computeMcBoth(const double& c, double& mc,
|
2012-04-19 10:21:08 -05:00
|
|
|
double& dmc_dc, bool if_with_der) const;
|
2012-03-06 09:06:00 -06:00
|
|
|
|
2015-06-10 06:36:37 -05:00
|
|
|
/// Computing the shear multiplier based on the water velocity/shear rate with PLYSHLOG keyword
|
|
|
|
bool computeShearMultLog(std::vector<double>& water_vel, std::vector<double>& visc_mult, std::vector<double>& shear_mult) const;
|
|
|
|
|
2012-02-29 06:25:51 -06:00
|
|
|
private:
|
2012-03-02 08:14:29 -06:00
|
|
|
double c_max_;
|
|
|
|
double mix_param_;
|
|
|
|
double rock_density_;
|
|
|
|
double dead_pore_vol_;
|
2012-03-23 11:40:03 -05:00
|
|
|
double res_factor_;
|
|
|
|
double c_max_ads_;
|
2015-06-02 07:17:41 -05:00
|
|
|
|
2015-06-05 02:28:20 -05:00
|
|
|
bool has_plyshlog_;
|
|
|
|
bool has_shrate_;
|
|
|
|
// Assuming NTPVT == 1 always due to the limitation of the parser
|
|
|
|
// only one SHRATE value
|
|
|
|
// TODO: to be extended later when parser is improved.
|
|
|
|
double shrate_;
|
2012-03-27 08:33:48 -05:00
|
|
|
AdsorptionBehaviour ads_index_;
|
2012-03-02 08:14:29 -06:00
|
|
|
std::vector<double> c_vals_visc_;
|
|
|
|
std::vector<double> visc_mult_vals_;
|
|
|
|
std::vector<double> c_vals_ads_;
|
|
|
|
std::vector<double> ads_vals_;
|
2014-03-18 00:25:52 -05:00
|
|
|
std::vector<double> water_vel_vals_;
|
|
|
|
std::vector<double> shear_vrf_vals_;
|
2015-06-02 07:17:41 -05:00
|
|
|
|
|
|
|
double plyshlog_ref_conc_;
|
|
|
|
double plyshlog_ref_salinity_;
|
|
|
|
double plyshlog_ref_temp_;
|
|
|
|
bool has_plyshlog_ref_salinity_;
|
|
|
|
bool has_plyshlog_ref_temp_;
|
|
|
|
|
|
|
|
|
2012-04-23 04:49:05 -05:00
|
|
|
void simpleAdsorptionBoth(double c, double& c_ads,
|
2012-04-19 10:21:08 -05:00
|
|
|
double& dc_ads_dc, bool if_with_der) const;
|
2012-04-23 04:49:05 -05:00
|
|
|
void adsorptionBoth(double c, double cmax,
|
|
|
|
double& c_ads, double& dc_ads_dc,
|
2012-04-19 10:21:08 -05:00
|
|
|
bool if_with_der) const;
|
2012-04-26 02:25:46 -05:00
|
|
|
void effectiveInvViscBoth(const double c, const double* visc,
|
|
|
|
double& inv_mu_w_eff,
|
|
|
|
double& dinv_mu_w_eff_dc, bool if_with_der) const;
|
2016-04-14 05:29:57 -05:00
|
|
|
|
|
|
|
void effectiveInvPolyViscBoth(const double c,
|
|
|
|
const double* visc,
|
|
|
|
double& inv_mu_p_eff,
|
|
|
|
double& dinv_mu_p_eff_dc,
|
|
|
|
const bool if_with_der) const;
|
|
|
|
|
2012-04-19 10:21:08 -05:00
|
|
|
void effectiveRelpermBoth(const double c,
|
|
|
|
const double cmax,
|
|
|
|
const double* relperm,
|
|
|
|
const double* drelperm_ds,
|
|
|
|
double& eff_relperm_wat,
|
|
|
|
double& deff_relperm_wat_ds,
|
|
|
|
double& deff_relperm_wat_dc,
|
|
|
|
bool if_with_der) const;
|
2015-06-10 06:36:37 -05:00
|
|
|
|
2012-02-29 04:27:59 -06:00
|
|
|
};
|
2012-02-29 06:25:51 -06:00
|
|
|
|
2012-02-29 04:27:59 -06:00
|
|
|
} // namespace Opm
|
|
|
|
|
|
|
|
#endif // OPM_POLYMERPROPERTIES_HEADER_INCLUDED
|