2013-11-06 18:45:41 +01:00
|
|
|
/*
|
|
|
|
|
Copyright 2013 Statoil ASA.
|
|
|
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef COMPLETION_HPP_
|
|
|
|
|
#define COMPLETION_HPP_
|
|
|
|
|
|
2018-06-28 14:45:30 +02:00
|
|
|
#include <array>
|
2016-01-15 08:42:57 +01:00
|
|
|
#include <map>
|
2013-12-02 13:07:01 +01:00
|
|
|
#include <memory>
|
2014-08-29 15:08:13 +02:00
|
|
|
#include <string>
|
2016-01-15 08:42:57 +01:00
|
|
|
#include <vector>
|
2018-04-22 10:25:17 +02:00
|
|
|
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
|
2013-11-06 18:45:41 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/ScheduleEnums.hpp>
|
2014-09-04 21:12:36 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Util/Value.hpp>
|
2013-11-06 18:45:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Opm {
|
|
|
|
|
|
2016-01-15 08:42:57 +01:00
|
|
|
class DeckKeyword;
|
|
|
|
|
class DeckRecord;
|
|
|
|
|
|
2018-06-08 16:23:03 +02:00
|
|
|
class Connection {
|
2013-11-06 18:45:41 +01:00
|
|
|
public:
|
2018-06-08 16:23:03 +02:00
|
|
|
Connection(int i, int j , int k ,
|
2016-11-30 16:46:58 +01:00
|
|
|
int complnum,
|
2016-09-08 17:08:25 +02:00
|
|
|
double depth,
|
2018-08-16 14:43:07 +02:00
|
|
|
WellCompletion::StateEnum state,
|
|
|
|
|
double CF,
|
|
|
|
|
double Kh,
|
|
|
|
|
double rw,
|
2017-02-16 08:36:41 +01:00
|
|
|
const int satTableId,
|
2018-06-26 12:18:53 +02:00
|
|
|
const WellCompletion::DirectionEnum direction);
|
2014-09-04 21:12:36 +02:00
|
|
|
|
2015-01-14 11:40:28 +01:00
|
|
|
|
2018-08-16 14:43:07 +02:00
|
|
|
bool attachedToSegment() const;
|
2015-11-09 16:07:19 +01:00
|
|
|
bool sameCoordinate(const int i, const int j, const int k) const;
|
2013-11-06 18:45:41 +01:00
|
|
|
int getI() const;
|
|
|
|
|
int getJ() const;
|
|
|
|
|
int getK() const;
|
2018-08-16 14:43:07 +02:00
|
|
|
WellCompletion::StateEnum state() const;
|
|
|
|
|
WellCompletion::DirectionEnum dir() const;
|
|
|
|
|
double depth() const;
|
|
|
|
|
int satTableId() const;
|
|
|
|
|
int complnum() const;
|
|
|
|
|
int segment() const;
|
|
|
|
|
double CF() const;
|
|
|
|
|
double Kh() const;
|
|
|
|
|
double rw() const;
|
|
|
|
|
double wellPi() const;
|
|
|
|
|
|
|
|
|
|
void setState(WellCompletion::StateEnum state);
|
|
|
|
|
void setComplnum(int compnum);
|
|
|
|
|
void scaleWellPi(double wellPi);
|
|
|
|
|
void updateSegment(int segment_number, double center_depth);
|
2013-11-06 18:45:41 +01:00
|
|
|
|
2018-06-08 16:23:03 +02:00
|
|
|
bool operator==( const Connection& ) const;
|
|
|
|
|
bool operator!=( const Connection& ) const;
|
2018-08-16 14:43:07 +02:00
|
|
|
private:
|
|
|
|
|
WellCompletion::DirectionEnum direction;
|
2018-06-26 09:45:50 +02:00
|
|
|
double center_depth;
|
2018-08-16 14:43:07 +02:00
|
|
|
WellCompletion::StateEnum open_state;
|
2018-06-26 10:08:44 +02:00
|
|
|
int sat_tableId;
|
2018-08-16 14:43:07 +02:00
|
|
|
int m_complnum;
|
|
|
|
|
double m_CF;
|
|
|
|
|
double m_Kh;
|
|
|
|
|
double m_rw;
|
2018-06-26 10:23:42 +02:00
|
|
|
|
2018-06-26 12:18:53 +02:00
|
|
|
std::array<int,3> ijk;
|
|
|
|
|
|
|
|
|
|
// related segment number
|
|
|
|
|
// -1 means the completion is not related to segment
|
|
|
|
|
int segment_number = -1;
|
2018-08-16 14:43:07 +02:00
|
|
|
double wPi = 1.0;
|
2013-11-06 18:45:41 +01:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-02-17 15:35:23 +01:00
|
|
|
#endif /* COMPLETION_HPP_ */
|
2018-08-16 14:43:07 +02:00
|
|
|
|