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;
|
||||
}
|
||||
|
||||
@@ -81,22 +81,22 @@ namespace Opm {
|
||||
~PolymerPropsAd();
|
||||
|
||||
/// \param[in] c Array of n polymer concentraion values.
|
||||
/// \param[in] visc Array of n water viscosity values.
|
||||
/// \param[in] mu_w Array of n water viscosity values.
|
||||
/// \return Array of inverse effective water viscosity.
|
||||
V
|
||||
effectiveInvWaterVisc(const V& c, const V& visc) const;
|
||||
effectiveInvWaterVisc(const V& c, const V& mu_w) const;
|
||||
|
||||
/// \param[in] c ADB of polymer concentraion.
|
||||
/// \param[in] visc Array of water viscosity value.
|
||||
/// \param[in] mu_w Array of water viscosity value.
|
||||
/// \return ADB of inverse effective water viscosity.
|
||||
ADB
|
||||
effectiveInvWaterVisc(const ADB& c,const V& visc) const;
|
||||
effectiveInvWaterVisc(const ADB& c,const V& mu_w) const;
|
||||
|
||||
/// \param[in] c ADB of polymer concentraion values.
|
||||
/// \param[in] visc Array of water viscosity values
|
||||
/// \param[in] mu_w Array of water viscosity values
|
||||
/// \return ADB of inverse effective polymer viscosity.
|
||||
ADB
|
||||
effectiveInvPolymerVisc(const ADB& c, const V& visc) const;
|
||||
effectiveInvPolymerVisc(const ADB& c, const V& mu_w) const;
|
||||
|
||||
/// \param[in] c Array of n polymer concentraion values.
|
||||
/// \return Array of n mc values, here mc means m(c) * c.
|
||||
|
||||
Reference in New Issue
Block a user