TYCHO  1.3.0
 All Data Structures Files Functions Variables Enumerations Enumerator
/home/kapf/tycho_docu/variables_global.h
Go to the documentation of this file.
1 /*
2  * variables.h
3  *
4  * Author: Wolfgang Kapferer
5  */
6 
7 #ifndef VARIABLES_global_
8 #define VARIABLES_global_
9 
10 double grav_acc;
11 
12 /* Data types */
13 typedef enum {
14  DOM_FLUID = 0,
16 } dom_state;
17 
18 
19 /* Welcome to variables home*/
20 
21 //restarting the code or not
22 int restart;
23 
24 // the resolution
25 int x, y, z, dimension;
26 
28 
29 // for the grid the nmin, nmax
30 int nminx, nmaxx;
31 int nminy, nmaxy;
32 int nminz, nmaxz;
33 
35 
36 double Gamma, Gamma1;
37 
38 //error catch
39 double smallp, smallr, small;
40 
41 double xmin, xmax, ymin, ymax, zmin, zmax;
42 
43 //volume of one grid cell
44 double cell_volume;
45 
46 //timing
51 
52 //the old time_sim step;
53 double olddt;
54 
55 //the cfl parameter
56 double courant;
57 
58 //the 3D arrays for hydro
59 double ***rho, ***pre, ***eng, ***vx, ***vy, ***vz, ***e_in;
60 
61 //the 3D arrays for viscosity calculation
62 double ***rho_visc, ***vx_visc, ***vy_visc, ***vz_visc;
63 
64 //an advectable gas
65 double ***marker;
66 
67 //wind marker
68 double ***wind_marker;
69 
70 //the 3D array for the domain
71 int ***dom;
72 
73 //the 3D array for the sound_emitter
74 int ***soundemitter;
75 
76 //pressure on solid and old pressure array
77 double ***pressure_on_solid, ***pre_old;
78 
79 //for the dB-map
81 
82 // init grid
83 double *zdx, *zxc, *zxa;
84 double *zdy, *zyc, *zya;
85 double *zdz, *zzc, *zza;
86 
87 double spacing;
88 
89 //boundary condition switch
90 typedef struct {
91  int up;
92  int down;
93 
94  int left;
95  int right;
96 
97  int front;
98  int back;
99 
100 } boundary;
101 
103 
104 char dens_ic[200], temp_ic[200], vel_ic[200], obst_ic[200];
105 char sound_ic[200], marker_ic[200], wind_ic[200];
106 char output_dir[200];
107 
109 
112 
114 
116 
117 double C1_visc;
118 double S_visc;
119 
121 double wind_speed;
123 
125 
127 
132 
133 double gasconstant;
134 
136 
137 //if obstacles are included
139 
141 
142 //for the heat-transfer calculation at the boundary of obstacles
145 
147 
148 //if advection of a maker field is desired
150 
152 
153 //for the sound generator the initial pressure at the position of the sound source
162 double pressure;
163 
165 
167 
168 #endif /* VARIABLES_global_ */