2014-01-07 17:39:07 +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/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2014-10-01 16:07:44 +02:00
|
|
|
#ifndef OPM_ECLIPSE_STATE_HPP
|
|
|
|
|
#define OPM_ECLIPSE_STATE_HPP
|
2014-01-07 17:39:07 +01:00
|
|
|
|
2016-01-24 21:49:39 +01:00
|
|
|
#include <memory>
|
2016-03-17 10:01:38 +01:00
|
|
|
#include <vector>
|
2014-01-07 17:39:07 +01:00
|
|
|
|
2016-03-08 17:07:42 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Eclipse3DProperties.hpp>
|
2016-05-20 13:03:24 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/EclipseConfig.hpp>
|
2016-10-10 14:09:24 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp>
|
2016-05-02 17:50:45 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Grid/FaultCollection.hpp>
|
|
|
|
|
#include <opm/parser/eclipse/EclipseState/Grid/NNC.hpp>
|
2016-08-05 15:07:15 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Grid/TransMult.hpp>
|
2016-10-31 16:47:59 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Runspec.hpp>
|
2016-11-09 08:49:31 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
|
2016-04-01 15:27:40 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
|
2016-04-12 13:55:50 +02:00
|
|
|
#include <opm/parser/eclipse/Parser/MessageContainer.hpp>
|
2016-05-06 09:59:22 +02:00
|
|
|
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
|
2017-09-24 02:09:51 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
2017-09-24 02:22:16 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
|
2016-01-24 21:49:39 +01:00
|
|
|
|
2014-01-07 17:39:07 +01:00
|
|
|
namespace Opm {
|
2016-01-15 08:42:57 +01:00
|
|
|
|
|
|
|
|
template< typename > class GridProperty;
|
|
|
|
|
template< typename > class GridProperties;
|
|
|
|
|
|
2016-01-24 21:49:39 +01:00
|
|
|
class Box;
|
|
|
|
|
class BoxManager;
|
2016-06-06 14:36:29 +02:00
|
|
|
class Deck;
|
2016-01-15 08:42:57 +01:00
|
|
|
class DeckItem;
|
2016-01-24 21:49:39 +01:00
|
|
|
class DeckKeyword;
|
2016-02-09 12:09:40 +01:00
|
|
|
class DeckRecord;
|
2016-01-24 21:49:39 +01:00
|
|
|
class EclipseGrid;
|
2016-01-15 08:42:57 +01:00
|
|
|
class InitConfig;
|
|
|
|
|
class IOConfig;
|
2016-03-16 17:15:09 +08:00
|
|
|
class ParseContext;
|
2016-07-20 16:26:46 +02:00
|
|
|
class RestartConfig;
|
2016-01-15 08:42:57 +01:00
|
|
|
class Section;
|
|
|
|
|
class SimulationConfig;
|
|
|
|
|
class TableManager;
|
2016-06-06 14:36:29 +02:00
|
|
|
class UnitSystem;
|
2016-01-15 08:42:57 +01:00
|
|
|
|
2014-01-07 17:39:07 +01:00
|
|
|
class EclipseState {
|
|
|
|
|
public:
|
2014-08-27 12:18:34 +02:00
|
|
|
enum EnabledTypes {
|
|
|
|
|
IntProperties = 0x01,
|
|
|
|
|
DoubleProperties = 0x02,
|
|
|
|
|
|
|
|
|
|
AllProperties = IntProperties | DoubleProperties
|
|
|
|
|
};
|
|
|
|
|
|
2016-05-06 10:00:58 +02:00
|
|
|
EclipseState(const Deck& deck , ParseContext parseContext = ParseContext());
|
2016-05-02 17:46:20 +02:00
|
|
|
|
2016-03-16 17:15:09 +08:00
|
|
|
const ParseContext& getParseContext() const;
|
2016-05-20 13:03:24 +02:00
|
|
|
|
2016-10-07 12:57:26 +02:00
|
|
|
const Schedule& getSchedule() const;
|
2016-10-10 09:52:52 +02:00
|
|
|
const IOConfig& getIOConfig() const;
|
|
|
|
|
IOConfig& getIOConfig();
|
2016-08-08 09:37:13 +02:00
|
|
|
|
|
|
|
|
const InitConfig& getInitConfig() const;
|
|
|
|
|
const SimulationConfig& getSimulationConfig() const;
|
2016-05-20 13:03:24 +02:00
|
|
|
const SummaryConfig& getSummaryConfig() const;
|
2016-07-20 16:26:46 +02:00
|
|
|
const RestartConfig& getRestartConfig() const;
|
|
|
|
|
RestartConfig& getRestartConfig();
|
2016-05-20 13:03:24 +02:00
|
|
|
|
2016-10-10 14:09:24 +02:00
|
|
|
const EclipseGrid& getInputGrid() const;
|
2014-06-23 11:58:27 +02:00
|
|
|
|
2016-05-02 17:50:45 +02:00
|
|
|
const FaultCollection& getFaults() const;
|
2016-08-05 15:07:15 +02:00
|
|
|
const TransMult& getTransMult() const;
|
2016-05-13 14:09:29 +02:00
|
|
|
|
|
|
|
|
/// non-neighboring connections
|
|
|
|
|
/// the non-standard adjacencies as specified in input deck
|
|
|
|
|
const NNC& getInputNNC() const;
|
|
|
|
|
bool hasInputNNC() const;
|
2014-09-09 12:16:13 +02:00
|
|
|
|
2016-04-11 14:28:24 +02:00
|
|
|
const Eclipse3DProperties& get3DProperties() const;
|
2016-04-01 15:27:40 +02:00
|
|
|
const TableManager& getTableManager() const;
|
2016-06-29 16:38:09 +02:00
|
|
|
const EclipseConfig& getEclipseConfig() const;
|
2016-08-08 11:39:59 +02:00
|
|
|
const EclipseConfig& cfg() const;
|
2016-04-01 15:27:40 +02:00
|
|
|
|
2016-03-17 10:01:38 +01:00
|
|
|
// the unit system used by the deck. note that it is rarely needed to convert
|
|
|
|
|
// units because internally to opm-parser everything is represented by SI
|
|
|
|
|
// units...
|
2016-05-02 17:50:45 +02:00
|
|
|
const UnitSystem& getDeckUnitSystem() const;
|
2016-05-23 15:12:12 +02:00
|
|
|
const UnitSystem& getUnits() const;
|
2016-05-02 17:50:45 +02:00
|
|
|
|
2016-05-20 13:03:24 +02:00
|
|
|
const MessageContainer& getMessageContainer() const;
|
|
|
|
|
MessageContainer& getMessageContainer();
|
2016-09-13 21:33:54 +08:00
|
|
|
|
2016-05-20 13:03:24 +02:00
|
|
|
std::string getTitle() const;
|
|
|
|
|
|
2016-05-02 17:50:45 +02:00
|
|
|
void applyModifierDeck(const Deck& deck);
|
2014-09-09 12:16:13 +02:00
|
|
|
|
2016-10-31 16:47:59 +01:00
|
|
|
const Runspec& runspec() const;
|
|
|
|
|
|
2014-01-07 17:39:07 +01:00
|
|
|
private:
|
2016-05-02 17:46:20 +02:00
|
|
|
void initIOConfigPostSchedule(const Deck& deck);
|
2015-01-16 14:51:57 +01:00
|
|
|
void initTransMult();
|
2016-05-02 17:50:45 +02:00
|
|
|
void initFaults(const Deck& deck);
|
2016-04-01 15:27:40 +02:00
|
|
|
|
2016-06-21 11:43:20 +02:00
|
|
|
void setMULTFLT(const Opm::Section& section);
|
2014-05-30 15:05:56 +02:00
|
|
|
|
2016-05-02 17:46:20 +02:00
|
|
|
void complainAboutAmbiguousKeyword(const Deck& deck,
|
2016-04-14 11:03:53 +08:00
|
|
|
const std::string& keywordName);
|
2014-10-03 14:21:20 +02:00
|
|
|
|
2016-05-02 10:08:46 +02:00
|
|
|
ParseContext m_parseContext;
|
2016-05-20 13:03:24 +02:00
|
|
|
const TableManager m_tables;
|
2016-11-02 13:29:00 +01:00
|
|
|
Runspec m_runspec;
|
2017-09-24 02:34:01 +02:00
|
|
|
EclipseConfig m_eclipseConfig;
|
2017-09-24 09:21:52 +02:00
|
|
|
UnitSystem m_deckUnitSystem;
|
|
|
|
|
NNC m_inputNnc;
|
2016-10-10 14:09:24 +02:00
|
|
|
EclipseGrid m_inputGrid;
|
2016-05-02 10:08:46 +02:00
|
|
|
Eclipse3DProperties m_eclipseProperties;
|
2017-09-24 02:22:16 +02:00
|
|
|
const SimulationConfig m_simulationConfig;
|
2017-02-15 11:13:29 +01:00
|
|
|
Schedule m_schedule;
|
2017-09-24 02:22:16 +02:00
|
|
|
const SummaryConfig m_summaryConfig;
|
2016-10-12 10:46:40 +02:00
|
|
|
TransMult m_transMult;
|
2016-04-01 15:27:40 +02:00
|
|
|
|
2016-05-20 13:03:24 +02:00
|
|
|
FaultCollection m_faults;
|
|
|
|
|
std::string m_title;
|
2016-06-21 10:38:07 +02:00
|
|
|
|
|
|
|
|
MessageContainer m_messageContainer;
|
2016-09-13 21:33:54 +08:00
|
|
|
|
2014-01-07 17:39:07 +01:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-08 17:07:42 +01:00
|
|
|
#endif // OPM_ECLIPSE_STATE_HPP
|