cholla
CTU_1D.h
Go to the documentation of this file.
1 
4 #ifndef CTU_1D_H
5 #define CTU_1D_H
6 
7 #include"global.h"
8 
9 struct States_1D
10 {
14  Real *d_L;
15 
19  Real *d_R;
20 
24  Real *mx_L;
25 
29  Real *mx_R;
30 
34  Real *my_L;
35 
39  Real *my_R;
40 
44  Real *mz_L;
45 
49  Real *mz_R;
50 
54  Real *E_L;
55 
59  Real *E_R;
60 
61 
62  // constructor
63  States_1D(int n_cells);
64 
65 };
66 
67 struct Fluxes_1D
68 {
71  Real *dflux;
72 
75  Real *xmflux;
76 
79  Real *ymflux;
80 
83  Real *zmflux;
84 
87  Real *Eflux;
88 
89 
90  Fluxes_1D(int n_cells);
91 
92 };
93 
96 void CTU_Algorithm_1D(Real *C, int nx, int n_ghost, Real dx, Real dt);
97 
98 
99 
100 #endif //CTU_1D_H
Definition: CTU_1D.h:67
Real * xmflux
Array containing the x momentum flux at the x+1/2 interface for each cell.
Definition: CTU_1D.h:75
Real * d_R
Array containing the right input state for the density at the x+1/2 interface for each cell...
Definition: CTU_1D.h:19
Real * dflux
Array containing the density flux at the x+1/2 interface for each cell.
Definition: CTU_1D.h:71
Real * mz_L
Array containing the left input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:44
Real * E_R
Array containing the right input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_1D.h:59
Real * mx_R
Array containing the right input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:29
Real * mz_R
Array containing the right input state for the z momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:49
Real * Eflux
Array containing the Energy flux at the x+1/2 interface for each cell.
Definition: CTU_1D.h:87
Real * E_L
Array containing the left input state for the Energy at the x+1/2 interface for each cell...
Definition: CTU_1D.h:54
Definition: CTU_1D.h:9
Real * ymflux
Array containing the y momentum flux at the x+1/2 interface for each cell.
Definition: CTU_1D.h:79
void CTU_Algorithm_1D(Real *C, int nx, int n_ghost, Real dx, Real dt)
The corner transport upwind algorithm of Gardiner & Stone, 2008.
Definition: CTU_1D.cpp:20
Real * my_L
Array containing the left input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:34
Real * my_R
Array containing the right input state for the y momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:39
Real * mx_L
Array containing the left input state for the x momentum at the x+1/2 interface for each cell...
Definition: CTU_1D.h:24
Real * zmflux
Array containing the z momentum flux at the x+1/2 interface for each cell.
Definition: CTU_1D.h:83
Real * d_L
Array containing the left input state for the density at the x+1/2 interface for each cell...
Definition: CTU_1D.h:14