cholla
CTU_2D.h
Go to the documentation of this file.
1 
4 #ifndef CTU_2D_H
5 #define CTU_2D_H
6 
7 #include"global.h"
8 
9 struct States_2D
10 {
14  Real *d_Lx;
15 
19  Real *d_Rx;
20 
24  Real *d_Ly;
25 
29  Real *d_Ry;
30 
34  Real *mx_Lx;
35 
39  Real *mx_Rx;
40 
44  Real *mx_Ly;
45 
49  Real *mx_Ry;
50 
54  Real *my_Lx;
55 
59  Real *my_Rx;
60 
64  Real *my_Ly;
65 
69  Real *my_Ry;
70 
74  Real *mz_Lx;
75 
79  Real *mz_Rx;
80 
84  Real *mz_Ly;
85 
89  Real *mz_Ry;
90 
94  Real *E_Lx;
95 
99  Real *E_Rx;
100 
104  Real *E_Ly;
105 
109  Real *E_Ry;
110 
111 
112 
113  // constructor
114  States_2D(int n_cells);
115 
116 };
117 
118 struct Fluxes_2D
119 {
122  Real *dflux_x;
123 
126  Real *dflux_y;
127 
130  Real *xmflux_x;
131 
134  Real *xmflux_y;
135 
138  Real *ymflux_x;
139 
142  Real *ymflux_y;
143 
146  Real *zmflux_x;
147 
150  Real *zmflux_y;
151 
154  Real *Eflux_x;
155 
158  Real *Eflux_y;
159 
160 
161 
162  Fluxes_2D(int n_cells);
163 
164 };
165 
168 void CTU_Algorithm_2D(Real *C, int nx, int ny, int n_ghost, Real dx, Real dy, Real dt);
169 
170 
171 
172 #endif //CTU_2D_H
Real * d_Ry
Array containing the right input state for the density at the y+1/2 interface for each cell...
Definition: CTU_2D.h:29
Real * dflux_y
Array containing the density flux at the y+1/2 interface for each cell.
Definition: CTU_2D.h:126
Real * mx_Ly
Array containing the left input state for the x momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:44
Real * zmflux_y
Array containing the z momentum flux at the y+1/2 interface for each cell.
Definition: CTU_2D.h:150
Real * my_Rx
Array containing the right input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:59
Real * E_Ry
Array containing the right input state for the Energy at the y+1/2 interface for each cell...
Definition: CTU_2D.h:109
Real * mz_Ly
Array containing the left input state for the z momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:84
Real * Eflux_y
Array containing the Energy flux at the y+1/2 interface for each cell.
Definition: CTU_2D.h:158
void CTU_Algorithm_2D(Real *C, int nx, int ny, int n_ghost, Real dx, Real dy, Real dt)
The corner transport upwind algorithm of Gardiner & Stone, 2008.
Definition: CTU_2D.cpp:21
Definition: CTU_2D.h:9
Real * my_Ry
Array containing the right input state for the y momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:69
Real * zmflux_x
Array containing the z momentum flux at the x+1/2 interface for each cell.
Definition: CTU_2D.h:146
Real * mz_Rx
Array containing the right input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:79
Real * mz_Ry
Array containing the right input state for the z momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:89
Real * my_Lx
Array containing the left input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:54
Real * mx_Rx
Array containing the right input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:39
Real * xmflux_y
Array containing the x momentum flux at the y+1/2 interface for each cell.
Definition: CTU_2D.h:134
Real * dflux_x
Array containing the density flux at the x+1/2 interface for each cell.
Definition: CTU_2D.h:122
Real * mx_Ry
Array containing the right input state for the x momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:49
Real * ymflux_y
Array containing the y momentum flux at the y+1/2 interface for each cell.
Definition: CTU_2D.h:142
Real * E_Ly
Array containing the left input state for the Energy at the y+1/2 interface for each cell...
Definition: CTU_2D.h:104
Real * mz_Lx
Array containing the left input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:74
Real * E_Lx
Array containing the left input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_2D.h:94
Real * E_Rx
Array containing the right input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_2D.h:99
Real * Eflux_x
Array containing the Energy flux at the x+1/2 interface for each cell.
Definition: CTU_2D.h:154
Real * ymflux_x
Array containing the y momentum flux at the x+1/2 interface for each cell.
Definition: CTU_2D.h:138
Definition: CTU_2D.h:118
Real * d_Rx
Array containing the right input state for the density at the x+1/2 interface for each cell...
Definition: CTU_2D.h:19
Real * xmflux_x
Array containing the x momentum flux at the x+1/2 interface for each cell.
Definition: CTU_2D.h:130
Real * my_Ly
Array containing the left input state for the y momentum at the y+1/2 interface for each cell...
Definition: CTU_2D.h:64
Real * d_Lx
Array containing the left input state for the density at the x+1/2 interface for each cell...
Definition: CTU_2D.h:14
Real * d_Ly
Array containing the left input state for the density at the y+1/2 interface for each cell...
Definition: CTU_2D.h:24
Real * mx_Lx
Array containing the left input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_2D.h:34