-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdptable.h
More file actions
46 lines (29 loc) · 786 Bytes
/
dptable.h
File metadata and controls
46 lines (29 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef DPTABLE_H
#define DPTABLE_H
#include <QList>
namespace ResOpt
{
class DpTable
{
private:
QList<double> m_gas;
QList<double> m_oil;
QList<double> m_wat;
QList<double> m_dp;
QList<double> m_entries_gas;
QList<double> m_entries_oil;
QList<double> m_entries_wat;
void process();
QList<int> findUpperEntries(double gas, double oil, double water);
int findTableIndex(int gas_entry, int oil_entry, int water_entry);
public:
DpTable();
// misc functions
double interpolate(double gas, double oil, double water);
// add functions
void addRow(double dp, double gas, double oil, double water);
// get functions
int numberOfRows() const {return m_gas.size();}
};
} // namespace ResOpt
#endif // DPTABLE_H