tychoGUI
1.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
reset_gui.cpp
Go to the documentation of this file.
1
#include "
mainwindow.h
"
2
#include "
ui_mainwindow.h
"
3
4
8
void
MainWindow::reset_gui
(){
9
10
initiate_ic_files
();
11
12
ui
->
filename
->clear();
13
14
ui
->
filetype
->setCurrentIndex(0);
15
ui
->
initial_conditions
->setCurrentIndex(0);
16
ui
->
initial_velocities
->setCurrentIndex(0);
17
ui
->
dimension
->setCurrentIndex(0);
18
19
ui
->
res_x
->setValue(64);
20
ui
->
res_y
->setValue(1);
21
ui
->
res_z
->setValue(1);
22
23
ui
->
extend_x
->setText(
"1"
);
24
ui
->
extend_y
->setText(
"0"
);
25
ui
->
extend_z
->setText(
"0"
);
26
27
ui
->
ic_density
->setDisabled(
true
);
28
ui
->
ic_temperatur
->setDisabled(
true
);
29
ui
->
ic_velocity
->setDisabled(
true
);
30
ui
->
ic_wind
->setDisabled(
true
);
31
ui
->
ic_obstacle
->setDisabled(
true
);
32
ui
->
ic_marker
->setDisabled(
true
);
33
34
ui
->
bound_back
->setCurrentIndex(0);
35
ui
->
bound_front
->setCurrentIndex(0);
36
ui
->
bound_up
->setCurrentIndex(0);
37
ui
->
bound_down
->setCurrentIndex(0);
38
ui
->
bound_left
->setCurrentIndex(0);
39
ui
->
bound_right
->setCurrentIndex(0);
40
41
ui
->
bound_down
->setEnabled(
true
);
42
ui
->
bound_up
->setEnabled(
true
);
43
44
boundary_logic
();
45
46
ui
->
end_time
->setText(
"1"
);
47
ui
->
output_frequency
->setText(
"0.001"
);
48
ui
->
restart_frequency
->setText(
"0.01"
);
49
50
ui
->
openmp
->setText(
"4"
);
51
52
ui
->
cfl
->setText(
"0.3"
);
53
ui
->
gamma
->setText(
"1.667"
);
54
ui
->
gasconstant
->setText(
"287.058"
);
55
56
ui
->
gravity_off
->setChecked(
true
);
57
ui
->
startified_atmos_off
->setChecked(
true
);
58
ui
->
startified_atmos_on
->setDisabled(
true
);
59
ui
->
startified_atmos_off
->setDisabled(
true
);
60
61
ui
->
wind_emitter_off
->setChecked(
true
);
62
ui
->
wind_speed
->setText(
"0"
);
63
ui
->
wind_speed
->setDisabled(
true
);
64
65
ui
->
obstacle_off
->setChecked(
true
);
66
ui
->
obstacle_density
->setText(
"0"
);
67
ui
->
obstacle_temp
->setText(
"0"
);
68
ui
->
obstacle_diff
->setText(
"0"
);
69
ui
->
obstacle_density
->setDisabled(
true
);
70
ui
->
obstacle_diff
->setDisabled(
true
);
71
ui
->
obstacle_temp
->setDisabled(
true
);
72
73
ui
->
marker_field_off
->setChecked(
true
);
74
ui
->
marker_density
->setText(
"0"
);
75
ui
->
marker_density
->setDisabled(
true
);
76
77
ui
->
viscosity_off
->setChecked(
true
);
78
79
ui
->
specific_heat_capacity_gas
->setText(
"0"
);
80
ui
->
specific_heat_capacity_obstacle
->setText(
"0"
);
81
82
83
ui
->
Soundemitter_off
->setChecked(
true
);
84
ui
->
one_pulse_off
->setChecked(
true
);
85
86
soundemitter_logic
();
87
soundemitter_logic_part2
();
88
89
}
Generated on Wed Oct 9 2013 19:57:23 for tychoGUI by
1.8.1.1