TYCHO
1.3.0
Main Page
Data Structures
Files
File List
Globals
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,
15
DOM_SOLID
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
27
int
max_array_length
;
28
29
// for the grid the nmin, nmax
30
int
nminx
,
nmaxx
;
31
int
nminy
,
nmaxy
;
32
int
nminz
,
nmaxz
;
33
34
int
shock_or_not
,
counter
,
counter_restart
;
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
47
double
dt
,
dt_no_shock
,
dt_shock
;
48
double
time_sim
,
endtime_sim
;
49
double
minute_in_sec
;
50
double
dt_integrated
;
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
80
double
***
pressure_integrated
, ***
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
102
boundary
bound
;
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
108
int
intial_velocity_file
;
109
110
double
output_frequency
;
111
double
restart_frequency
;
112
113
int
gravity_on_off
;
114
115
int
viscosity_on_off
;
116
117
double
C1_visc
;
118
double
S_visc
;
119
120
int
wind_on_off
;
121
double
wind_speed
;
122
int
wind_direction
;
123
124
int
make_ics
;
125
126
int
filetype
;
127
128
double
inflow_velocity
;
129
double
inflow_density
;
130
double
inflow_temperature
;
131
int
starting_flow
;
132
133
double
gasconstant
;
134
135
int
number_of_threads
;
136
137
//if obstacles are included
138
int
with_obstacles
;
139
140
double
obstacle_density
,
obstacle_temperature
,
obstacle_heat_conductivity
;
141
142
//for the heat-transfer calculation at the boundary of obstacles
143
double
specific_heat_capacity_gas
;
144
double
specific_heat_capacity_obstacle
;
145
146
int
strat_const_atmos
;
147
148
//if advection of a maker field is desired
149
int
advection
;
150
151
double
marker_density
;
152
153
//for the sound generator the initial pressure at the position of the sound source
154
int
with_sound_emitter
;
155
double
pre_initial_sound
;
156
double
sound_pressure_level
;
157
int
with_one_pulse
;
158
double
sound_frequency
;
159
double
sound_reflexion
;
160
double
obstalce_absorption_coefficient
;
161
double
mean_pressure
;
162
double
pressure
;
163
164
double
intial_soundspeed
;
165
166
int
dB_Map_ready
;
167
168
#endif
/* VARIABLES_global_ */
Generated on Thu Oct 10 2013 17:15:52 for TYCHO by
1.8.1.1