mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
WellInterface: move code using WellPolymerProperties to compile unit
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
#include <opm/input/eclipse/Schedule/Well/WellBrineProperties.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/WellTestState.hpp>
|
#include <opm/input/eclipse/Schedule/Well/WellTestState.hpp>
|
||||||
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
|
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
|
||||||
#include <opm/simulators/wells/PerforationData.hpp>
|
#include <opm/simulators/wells/PerforationData.hpp>
|
||||||
@@ -467,4 +468,18 @@ double WellInterfaceGeneric::wsalt_() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double WellInterfaceGeneric::wpolymer_() const
|
||||||
|
{
|
||||||
|
auto injectorType = this->well_ecl_.injectorType();
|
||||||
|
|
||||||
|
if (injectorType == InjectorType::WATER) {
|
||||||
|
WellPolymerProperties polymer = this->well_ecl_.getPolymerProperties();
|
||||||
|
const double polymer_injection_concentration = polymer.m_polymerConcentration;
|
||||||
|
return polymer_injection_concentration;
|
||||||
|
} else {
|
||||||
|
// Not a water injection well => no polymer.
|
||||||
|
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 wpolymer_() const;
|
||||||
double wsalt_() const;
|
double wsalt_() const;
|
||||||
|
|
||||||
// definition of the struct OperabilityStatus
|
// definition of the struct OperabilityStatus
|
||||||
|
|||||||
@@ -97,16 +97,7 @@ namespace Opm
|
|||||||
wpolymer() const
|
wpolymer() const
|
||||||
{
|
{
|
||||||
if constexpr (has_polymer) {
|
if constexpr (has_polymer) {
|
||||||
auto injectorType = this->well_ecl_.injectorType();
|
return this->wpolymer_();
|
||||||
|
|
||||||
if (injectorType == InjectorType::WATER) {
|
|
||||||
WellPolymerProperties polymer = this->well_ecl_.getPolymerProperties();
|
|
||||||
const double polymer_injection_concentration = polymer.m_polymerConcentration;
|
|
||||||
return polymer_injection_concentration;
|
|
||||||
} else {
|
|
||||||
// Not a water injection well => no polymer.
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user