-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcell.h
More file actions
45 lines (43 loc) · 1.16 KB
/
cell.h
File metadata and controls
45 lines (43 loc) · 1.16 KB
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 CELL_H
#define CELL_H
#include "point.h"
#include "face.h"
#include "volocity.h"
#include <unordered_map>
class cell
{
private:
volocity newVolocity;
face faces[6];//WARNING IF THE DATA IS NOT WRITTEN THERE IS NO DEAFAULT SAFTY NET !!!!!!!!!!!!!!!
void trace();
volocity gradient[3];
int key[6];
int declaredNighbours;
int declaredFaces;
double q_crit;
public:
point center;
volocity internalVolocity;
bool exists;
cell();
int id;
cell(face face1,face face2,face face3,face face4,face face5,face face6);
void setVolocity(volocity volocity);
void addFace(face face);
void determineCenter();
void determineNeighbours(std::unordered_map<int,cell> map);
void math(std::unordered_map<int,cell>);
void update();//sets the new volocity as internal volocity
void addNighbour(int id_x);
std::string printInternalVolocity();
std::string printCenter();
std::string printNeighbours();
std::string printFaces();
std::string printCorners();
std::string printGradiant();
std::string printQ();
double trace_base();
double trace_other();
void Q_crit_math();
};
#endif