mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
renaming visc parameters to mu_w for better readability
This commit is contained in:
@@ -150,14 +150,14 @@ namespace Opm {
|
||||
|
||||
|
||||
V PolymerPropsAd::effectiveInvWaterVisc(const V& c,
|
||||
const V& visc) const
|
||||
const V& mu_w) const
|
||||
{
|
||||
assert(c.size() == visc.size());
|
||||
assert(c.size() == mu_w.size());
|
||||
const int nc = c.size();
|
||||
V inv_mu_w_eff(nc);
|
||||
for (int i = 0; i < nc; ++i) {
|
||||
double im = 0;
|
||||
polymer_props_.effectiveInvVisc(c(i), visc(i), im);
|
||||
polymer_props_.effectiveInvVisc(c(i), mu_w(i), im);
|
||||
inv_mu_w_eff(i) = im;
|
||||
}
|
||||
|
||||
@@ -169,15 +169,15 @@ namespace Opm {
|
||||
|
||||
|
||||
ADB PolymerPropsAd::effectiveInvWaterVisc(const ADB& c,
|
||||
const V& visc) const
|
||||
const V& mu_w) const
|
||||
{
|
||||
assert(c.size() == visc.size());
|
||||
assert(c.size() == mu_w.size());
|
||||
const int nc = c.size();
|
||||
V inv_mu_w_eff(nc);
|
||||
V dinv_mu_w_eff(nc);
|
||||
for (int i = 0; i < nc; ++i) {
|
||||
double im = 0, dim = 0;
|
||||
polymer_props_.effectiveInvViscWithDer(c.value()(i), visc(i), im, dim);
|
||||
polymer_props_.effectiveInvViscWithDer(c.value()(i), mu_w(i), im, dim);
|
||||
inv_mu_w_eff(i) = im;
|
||||
dinv_mu_w_eff(i) = dim;
|
||||
}
|
||||
@@ -194,17 +194,16 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
ADB PolymerPropsAd::effectiveInvPolymerVisc(const ADB& c, const V& visc) const
|
||||
ADB PolymerPropsAd::effectiveInvPolymerVisc(const ADB& c, const V& mu_w) const
|
||||
{
|
||||
assert(c.size() == visc.size());
|
||||
assert(c.size() == mu_w.size());
|
||||
const int nc = c.size();
|
||||
V inv_mu_p_eff(nc);
|
||||
V dinv_mu_p_eff(nc);
|
||||
for (int i = 0; i < nc; ++i) {
|
||||
double im = 0;
|
||||
double dim = 0;
|
||||
// TODO: the usage of visc can be likely wrong, while more investigation will be requried.
|
||||
polymer_props_.effectiveInvPolyViscWithDer(c.value()(i), visc(i), im, dim);
|
||||
polymer_props_.effectiveInvPolyViscWithDer(c.value()(i), mu_w(i), im, dim);
|
||||
inv_mu_p_eff(i) = im;
|
||||
dinv_mu_p_eff(i) = dim;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user