My Project
Loading...
Searching...
No Matches
UDQFunctionTable.hpp
1
/*
2
Copyright 2019 Equinor ASA.
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
20
#ifndef UDQFUNCTIONTABLE_HPP
21
#define UDQFUNCTIONTABLE_HPP
22
23
#include <opm/input/eclipse/Schedule/UDQ/UDQFunction.hpp>
24
#include <opm/input/eclipse/Schedule/UDQ/UDQParams.hpp>
25
26
#include <memory>
27
#include <string>
28
#include <unordered_map>
29
30
namespace
Opm
{
31
32
class
UDQFunctionTable
{
33
public
:
34
using
FunctionMap = std::unordered_map<std::string,
35
std::shared_ptr<UDQFunction>>;
36
37
UDQFunctionTable
();
38
explicit
UDQFunctionTable
(
const
UDQParams
& params);
39
UDQFunctionTable
(
const
UDQParams
& param,
40
const
FunctionMap& map);
41
42
bool
has_function(
const
std::string& name)
const
;
43
const
UDQFunction
& get(
const
std::string& name)
const
;
44
45
const
UDQParams
& getParams()
const
;
46
const
FunctionMap& functionMap()
const
;
47
48
bool
operator==(
const
UDQFunctionTable
& data)
const
;
49
50
private
:
51
UDQParams
params;
52
FunctionMap function_table;
53
54
void
insert_function(std::shared_ptr<UDQFunction> func);
55
};
56
57
}
// namespace Opm
58
59
#endif
// UDQFUNCTIONTABLE_HPP
Opm::UDQFunctionTable
Definition
UDQFunctionTable.hpp:32
Opm::UDQFunction
Definition
UDQFunction.hpp:33
Opm::UDQParams
Definition
UDQParams.hpp:31
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
Schedule
UDQ
UDQFunctionTable.hpp
Generated by
1.9.8