opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
LgrCollection.hpp
1
/*
2
Copyright (C) 2023 Equinor
3
This file is part of the Open Porous Media project (OPM).
4
OPM is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
OPM is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with OPM. If not, see <http://www.gnu.org/licenses/>.
14
*/
15
16
#ifndef OPM_PARSER_LGR_COLLECTION_HPP
17
#define OPM_PARSER_LGR_COLLECTION_HPP
18
19
#include <string>
20
21
#include <opm/input/eclipse/EclipseState/Util/OrderedMap.hpp>
22
#include <opm/input/eclipse/EclipseState/Grid/CarfinManager.hpp>
23
#include <opm/input/eclipse/EclipseState/Grid/Carfin.hpp>
24
#include <opm/input/eclipse/EclipseState/Grid/EclipseGrid.hpp>
25
26
namespace
Opm
{
27
28
class
DeckRecord
;
29
class
GridDims
;
30
class
GRIDSection
;
31
32
33
class
LgrCollection {
34
public
:
35
LgrCollection();
36
LgrCollection(
const
GRIDSection
& gridSection,
const
EclipseGrid
& grid);
37
38
static
LgrCollection serializationTestObject();
39
40
explicit
LgrCollection(
const
Deck
& deck);
41
42
size_t
size()
const
;
43
bool
hasLgr(
const
std::string& lgrName)
const
;
44
Carfin
& getLgr(
const
std::string& lgrName);
45
const
Carfin
& getLgr(
const
std::string& lgrName)
const
;
46
Carfin
& getLgr(
size_t
lgrIndex);
47
const
Carfin
& getLgr(
size_t
lgrIndex)
const
;
48
49
void
addLgr(
const
EclipseGrid
& grid,
const
DeckRecord
& lgrRecord);
50
51
bool
operator==(
const
LgrCollection& data)
const
;
52
53
template
<
class
Serializer>
54
void
serializeOp(
Serializer
& serializer)
55
{
56
serializer(m_lgrs);
57
}
58
59
private
:
60
OrderedMap<Carfin, 8>
m_lgrs;
61
62
};
63
}
64
65
#endif
// OPM_PARSER_LGR_COLLECTION_HPP
Opm::Carfin
Definition
Carfin.hpp:34
Opm::DeckRecord
Definition
DeckRecord.hpp:32
Opm::Deck
Definition
Deck.hpp:46
Opm::EclipseGrid
About cell information and dimension: The actual grid information is held in a pointer to an ERT ecl_...
Definition
EclipseGrid.hpp:61
Opm::GRIDSection
Definition
DeckSection.hpp:115
Opm::GridDims
Definition
GridDims.hpp:31
Opm::OrderedMap
A map with iteration in the order of insertion.
Definition
OrderedMap.hpp:119
Opm::Serializer
Class for (de-)serializing.
Definition
Serializer.hpp:94
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
EclipseState
Grid
LgrCollection.hpp
Generated by
1.17.0