mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
let shear vef return derivative.
This commit is contained in:
parent
7a193dca1e
commit
31ddb2f098
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user