mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding SHRATE to PolymerPropsAd
This commit is contained in:
parent
009addb142
commit
af3b78460b
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user