-
Notifications
You must be signed in to change notification settings - Fork 0
/
Boundary.h
54 lines (44 loc) · 1.32 KB
/
Boundary.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
#ifndef BOUNDARY_H
#define BOUNDARY_H
#include "LatticeSite.h"
class Boundary{
protected:
int nbNodes;
int **nodes;
public:
Boundary();
virtual void BoundaryCondition() = 0;
};
class TopWall : public Boundary{
private:
public:
TopWall(const int d[2]);
virtual void BoundaryCondition();
virtual void BoundaryCondition(VelSite **sites, VelSite **_sites);
void FreeSlipBC(VelSite **sites, VelSite **_sites);
void HalfWayFreeSlipBC(VelSite **sites, VelSite **_sites);
void TemperatureBC(VelSite **velSites, ThermalSite **thermalSites,
double **T, double ***u);
};
class BottomWall : public Boundary{
private:
public:
BottomWall(const int d[2]);
virtual void BoundaryCondition();
virtual void BoundaryCondition(VelSite **sites, VelSite **_sites);
void FreeSlipBC(VelSite **sites, VelSite **_sites);
void TemperatureBC(VelSite **velSites, ThermalSite **thermalSites,
double **T, double ***u);
};
class Topography : public Boundary{
private:
int *lbl;
public:
Topography(const int d[2], int h, double*** u, VelSite**, VelSite**);
virtual void BoundaryCondition();
void FreeSlipBC(VelSite **sites, VelSite **_sites);
void HalfWayFreeSlipBC(VelSite **sites, VelSite **_sites);
void TemperatureBC(VelSite **velSites, ThermalSite **thermalSites,
double **T, double ***u);
};
#endif