-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdptablecalculator.h
More file actions
45 lines (30 loc) · 871 Bytes
/
dptablecalculator.h
File metadata and controls
45 lines (30 loc) · 871 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
#ifndef DPTABLECALCULATOR_H
#define DPTABLECALCULATOR_H
#include "pressuredropcalculator.h"
namespace ResOpt
{
class DpTable;
class Stream;
class DpTableCalculator : public PressureDropCalculator
{
private:
DpTable *p_dp_table;
public:
DpTableCalculator();
DpTableCalculator(const DpTableCalculator &c);
virtual ~DpTableCalculator();
// virtual functions
virtual PressureDropCalculator* clone() const {return new DpTableCalculator(*this);}
/**
* @brief Calculates the pressure drop in the pipe for a given stream and outlet pressure
*
* @param s
* @param p_outlet
* @return double
*/
virtual double pressureDrop(Stream *s, double p_outlet, Stream::units unit);
// set functions
void setDpTable(DpTable *table) {p_dp_table = table;}
};
} // namespace ResOp
#endif // DPTABLECALCULATOR_H