adding SHRATE to PolymerPropsAd

This commit is contained in:
Kai Bao 2015-06-05 10:41:54 +02:00
parent 009addb142
commit af3b78460b
2 changed files with 13 additions and 0 deletions

View File

@ -102,6 +102,16 @@ namespace Opm {
return polymer_props_.plyshlogRefTemp();
}
double PolymerPropsAd::shrate() const
{
if (polymer_props_.hasShrate()) {
return polymer_props_.shrate();
} else {
OPM_THROW(std::logic_error, "the SHRATE keyword is not specified while requested \n");
}
}
double
PolymerPropsAd::viscMult(double c) const
{

View File

@ -62,6 +62,9 @@ namespace Opm {
/// \ return The reference temperature in PLYSHLOG keyword
double plyshlogRefTemp() const;
/// \ return the value of SHRATE
double shrate() const;
double viscMult(double c) const; // multipler interpolated from PLYVISC table
typedef AutoDiffBlock<double> ADB;