-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTurbulentFlowField.h
More file actions
73 lines (62 loc) · 2.33 KB
/
TurbulentFlowField.h
File metadata and controls
73 lines (62 loc) · 2.33 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef _TURBULENT_FLOW_FIELD_H_
#define _TURBULENT_FLOW_FIELD_H_
#include "FlowField.h"
#include "DataStructures.h"
#include "Parameters.h"
#include "DataStructures.h"
/** Flow field
*
* Class intended to contain the state of the domain.
*/
class TurbulentFlowField : public FlowField {
private:
ScalarField _distance;
ScalarField _nitau;
ScalarField * _kinetic;
ScalarField * _dissip;
ScalarField * _kineticNew;
ScalarField * _dissipNew;
ScalarField _fmu;
FLOAT *_centerLineBuffer;
public:
/** Constructor for the 2D flow field
*
* Constructor for the flow field. Allocates all the fields and sets
* the sizes. Currently, this contructor is only used for testing purposes.
*
* @param Nx Size of the fuild domain (non-ghost cells), in the X direction
* @param Ny Size of the fuild domain (non-ghost cells), in the Y direction
*/
TurbulentFlowField (int Nx, int Ny, int Nz);
/** Constructor for the 3D flow field
*
* Constructor for the flow field. Allocates all the fields and sets
* the sizes. Currently, this contructor is only used for testing purposes.
*
* @param Nx Size of the fuild domain (non-ghost cells), in the X direction
* @param Ny Size of the fuild domain (non-ghost cells), in the Y direction
* @param Nz Size of the fuild domain (non-ghost cells), in the Z direction
*/
TurbulentFlowField ( int Nx, int Ny );
/** Constructs a field from parameters object
*
* Constructs a field from a parameters object, so that it dimensionality can be defined in
* the configuration file.
*
* @param parameters Parameters object with geometric information
*/
TurbulentFlowField (const Parameters & parameters);
ScalarField & getTurbulentViscosity();
ScalarField & getWallDistance();
ScalarField & getKineticEnergy();
ScalarField & getDissipationRate();
ScalarField & getKineticEnergyNew();
ScalarField & getDissipationRateNew();
ScalarField & getFmu();
FLOAT getWallDistance(int i, int j);
FLOAT getWallDistance(int i, int j, int k);
FLOAT *& getCenterLineVelocity();
void swapKeps();
~TurbulentFlowField ();
};
#endif