mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Fixed and documented constructor taking ParameterGroup.
This commit is contained in:
parent
e239c1d209
commit
983b55049f
@ -31,8 +31,8 @@ namespace Opm
|
|||||||
: pref_(0.0),
|
: pref_(0.0),
|
||||||
rock_comp_(0.0)
|
rock_comp_(0.0)
|
||||||
{
|
{
|
||||||
pref_ = param.getDefault("rock_compressibility_pref", 100*unit::barsa);
|
pref_ = param.getDefault("rock_compressibility_pref", 100.0)*unit::barsa;
|
||||||
pref_ = param.getDefault("rock_compressibility", 0.0);
|
rock_comp_ = param.getDefault("rock_compressibility", 0.0)/unit::barsa;
|
||||||
}
|
}
|
||||||
|
|
||||||
RockCompressibility::RockCompressibility(const EclipseGridParser& deck)
|
RockCompressibility::RockCompressibility(const EclipseGridParser& deck)
|
||||||
|
@ -35,6 +35,9 @@ namespace Opm
|
|||||||
RockCompressibility(const EclipseGridParser& deck);
|
RockCompressibility(const EclipseGridParser& deck);
|
||||||
|
|
||||||
/// Construct from parameters.
|
/// Construct from parameters.
|
||||||
|
/// Accepts the following parameters (with defaults).
|
||||||
|
/// rock_compressibility_pref (100.0) [given in bar]
|
||||||
|
/// rock_compressibility (0.0) [given in bar^{-1}]
|
||||||
RockCompressibility(const parameter::ParameterGroup& param);
|
RockCompressibility(const parameter::ParameterGroup& param);
|
||||||
|
|
||||||
/// Porosity multiplier.
|
/// Porosity multiplier.
|
||||||
|
Loading…
Reference in New Issue
Block a user