mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-14 09:52:01 -05:00
return the value by linear interpolation.
This commit is contained in:
1 parent
9204434a4d
commit
7a193dca1e
2 files changed
+4
-4
No files matched your search
@@ -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