-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelektro.h
More file actions
94 lines (69 loc) · 2.07 KB
/
elektro.h
File metadata and controls
94 lines (69 loc) · 2.07 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
/** @file
* @brief It is an intermediate layer between the main programme, which works with an abstract electrophysiological model, and specific electro-models.
*
* For each model, we define its header file, some constants needed by the main program, initialization and
* main calculation functions.
*/
#ifndef ELECTRO_H_INCLUDED
#define ELECTRO_H_INCLUDED
// #define AP
// #define APmu
// #define APmuRusakov
// #define TP06
// #define slope07
// #define slope11
#define LR
/// if curr_stim is defined, we use stimulation current; instantaneous stimulation otherwise
#define curr_stim
#ifdef curr_stim
extern double
I_stim, t_stim, tipval;
#endif
#define sqr(x) ((x)*(x))
#define kub(x) ((x)*(x)*(x))
#ifdef TP06
/// number of phase variables except potential u
#define Nvar 16
extern double c_gNa, c_gCaL, c_verapamil;
extern int amiodaron; /// 0, no effect; 1, low concentration 1 micromol; 3, high conc. 3 micromol
extern double
TAU_F_INACT_FACTOR, Gkr, Gks, GpCa, GpK;
#endif /// TP06
#ifdef AP
extern const double InitialV;
extern double ka; //ka; a are constants of AP model
extern double a;
extern double eta;
/// number of phase variables except potential u
#define Nvar 1
#endif ///AP
#ifdef APmu
extern const double InitialV;
extern double ka; //ka; a are constants of AP model
extern double a;
extern double epsAP_v;
extern double mu1;
extern double mu2;
/// number of phase variables except potential u
#define Nvar 1
#endif ///APmu
#ifdef LR
/// number of phase variables except potential u
#define Nvar 7
extern double c_gNa; /// parameters for diminishing conductivities for INa, Isi, IK
extern double c_gsi;
extern double c_gK;
#endif /// LR
extern const int indV; /// index of state variable voltage
extern const double volt_init; /// steady-state potential
extern const double volt_stim;
void CommonInit(double dt);
void InitUV(double uv[Nvar+1]);
void CalcNewUV(double uv0[Nvar+1],
double uv1[Nvar+1],
double DivDGradU, double dt
#ifdef curr_stim
,double Istim
#endif
);
#endif // ELECTRO_H_INCLUDED