cholla
CTU_3D.h
Go to the documentation of this file.
1 
4 #ifndef CTU_3D_H
5 #define CTU_3D_H
6 
7 #include"global.h"
8 
9 struct States_3D
10 {
14  Real *d_Lx;
15 
19  Real *d_Rx;
20 
24  Real *d_Ly;
25 
29  Real *d_Ry;
30 
34  Real *d_Lz;
35 
39  Real *d_Rz;
40 
44  Real *mx_Lx;
45 
49  Real *mx_Rx;
50 
54  Real *mx_Ly;
55 
59  Real *mx_Ry;
60 
64  Real *mx_Lz;
65 
69  Real *mx_Rz;
70 
74  Real *my_Lx;
75 
79  Real *my_Rx;
80 
84  Real *my_Ly;
85 
89  Real *my_Ry;
90 
94  Real *my_Lz;
95 
99  Real *my_Rz;
100 
104  Real *mz_Lx;
105 
109  Real *mz_Rx;
110 
114  Real *mz_Ly;
115 
119  Real *mz_Ry;
120 
124  Real *mz_Lz;
125 
129  Real *mz_Rz;
130 
134  Real *E_Lx;
135 
139  Real *E_Rx;
140 
144  Real *E_Ly;
145 
149  Real *E_Ry;
150 
154  Real *E_Lz;
155 
159  Real *E_Rz;
160 
161 
162  // constructor
163  States_3D(int n_cells);
164 
165 };
166 
167 struct Fluxes_3D
168 {
171  Real *dflux_x;
172 
175  Real *dflux_y;
176 
179  Real *dflux_z;
180 
183  Real *xmflux_x;
184 
187  Real *xmflux_y;
188 
191  Real *xmflux_z;
192 
195  Real *ymflux_x;
196 
199  Real *ymflux_y;
200 
203  Real *ymflux_z;
204 
207  Real *zmflux_x;
208 
211  Real *zmflux_y;
212 
215  Real *zmflux_z;
216 
219  Real *Eflux_x;
220 
223  Real *Eflux_y;
224 
227  Real *Eflux_z;
228 
229 
230  Fluxes_3D(int n_cells);
231 
232 };
233 
236 void CTU_Algorithm_3D(Real *C, int nx, int ny, int nz, int n_ghost, Real dx, Real dy, Real dz, Real dt);
237 
238 
239 
240 #endif //CTU_3D_H
Real * xmflux_x
Array containing the x momentum flux at the x+1/2 interface for each cell.
Definition: CTU_3D.h:183
Real * d_Rx
Array containing the right input state for the density at the x+1/2 interface for each cell...
Definition: CTU_3D.h:19
Real * ymflux_y
Array containing the y momentum flux at the y+1/2 interface for each cell.
Definition: CTU_3D.h:199
Real * zmflux_z
Array containing the z momentum flux at the z+1/2 interface for each cell.
Definition: CTU_3D.h:215
Real * E_Lz
Array containing the left input state for the Energy at the z+1/2 interface for each cell...
Definition: CTU_3D.h:154
Real * mx_Ly
Array containing the left input state for the x momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:54
Real * mz_Ly
Array containing the left input state for the z momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:114
Real * Eflux_z
Array containing the Energy flux at the z+1/2 interface for each cell.
Definition: CTU_3D.h:227
Real * my_Rx
Array containing the right input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:79
Real * mx_Ry
Array containing the right input state for the x momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:59
Definition: CTU_3D.h:167
Real * ymflux_z
Array containing the y momentum flux at the z+1/2 interface for each cell.
Definition: CTU_3D.h:203
Real * d_Lx
Array containing the left input state for the density at the x+1/2 interface for each cell...
Definition: CTU_3D.h:14
Real * mx_Lz
Array containing the left input state for the x momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:64
Real * mz_Ry
Array containing the right input state for the z momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:119
Real * my_Ry
Array containing the right input state for the y momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:89
Real * dflux_x
Array containing the density flux at the x+1/2 interface for each cell.
Definition: CTU_3D.h:171
Real * d_Ry
Array containing the right input state for the density at the y+1/2 interface for each cell...
Definition: CTU_3D.h:29
Real * E_Ly
Array containing the left input state for the Energy at the y+1/2 interface for each cell...
Definition: CTU_3D.h:144
Real * Eflux_x
Array containing the Energy flux at the x+1/2 interface for each cell.
Definition: CTU_3D.h:219
void CTU_Algorithm_3D(Real *C, int nx, int ny, int nz, int n_ghost, Real dx, Real dy, Real dz, Real dt)
The corner transport upwind algorithm of Gardiner & Stone, 2008.
Definition: CTU_3D.cpp:22
Real * Eflux_y
Array containing the Energy flux at the y+1/2 interface for each cell.
Definition: CTU_3D.h:223
Real * mz_Lx
Array containing the left input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:104
Real * mz_Rx
Array containing the right input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:109
Real * E_Lx
Array containing the left input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_3D.h:134
Real * ymflux_x
Array containing the y momentum flux at the x+1/2 interface for each cell.
Definition: CTU_3D.h:195
Real * mz_Lz
Array containing the left input state for the z momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:124
Real * mz_Rz
Array containing the right input state for the z momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:129
Real * zmflux_y
Array containing the z momentum flux at the y+1/2 interface for each cell.
Definition: CTU_3D.h:211
Real * my_Ly
Array containing the left input state for the y momentum at the y+1/2 interface for each cell...
Definition: CTU_3D.h:84
Real * xmflux_z
Array containing the x momentum flux at the z+1/2 interface for each cell.
Definition: CTU_3D.h:191
Real * E_Ry
Array containing the right input state for the Energy at the y+1/2 interface for each cell...
Definition: CTU_3D.h:149
Real * d_Rz
Array containing the right input state for the density at the z+1/2 interface for each cell...
Definition: CTU_3D.h:39
Real * mx_Rx
Array containing the right input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:49
Real * my_Lz
Array containing the left input state for the y momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:94
Real * d_Lz
Array containing the left input state for the density at the z+1/2 interface for each cell...
Definition: CTU_3D.h:34
Real * zmflux_x
Array containing the z momentum flux at the x+1/2 interface for each cell.
Definition: CTU_3D.h:207
Definition: CTU_3D.h:9
Real * E_Rz
Array containing the right input state for the Energy at the z+1/2 interface for each cell...
Definition: CTU_3D.h:159
Real * dflux_y
Array containing the density flux at the y+1/2 interface for each cell.
Definition: CTU_3D.h:175
Real * d_Ly
Array containing the left input state for the density at the y+1/2 interface for each cell...
Definition: CTU_3D.h:24
Real * mx_Rz
Array containing the right input state for the x momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:69
Real * my_Lx
Array containing the left input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:74
Real * xmflux_y
Array containing the x momentum flux at the y+1/2 interface for each cell.
Definition: CTU_3D.h:187
Real * my_Rz
Array containing the right input state for the y momentum at the z+1/2 interface for each cell...
Definition: CTU_3D.h:99
Real * dflux_z
Array containing the density flux at the z+1/2 interface for each cell.
Definition: CTU_3D.h:179
Real * E_Rx
Array containing the right input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_3D.h:139
Real * mx_Lx
Array containing the left input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_3D.h:44