Files
opm-common/opm/parser/eclipse/EclipseState/Schedule/Completion.hpp

84 lines
3.0 KiB
C++
Raw Normal View History

/*
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_
#include <memory>
#include <string>
#include <boost/date_time.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/ScheduleEnums.hpp>
#include <opm/parser/eclipse/EclipseState/Util/Value.hpp>
namespace Opm {
class Completion {
public:
Completion(int i, int j , int k , WellCompletion::StateEnum state ,
const Value<double>& connectionTransmissibilityFactor,
const Value<double>& diameter,
const Value<double>& skinFactor,
const WellCompletion::DirectionEnum direction = WellCompletion::DirectionEnum::Z);
2015-01-14 11:40:28 +01:00
Completion(std::shared_ptr<const Completion> oldCompletion, WellCompletion::StateEnum newStatus);
2015-06-02 13:26:37 +02:00
Completion(std::shared_ptr<const Completion> oldCompletion, double wellPi);
2015-01-14 11:40:28 +01:00
2013-11-07 15:01:14 +01:00
bool sameCoordinate(const Completion& other) const;
int getI() const;
int getJ() const;
int getK() const;
WellCompletion::StateEnum getState() const;
double getConnectionTransmissibilityFactor() const;
2015-06-02 13:26:37 +02:00
double getWellPi() const;
2015-02-03 13:01:26 +01:00
const Value<double>& getConnectionTransmissibilityFactorAsValueObject() const;
double getDiameter() const;
double getSkinFactor() const;
void fixDefaultIJ(int wellHeadI , int wellHeadJ);
WellCompletion::DirectionEnum getDirection() const;
static std::map<std::string , std::vector<std::shared_ptr<Completion> > > completionsFromCOMPDATKeyword( DeckKeywordConstPtr compdatKeyword );
static std::pair<std::string , std::vector<std::shared_ptr<Completion> > > completionsFromCOMPDATRecord( DeckRecordConstPtr compdatRecord );
private:
int m_i, m_j, m_k;
Value<double> m_diameter;
Value<double> m_connectionTransmissibilityFactor;
double m_wellPi;
Value<double> m_skinFactor;
WellCompletion::StateEnum m_state;
WellCompletion::DirectionEnum m_direction;
2015-01-14 11:40:28 +01:00
Value<double> getDiameterAsValueObject() const;
Value<double> getSkinFactorAsValueObject() const;
};
typedef std::shared_ptr<Completion> CompletionPtr;
typedef std::shared_ptr<const Completion> CompletionConstPtr;
}
#endif /* COMPLETION_HPP_ */