mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4373 from akva2/wellbrineproperties_hpp_include
add missing WellBrineProperties.hpp includes
This commit is contained in:
commit
dcfa1ef24e
@ -48,6 +48,7 @@
|
|||||||
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WList.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WList.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WListManager.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WListManager.hpp>
|
||||||
|
#include <opm/input/eclipse/Schedule/Well/WellBrineProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <opm/simulators/wells/WellInterfaceGeneric.hpp>
|
#include <opm/simulators/wells/WellInterfaceGeneric.hpp>
|
||||||
|
|
||||||
|
#include <opm/input/eclipse/Schedule/Well/WellBrineProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
||||||
@ -453,4 +454,17 @@ double WellInterfaceGeneric::wfoam_() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double WellInterfaceGeneric::wsalt_() const
|
||||||
|
{
|
||||||
|
auto injectorType = this->well_ecl_.injectorType();
|
||||||
|
|
||||||
|
if (injectorType == InjectorType::WATER) {
|
||||||
|
WellBrineProperties fprop = this->well_ecl_.getBrineProperties();
|
||||||
|
return fprop.m_saltConcentration;
|
||||||
|
} else {
|
||||||
|
// Not a water injection well => no salt (?).
|
||||||
|
return 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
@ -199,6 +199,7 @@ protected:
|
|||||||
bool getAllowCrossFlow() const;
|
bool getAllowCrossFlow() const;
|
||||||
|
|
||||||
double wfoam_() const;
|
double wfoam_() const;
|
||||||
|
double wsalt_() const;
|
||||||
|
|
||||||
// definition of the struct OperabilityStatus
|
// definition of the struct OperabilityStatus
|
||||||
struct OperabilityStatus {
|
struct OperabilityStatus {
|
||||||
|
@ -135,15 +135,7 @@ namespace Opm
|
|||||||
wsalt() const
|
wsalt() const
|
||||||
{
|
{
|
||||||
if constexpr (has_brine) {
|
if constexpr (has_brine) {
|
||||||
auto injectorType = this->well_ecl_.injectorType();
|
return this->wsalt_();
|
||||||
|
|
||||||
if (injectorType == InjectorType::WATER) {
|
|
||||||
WellBrineProperties fprop = this->well_ecl_.getBrineProperties();
|
|
||||||
return fprop.m_saltConcentration;
|
|
||||||
} else {
|
|
||||||
// Not a water injection well => no salt (?).
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
@ -96,6 +96,7 @@
|
|||||||
#include <opm/input/eclipse/Schedule/Well/NameOrder.hpp>
|
#include <opm/input/eclipse/Schedule/Well/NameOrder.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/PAvg.hpp>
|
#include <opm/input/eclipse/Schedule/Well/PAvg.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/Well.hpp>
|
#include <opm/input/eclipse/Schedule/Well/Well.hpp>
|
||||||
|
#include <opm/input/eclipse/Schedule/Well/WellBrineProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellConnections.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellFoamProperties.hpp>
|
||||||
#include <opm/input/eclipse/Schedule/Well/WellPolymerProperties.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellPolymerProperties.hpp>
|
||||||
|
Loading…
Reference in New Issue
Block a user