WellInjectionProperties.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2014 Statoil ASA.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef WELLINJECTIONPROPERTIES_HPP_HEADER_INCLUDED
21 #define WELLINJECTIONPROPERTIES_HPP_HEADER_INCLUDED
22 
24 
25 namespace Opm {
26 
30  double BHPLimit;
31  double THPLimit;
37 
38  bool operator==(const WellInjectionProperties& other) const;
39  bool operator!=(const WellInjectionProperties& other) const;
40 
43  if (injectionControls & controlModeArg)
44  return true;
45  else
46  return false;
47  }
48 
50  if ((injectionControls & controlModeArg) != 0)
51  injectionControls -= controlModeArg;
52  }
53 
55  if ((injectionControls & controlModeArg) == 0)
56  injectionControls += controlModeArg;
57  }
58  };
59 }
60 
61 #endif
int VFPTableNumber
Definition: WellInjectionProperties.hpp:32
void addInjectionControl(WellInjector::ControlModeEnum controlModeArg)
Definition: WellInjectionProperties.hpp:54
Definition: Deck.hpp:29
Definition: WellInjectionProperties.hpp:27
TypeEnum
Definition: ScheduleEnums.hpp:88
double reservoirInjectionRate
Definition: WellInjectionProperties.hpp:29
int injectionControls
Definition: WellInjectionProperties.hpp:34
double BHPLimit
Definition: WellInjectionProperties.hpp:30
bool operator!=(const WellInjectionProperties &other) const
bool hasInjectionControl(WellInjector::ControlModeEnum controlModeArg) const
Definition: WellInjectionProperties.hpp:42
double surfaceInjectionRate
Definition: WellInjectionProperties.hpp:28
ControlModeEnum
Definition: ScheduleEnums.hpp:96
double THPLimit
Definition: WellInjectionProperties.hpp:31
bool operator==(const WellInjectionProperties &other) const
WellInjector::TypeEnum injectorType
Definition: WellInjectionProperties.hpp:35
void dropInjectionControl(WellInjector::ControlModeEnum controlModeArg)
Definition: WellInjectionProperties.hpp:49
bool predictionMode
Definition: WellInjectionProperties.hpp:33
WellInjector::ControlModeEnum controlMode
Definition: WellInjectionProperties.hpp:36