2013-04-10 12:56:14 +02:00
|
|
|
#include "config.h"
|
2012-06-05 15:42:49 +02:00
|
|
|
#include <opm/core/wells/InjectionSpecification.hpp>
|
|
|
|
|
|
2012-03-28 15:49:39 +02:00
|
|
|
namespace Opm
|
|
|
|
|
{
|
2012-03-27 16:57:01 +02:00
|
|
|
|
2012-03-28 15:49:39 +02:00
|
|
|
InjectionSpecification::InjectionSpecification()
|
2012-04-16 19:27:34 +02:00
|
|
|
: injector_type_(WATER),
|
|
|
|
|
control_mode_(NONE),
|
2012-05-02 09:25:52 +02:00
|
|
|
surface_flow_max_rate_(-1e100),
|
|
|
|
|
reservoir_flow_max_rate_(-1e100),
|
|
|
|
|
BHP_limit_(-1e100),
|
2012-05-09 15:54:25 +02:00
|
|
|
reinjection_fraction_target_(1),
|
|
|
|
|
voidage_replacment_fraction_(1),
|
2012-05-02 09:25:52 +02:00
|
|
|
guide_rate_(1.0),
|
|
|
|
|
guide_rate_type_(NONE_GRT)
|
2012-03-28 15:49:39 +02:00
|
|
|
{
|
2012-03-27 16:57:01 +02:00
|
|
|
|
2012-03-28 15:49:39 +02:00
|
|
|
}
|
2012-03-27 16:57:01 +02:00
|
|
|
|
2016-05-23 10:48:51 +08:00
|
|
|
std::string
|
|
|
|
|
InjectionSpecification::toString(const ControlMode& mode)
|
2016-05-20 16:13:37 +08:00
|
|
|
{
|
|
|
|
|
switch(mode) {
|
2016-05-23 10:48:51 +08:00
|
|
|
case ControlMode::NONE: return "NONE";
|
|
|
|
|
case ControlMode::RATE: return "RATE";
|
|
|
|
|
case ControlMode::RESV: return "RESV";
|
|
|
|
|
case ControlMode::BHP : return "BHP" ;
|
|
|
|
|
case ControlMode::THP : return "THP" ;
|
|
|
|
|
case ControlMode::REIN: return "REIN";
|
|
|
|
|
case ControlMode::VREP: return "VREP";
|
|
|
|
|
case ControlMode::GRUP: return "GRUP";
|
|
|
|
|
case ControlMode::FLD : return "FLD" ;
|
2016-05-20 16:13:37 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-05-23 10:48:51 +08:00
|
|
|
std::string
|
|
|
|
|
InjectionSpecification::toString(const InjectorType& type)
|
2016-05-20 16:13:37 +08:00
|
|
|
{
|
|
|
|
|
switch(type) {
|
2016-05-23 10:48:51 +08:00
|
|
|
case InjectorType::WATER: return "WATER";
|
|
|
|
|
case InjectorType::OIL : return "OIL" ;
|
|
|
|
|
case InjectorType::GAS : return "GAS" ;
|
2016-05-20 16:13:37 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-05-23 10:48:51 +08:00
|
|
|
std::string
|
|
|
|
|
InjectionSpecification::toString(const GuideRateType& type)
|
2016-05-20 16:13:37 +08:00
|
|
|
{
|
|
|
|
|
switch(type) {
|
2016-05-23 10:48:51 +08:00
|
|
|
case GuideRateType::RAT : return "RAT" ;
|
|
|
|
|
case GuideRateType::NONE_GRT: return "NONE_GRT";
|
2016-05-20 16:13:37 +08:00
|
|
|
}
|
|
|
|
|
}
|
2012-04-16 19:27:34 +02:00
|
|
|
} // namespace Opm
|