let shear vef return derivative.

This commit is contained in:
Liu Ming 2014-03-26 16:02:39 +08:00
parent 7a193dca1e
commit 31ddb2f098
2 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,13 @@ namespace Opm
return Opm::linearInterpolation(water_vel_vals_, shear_vrf_vals_, velocity);
}
double
PolymerProperties::shearVrfWithDer(const double velocity, double& der) const
{
der = Opm::linearInterpolationDerivative(water_vel_vals_, shear_vrf_vals_, velocity);
return Opm::linearInterpolation(water_vel_vals_, shear_vrf_vals_, velocity);
}
double PolymerProperties::viscMult(double c) const
{
return Opm::linearInterpolation(c_vals_visc_, visc_mult_vals_, c);

View File

@ -168,6 +168,8 @@ namespace Opm
double shearVrf(const double velocity) const;
double shearVrfWithDer(const double velocity, double& der) const;
double viscMult(double c) const;
double viscMultWithDer(double c, double* der) const;