Merge pull request #2591 from goncalvesmachadoc/VAPWAT

Add enable WATVAP
This commit is contained in:
Bård Skaflestad
2021-08-04 15:50:13 +02:00
committed by GitHub
3 changed files with 17 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ namespace Opm {
bool useCPR() const; bool useCPR() const;
bool hasDISGAS() const; bool hasDISGAS() const;
bool hasVAPOIL() const; bool hasVAPOIL() const;
bool hasVAPWAT() const;
bool isThermal() const; bool isThermal() const;
bool isDiffusive() const; bool isDiffusive() const;
@@ -62,6 +63,7 @@ namespace Opm {
serializer(m_useCPR); serializer(m_useCPR);
serializer(m_DISGAS); serializer(m_DISGAS);
serializer(m_VAPOIL); serializer(m_VAPOIL);
serializer(m_VAPWAT);
serializer(m_isThermal); serializer(m_isThermal);
serializer(m_diffuse); serializer(m_diffuse);
} }
@@ -73,6 +75,7 @@ namespace Opm {
bool m_useCPR; bool m_useCPR;
bool m_DISGAS; bool m_DISGAS;
bool m_VAPOIL; bool m_VAPOIL;
bool m_VAPWAT;
bool m_isThermal; bool m_isThermal;
bool m_diffuse; bool m_diffuse;
}; };

View File

@@ -35,6 +35,7 @@ void python::common::export_EclipseConfig(py::module& module)
.def("hasThresholdPressure", &SimulationConfig::useThresholdPressure ) .def("hasThresholdPressure", &SimulationConfig::useThresholdPressure )
.def("useCPR", &SimulationConfig::useCPR ) .def("useCPR", &SimulationConfig::useCPR )
.def("hasDISGAS", &SimulationConfig::hasDISGAS ) .def("hasDISGAS", &SimulationConfig::hasDISGAS )
.def("hasVAPOIL", &SimulationConfig::hasVAPOIL ); .def("hasVAPOIL", &SimulationConfig::hasVAPOIL )
.def("hasVAPWAT", &SimulationConfig::hasVAPWAT );
} }

View File

@@ -51,6 +51,7 @@ namespace Opm {
m_useCPR(false), m_useCPR(false),
m_DISGAS(false), m_DISGAS(false),
m_VAPOIL(false), m_VAPOIL(false),
m_VAPWAT(false),
m_isThermal(false), m_isThermal(false),
m_diffuse(false) m_diffuse(false)
{ {
@@ -65,6 +66,7 @@ namespace Opm {
m_useCPR(false), m_useCPR(false),
m_DISGAS(false), m_DISGAS(false),
m_VAPOIL(false), m_VAPOIL(false),
m_VAPWAT(false),
m_isThermal(false), m_isThermal(false),
m_diffuse(false) m_diffuse(false)
{ {
@@ -83,6 +85,9 @@ namespace Opm {
if (runspec.hasKeyword<ParserKeywords::VAPOIL>()) { if (runspec.hasKeyword<ParserKeywords::VAPOIL>()) {
m_VAPOIL = true; m_VAPOIL = true;
} }
if (runspec.hasKeyword<ParserKeywords::VAPWAT>()) {
m_VAPWAT = true;
}
if (runspec.hasKeyword<ParserKeywords::DIFFUSE>()) { if (runspec.hasKeyword<ParserKeywords::DIFFUSE>()) {
m_diffuse = true; m_diffuse = true;
} }
@@ -100,6 +105,7 @@ namespace Opm {
result.m_useCPR = false; result.m_useCPR = false;
result.m_DISGAS = true; result.m_DISGAS = true;
result.m_VAPOIL = false; result.m_VAPOIL = false;
result.m_VAPWAT = false;
result.m_isThermal = true; result.m_isThermal = true;
result.m_diffuse = true; result.m_diffuse = true;
@@ -134,6 +140,10 @@ namespace Opm {
return m_VAPOIL; return m_VAPOIL;
} }
bool SimulationConfig::hasVAPWAT() const {
return m_VAPWAT;
}
bool SimulationConfig::isThermal() const { bool SimulationConfig::isThermal() const {
return this->m_isThermal; return this->m_isThermal;
} }
@@ -149,6 +159,7 @@ namespace Opm {
this->useCPR() == data.useCPR() && this->useCPR() == data.useCPR() &&
this->hasDISGAS() == data.hasDISGAS() && this->hasDISGAS() == data.hasDISGAS() &&
this->hasVAPOIL() == data.hasVAPOIL() && this->hasVAPOIL() == data.hasVAPOIL() &&
this->hasVAPWAT() == data.hasVAPWAT() &&
this->isThermal() == data.isThermal() && this->isThermal() == data.isThermal() &&
this->isDiffusive() == data.isDiffusive(); this->isDiffusive() == data.isDiffusive();
} }
@@ -160,6 +171,7 @@ namespace Opm {
full_config.useCPR() == rst_config.useCPR() && full_config.useCPR() == rst_config.useCPR() &&
full_config.hasDISGAS() == rst_config.hasDISGAS() && full_config.hasDISGAS() == rst_config.hasDISGAS() &&
full_config.hasVAPOIL() == rst_config.hasVAPOIL() && full_config.hasVAPOIL() == rst_config.hasVAPOIL() &&
full_config.hasVAPWAT() == rst_config.hasVAPWAT() &&
full_config.isThermal() == rst_config.isThermal() && full_config.isThermal() == rst_config.isThermal() &&
full_config.isDiffusive() == rst_config.isDiffusive(); full_config.isDiffusive() == rst_config.isDiffusive();
} }