Add dissolved_gas to Rates
This commit is contained in:
parent
198037d7fc
commit
0695ac5894
@ -45,11 +45,12 @@ namespace Opm {
|
|||||||
public:
|
public:
|
||||||
Rates() = default;
|
Rates() = default;
|
||||||
enum class opt : uint32_t {
|
enum class opt : uint32_t {
|
||||||
wat = (1 << 0),
|
wat = (1 << 0),
|
||||||
oil = (1 << 1),
|
oil = (1 << 1),
|
||||||
gas = (1 << 2),
|
gas = (1 << 2),
|
||||||
polymer = (1 << 3),
|
polymer = (1 << 3),
|
||||||
solvent = (1 << 4),
|
solvent = (1 << 4),
|
||||||
|
dissolved_gas = (1 << 5),
|
||||||
};
|
};
|
||||||
|
|
||||||
using enum_size = std::underlying_type< opt >::type;
|
using enum_size = std::underlying_type< opt >::type;
|
||||||
@ -82,6 +83,7 @@ namespace Opm {
|
|||||||
double gas = 0.0;
|
double gas = 0.0;
|
||||||
double polymer = 0.0;
|
double polymer = 0.0;
|
||||||
double solvent = 0.0;
|
double solvent = 0.0;
|
||||||
|
double dissolved_gas = 0.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Completion {
|
struct Completion {
|
||||||
@ -187,6 +189,7 @@ namespace Opm {
|
|||||||
case opt::gas: return this->gas;
|
case opt::gas: return this->gas;
|
||||||
case opt::polymer: return this->polymer;
|
case opt::polymer: return this->polymer;
|
||||||
case opt::solvent: return this->solvent;
|
case opt::solvent: return this->solvent;
|
||||||
|
case opt::dissolved_gas: return this->dissolved_gas;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw std::invalid_argument(
|
throw std::invalid_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user