opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
BrineDensityTable.hpp
1
/*
2
Copyright (C) 2015 Statoil ASA.
3
2015 IRIS AS
4
5
This file is part of the Open Porous Media project (OPM).
6
7
OPM is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
OPM is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OPM. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
#ifndef OPM_PARSER_BRINEDENSITY_TABLE_HPP
21
#define OPM_PARSER_BRINEDENSITY_TABLE_HPP
22
23
namespace
Opm
{
24
25
class
DeckItem
;
26
27
class
BrineDensityTable
{
28
public
:
29
static
BrineDensityTable
serializationTestObject();
30
31
void
init(
const
Opm::DeckRecord
& record);
32
const
std::vector<double>& getBrineDensityColumn()
const
;
33
34
bool
operator==(
const
BrineDensityTable
& data)
const
;
35
36
std::vector<double>::const_iterator begin()
const
{
37
return
m_tableValues.begin();
38
}
39
40
std::vector<double>::const_iterator end()
const
{
41
return
m_tableValues.end();
42
}
43
44
std::size_t size()
const
{
45
return
this->m_tableValues.size();
46
}
47
48
template
<
class
Serializer>
49
void
serializeOp(
Serializer
& serializer)
50
{
51
serializer(m_tableValues);
52
}
53
54
private
:
55
std::vector<double> m_tableValues;
56
};
57
}
58
59
#endif
Opm::BrineDensityTable
Definition
BrineDensityTable.hpp:27
Opm::DeckItem
Definition
DeckItem.hpp:35
Opm::DeckRecord
Definition
DeckRecord.hpp:32
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
Tables
BrineDensityTable.hpp
Generated by
1.17.0