opm-common
Toggle main menu visibility
Loading...
Searching...
No Matches
DenT.hpp
1
/*
2
Copyright (C) 2020 by Equinor
3
4
This file is part of the Open Porous Media project (OPM).
5
6
OPM is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
OPM is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with OPM. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef OPM_PARSER_DENT_HPP
20
#define OPM_PARSER_DENT_HPP
21
22
#include <cstddef>
23
#include <vector>
24
25
namespace
Opm
{
26
27
class
DeckKeyword
;
28
class
DeckRecord
;
29
30
class
DenT
31
{
32
public
:
33
struct
entry
34
{
35
double
T0{};
36
double
C1{};
37
double
C2{};
38
39
entry() =
default
;
40
entry(
double
T0_,
double
C1_,
double
C2_);
41
explicit
entry(
const
DeckRecord
& record);
42
bool
operator==(
const
entry& other)
const
;
43
44
template
<
class
Serializer>
45
void
serializeOp(
Serializer
& serializer)
46
{
47
serializer(T0);
48
serializer(C1);
49
serializer(C2);
50
}
51
};
52
53
DenT() =
default
;
54
explicit
DenT(
const
DeckKeyword
& keyword);
55
56
static
DenT serializationTestObject();
57
58
const
entry
& operator[](
const
std::size_t index)
const
;
59
bool
operator==(
const
DenT& other)
const
;
60
std::size_t size()
const
;
61
62
template
<
class
Serializer>
63
void
serializeOp(
Serializer
& serializer)
64
{
65
serializer(m_records);
66
}
67
68
private
:
69
std::vector<entry> m_records;
70
};
71
}
72
73
#endif
Opm::DeckKeyword
Definition
DeckKeyword.hpp:36
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::DenT::entry
Definition
DenT.hpp:34
opm
input
eclipse
EclipseState
Tables
DenT.hpp
Generated by
1.17.0