-
Notifications
You must be signed in to change notification settings - Fork 0
/
LatticeBoltzmann.h
48 lines (36 loc) · 939 Bytes
/
LatticeBoltzmann.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
#ifndef LATTICE_BOLTZMANN_H
#define LATTICE_BOLTZMANN_H
#include "LatticeSite.h"
#include "Boundary.h"
class LatticeBoltzmann
{
private:
int dims[2];
double omega[2];
double coef_force;
double u0, N2, h;
double spgeFirstNode, ySpge;
double **rho;
double **T;
double ***u;
VelSite **velSites;
VelSite **velSites_;
ThermalSite **thermalSites;
ThermalSite **thermalSites_;
TopWall *w;
Topography *topo;
/* TopWall *tw; */
/* BottomWall *bw; */
void streamToNeighbors(int x, int y);
public:
LatticeBoltzmann(const int*, const double*, double, double, int, double);
~LatticeBoltzmann();
void generateGeometry();
double InitialCondition_X(int, int);
double InitialCondition_Y(int, int);
void setSite(int x, int y, LatticeSite::SiteType type, double u[2]);
void setSpgeLayer(int);
void getDensityAndVelocityField(double **&, double **&, double ***&);
void update();
};
#endif