mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added RockCompressibility::isActive() method.
This commit is contained in:
parent
f40d0ad8de
commit
8f6af3ba19
@ -57,6 +57,11 @@ namespace Opm
|
||||
}
|
||||
}
|
||||
|
||||
bool RockCompressibility::isActive() const
|
||||
{
|
||||
return p_.empty() && (rock_comp_ == 0.0);
|
||||
}
|
||||
|
||||
double RockCompressibility::poroMult(double pressure)
|
||||
{
|
||||
if (p_.empty()) {
|
||||
|
@ -32,6 +32,7 @@ namespace Opm
|
||||
{
|
||||
public:
|
||||
/// Construct from input deck.
|
||||
/// Looks for the keywords ROCK and ROCKTAB.
|
||||
RockCompressibility(const EclipseGridParser& deck);
|
||||
|
||||
/// Construct from parameters.
|
||||
@ -40,6 +41,9 @@ namespace Opm
|
||||
/// rock_compressibility (0.0) [given in bar^{-1}]
|
||||
RockCompressibility(const parameter::ParameterGroup& param);
|
||||
|
||||
/// Returns true if there are compressibility effects.
|
||||
bool isActive() const;
|
||||
|
||||
/// Porosity multiplier.
|
||||
double poroMult(double pressure);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user