-
Notifications
You must be signed in to change notification settings - Fork 1
/
heartDefines.h
146 lines (126 loc) · 1.93 KB
/
heartDefines.h
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#pragma once
#include <cmath>
#include <QObject>
#include <string>
//fonts:
using namespace std;
//#define max(x,y) ( (x) < (y) ? (y) : (x) )
//#define min(x,y) ( (x) < (y) ? (x) : (y) )
//for prince - dormand
#define ATTEMPTS 12
#define MIN_SCALE_FACTOR 0.125
#define MAX_SCALE_FACTOR 4000.0
#define TIME_MULTIP 0.1
#define MAX_SIMULATION_TIME 100000000.0
//#define SA_SIZE 15
//#define AV_SIZE 15
//#define ATRIUM_SIZE 75
//#define TOTAL_SIZE (SA_SIZE+AV_SIZE+ATRIUM_SIZE)
//class heartDefines: public QObject
//{
// Q_OBJECT
//
//public:
// heartDefines();
//
// public slots:
// void setSaSize(int);
// void setAvSize(int);
// void setAtriumSize(int);
// void setBranchAvSize(int);
// void setBranchAtriumSize(int);
// void setBranchStart(int);
// void setBranchEnd(int);
// void toggleBranching(bool);
//
//
//public:
//
// ///---------------
// void validateBranchPosition();
// int saNodeSize_1d;
// int avNodeSize_1d;
// int atriumSize_1d;
// int totalSize_1d;
//
// int branchStart;
// int branchEnd;
// int branchAtriumSize;
// int branchAvSize;
// int branchLength;
//
// bool branchingToggle;
//
// ///---------------
//
//
//};
enum HEART_FUNCTION
{
VAN_DER_GRU_CURRENT,
VAN_DER_GRU_POTENTIAL,
FHN_CURRENT,
FHN_POTENTIAL,
RFHN_CURRENT,
RFHN_POTENTIAL,
OSC_CURRENT,
OSC_CURRENT_2,
OSC_POTENTIAL,
V3_CURRENT,
V3_CURRENT_2,
V3_POTENTIAL,
VAN_DER_GRU_CURRE_2,
};
enum H_BORDERNESS
{
H_LEFT,
H_RIGHT,
H_INTERIOR
};
enum V_BORDERNESS
{
V_TOP,
V_BOTTOM,
V_INTERIOR
};
enum CELL_TYPE
{
SA_NODE,
AV_NODE,
ATRIAL_TISSUE,
PURKINIE_BUNDLE,
AV_NODE_BRANCH,
ATRIAL_BRANCH,
ATRIAL_V3,
ATRIAL_FHN,
SOLID_WALL,
NONE,
};
enum OSC_PARAMETER
{
VDG_ALPHA,
VDG_V1,
VDG_V2,
VDG_E,
VDG_D,
VDG_F,
VDG_TS,
FHN_BETA,
FHN_NI,
FHN_GAMMA,
FHN_TS,
FHN_C1,
FHN_C2,
FHN_ALPHA,
V3_CRN,
V3_modifiedLuoRudy,
V3_GuineaPig,
V3_BeelerReuter,
V3_modifiedBeelerReuter
};
enum SW_ALGORITHMS
{
SW_KUTTA,
SW_EULER,
SW_DUFORTFRENKL
};