A parallel C++ Library for Simulations in the Heisenberg Model
ising_window.h
Go to the documentation of this file.
1 #ifndef WINDOW_H
2 #define WINDOW_H
3 
4 #include <QWidget>
5 #include <QTimer>
6 #include <string>
7 #include <QLineEdit>
8 #include <QLabel>
9 #include <QGridLayout>
10 #include <iostream>
11 #include <QPainter>
12 
13 #include "qt_application/app.h"
14 #include "simulation.h"
15 
17 
18 typedef struct {
19  size_t x;
20  size_t y;
21 }gridSizes;
22 
23 class Window : public QWidget
24 {
25  Q_OBJECT
26 
27  public:
29  float3 B, float J, float beta,
30  SimulationType simulationType, bool heat, QWidget *parent = 0);
31 
32  void paintEvent(QPaintEvent *);
33 
34  private:
36  std::unique_ptr<HB::Grid<short int>> grid;
37 };
38 
39 #endif
Window::grid
std::unique_ptr< HB::Grid< short int > > grid
Definition: ising_window.h:36
metropolis
@ metropolis
Definition: ising_window.h:16
Window::Window
Window(gridSizes sizes, float3 B, float J, float beta, SimulationType simulationType, bool heat, QWidget *parent=0)
Window
Definition: ising_window.h:24
heatbath
@ heatbath
Definition: ising_window.h:16
Window::paintEvent
void paintEvent(QPaintEvent *)
SimulationType
SimulationType
Definition: ising_window.h:16
gridSizes::y
size_t y
Definition: ising_window.h:20
wolff
@ wolff
Definition: ising_window.h:16
Window::models
HB::Models models
Definition: ising_window.h:35
app.h
HB::Models
std::vector< std::unique_ptr< HB::Model > > Models
Definition: simulation.h:270
gridSizes
Definition: ising_window.h:18
simulation.h
gridSizes::x
size_t x
Definition: ising_window.h:19