-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoundCond.h
65 lines (49 loc) · 1.12 KB
/
BoundCond.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#pragma once
#include "Constants.h"
#include "Define.h"
#include "Parameter.h"
#if MULTISPECIES == 1
#include "ChemData.h"
#endif
namespace cfd {
struct Inflow {
explicit Inflow(integer type_label);
#ifdef GPU
Inflow(integer type_label, std::ifstream &file
#if MULTISPECIES == 1
, Species &spec
#endif
);
#endif
void register_boundary_condition(std::ifstream &file, Parameter ¶meter
#if MULTISPECIES == 1
, Species &spec
#endif
);
[[nodiscard]] std::tuple<real, real, real, real, real, real> var_info() const;
integer label = 5;
real mach = -1;
real pressure = 101325;
real temperature = -1;
real velocity = 0;
real density = -1;
real u = 1, v = 0, w = 0;
#if MULTISPECIES == 1
real *yk = nullptr;
#endif
real mw = mw_air;
real viscosity = 0;
// real reynolds=0;
};
struct Wall {
explicit Wall(integer type_label, std::ifstream &bc_file);
enum class ThermalType { isothermal, adiabatic };
integer label = 2;
ThermalType thermal_type = ThermalType::isothermal;
real temperature{300};
};
struct Outflow {
explicit Outflow(integer type_label);
integer label = 6;
};
}