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
|
|
|
|
2019-01-02 18:34:39 +01:00
|
|
|
#include <opm/parser/eclipse/Parser/ParseContext.hpp>
|
2020-02-09 11:47:22 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/AquiferConfig.hpp>
|
2016-05-20 13:03:24 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/EclipseConfig.hpp>
|
2018-11-09 08:11:57 +01:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Edit/EDITNNC.hpp>
|
2019-10-22 08:22:01 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Grid/FieldPropsManager.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-04-01 15:27:40 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
|
2017-09-24 02:09:51 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.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
|
|
|
|
2019-12-19 10:54:42 +01:00
|
|
|
bool enable3DPropsTesting();
|
|
|
|
|
|
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-07-20 16:26:46 +02:00
|
|
|
class RestartConfig;
|
2019-12-29 07:21:37 +01:00
|
|
|
class DeckSection;
|
2016-01-15 08:42:57 +01:00
|
|
|
class SimulationConfig;
|
|
|
|
|
class TableManager;
|
2016-06-06 14:36:29 +02:00
|
|
|
class UnitSystem;
|
2016-01-15 08:42:57 +01:00
|
|
|
|
2020-02-09 11:47:22 +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
|
|
|
|
|
};
|
|
|
|
|
|
2020-01-24 10:47:48 +01:00
|
|
|
EclipseState() = default;
|
2019-01-03 18:05:19 +01:00
|
|
|
EclipseState(const Deck& deck);
|
2016-05-02 17:46:20 +02:00
|
|
|
|
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;
|
2020-01-29 15:46:58 +01:00
|
|
|
virtual 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
|
|
|
|
2018-11-09 08:11:57 +01:00
|
|
|
/// editing non-neighboring connections
|
|
|
|
|
/// the non-standard adjacencies as specified in input deck
|
|
|
|
|
const EDITNNC& getInputEDITNNC() const;
|
|
|
|
|
bool hasInputEDITNNC() const;
|
|
|
|
|
|
2020-01-29 15:46:58 +01:00
|
|
|
// The potentially parallelized field properties
|
2020-01-27 11:08:57 +01:00
|
|
|
virtual const FieldPropsManager& fieldProps() const;
|
2020-01-29 15:46:58 +01:00
|
|
|
// Always the non-parallel field properties
|
|
|
|
|
virtual const FieldPropsManager& globalFieldProps() 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
|
|
|
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;
|
2020-02-09 11:47:22 +01:00
|
|
|
const AquiferConfig& aquifer() 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
|
|
|
|
2019-12-29 07:21:37 +01:00
|
|
|
void setMULTFLT(const Opm::DeckSection& 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
|
|
|
|
2020-01-08 09:30:18 +01:00
|
|
|
protected:
|
|
|
|
|
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;
|
2018-11-09 08:11:57 +01:00
|
|
|
EDITNNC m_inputEditNnc;
|
2016-10-10 14:09:24 +02:00
|
|
|
EclipseGrid m_inputGrid;
|
2019-10-22 08:22:01 +02:00
|
|
|
FieldPropsManager field_props;
|
2020-01-08 09:30:18 +01:00
|
|
|
SimulationConfig m_simulationConfig;
|
2017-09-24 15:17:10 +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;
|
2020-02-09 11:47:22 +01:00
|
|
|
AquiferConfig aquifer_config;
|
2014-01-07 17:39:07 +01:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-08 17:07:42 +01:00
|
|
|
#endif // OPM_ECLIPSE_STATE_HPP
|