-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwindow.h
More file actions
121 lines (81 loc) · 2.59 KB
/
mainwindow.h
File metadata and controls
121 lines (81 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "functions.h"
#include "noiseSource.h"
#include "indexer.h"
#include "sphericalVoronoi.h"
#include "sphericalVertexModel.h"
#include "sphericalVectorialVicsek.h"
#include "sphericalSelfPropelledParticle.h"
#include "noseHooverNVT.h"
#include "energyMinimizerFIRE.h"
#include "brownianDynamics.h"
#include "simulation.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
void simulationInitialize();
void hideControls();
void showControls();
private slots:
//parameter setting
void on_initializeButton_released();
//simulation controls
void on_addIterationsButton_released();
void on_drawStuffButton_released();
void on_xRotSlider_valueChanged(int value);
void on_zRotSlider_valueChanged(int value);
void on_zoomSlider_valueChanged(int value);
void on_actionReset_the_system_triggered();
void on_reprodicbleRNGBox_stateChanged(int arg1);
void on_saveFileNowButton_released();
void on_computeEnergyButton_released();
void on_boxRadius_textEdited(const QString &arg1);
void on_boxDensity_textEdited(const QString &arg1);
void on_resetSystemButton_released();
void on_computeEnergyButton_2_released();
void on_cancelEvolutionParametersButton_pressed();
void on_setParametersButton_released();
void on_boxNTotalSize_textChanged(const QString &arg1);
void on_forbidNeighborExchanges_released();
void on_BDCheckBox_released();
void on_FIRECheckBox_clicked();
void on_cancelFIREButton_released();
void on_switchUpdaterButton_released();
void on_setFIREButton_released();
void on_SPPCheckBox_clicked();
void on_setSppParametersButton_clicked();
void on_cancelSppParametersButton_clicked();
private:
Ui::MainWindow *ui;
public:
bool GPU = false;
bool reproducible = true;
int maximumIterations=0;
int N=100;
scalar v0 = 0.1;
scalar eta = 0.1;
scalar dt = 0.001;
scalar radius = 1.0;
scalar density = 0.0623;
int zoom = 1;
vector<scalar3> spherePositions;
vector<scalar> sphereRadii;
vector<QString> computationalNames;
noiseSource noise;
shared_ptr<sphericalModel> Configuration;
shared_ptr<Simulation> sim;
shared_ptr<noseHooverNVT> NVT;
shared_ptr<brownianDynamics> BD;
shared_ptr<vectorialVicsek> vicsek;
shared_ptr<energyMinimizerFIRE> fire;
shared_ptr<sphericalSelfPropelledParticle> spp;
};
#endif // MAINWINDOW_H