mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
return the value by linear interpolation.
This commit is contained in:
@@ -65,10 +65,10 @@ namespace Opm
|
||||
return water_vel_vals_;
|
||||
}
|
||||
|
||||
const std::vector<double>&
|
||||
PolymerProperties::shearVrf() const
|
||||
double
|
||||
PolymerProperties::shearVrf(const double velocity) const
|
||||
{
|
||||
return shear_vrf_vals_;
|
||||
return Opm::linearInterpolation(water_vel_vals_, shear_vrf_vals_, velocity);
|
||||
}
|
||||
|
||||
double PolymerProperties::viscMult(double c) const
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace Opm
|
||||
|
||||
const std::vector<double>& shearWaterVelocity() const;
|
||||
|
||||
const std::vector<double>& shearVrf() const;
|
||||
double shearVrf(const double velocity) const;
|
||||
|
||||
double viscMult(double c) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user