openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
restitute.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // openCARP is an open cardiac electrophysiology simulator.
3 //
4 // Copyright (C) 2020 openCARP project
5 //
6 // This program is licensed under the openCARP Academic Public License (APL)
7 // v1.0: You can use and redistribute it and/or modify it in non-commercial
8 // academic environments under the terms of APL as published by the openCARP
9 // project v1.0, or (at your option) any later version. Commercial use requires
10 // a commercial license (info@opencarp.org).
11 //
12 // This program is distributed without any warranty; see the openCARP APL for
13 // more details.
14 //
15 // You should have received a copy of the openCARP APL along with this program
16 // and can find it online: http://www.opencarp.org/license
17 // ----------------------------------------------------------------------------
18 
19 #ifndef RESTITUTE_H
20 #define RESTITUTE_H
21 
22 #include "MULTI_ION_IF.h"
23 #include "ap_analyzer.h"
24 
25 namespace limpet {
26 
28 struct TrgList {
29  int n;
30  double *lst;
31  bool *pmat;
32 };
33 
35  float bcl;
36  float S2_start;
37  float S2_end;
39  float S2_dec;
40 };
41 
43  float bcl_start;
44  float bcl_end;
46  float bcl_dec;
47 };
48 
49 struct restitution {
52  double dur;
53  r_prtcl prtcl;
54  int numppBeats;
55  union {
58  } rtype;
59 };
60 
61 void restitution_trigger_list(char *restitution_file,restitution *r,char *protocol,int*,double**);
62 void restitution_save_sv(MULTI_IF *miif, int R1, restitution *r, action_potential *AP);
63 
64 } // namespace limpet
65 
66 #endif
void restitution_trigger_list(char *r_file, restitution *r, char *protocol, int *n_dop, double **t_dop)
Definition: restitute.cc:45
TrgList trigs
trigger list for defining stim sequence
Definition: restitute.h:50
float bcl_dec
decrement in bcl
Definition: restitute.h:46
r_prtcl prtcl
protocol type
Definition: restitute.h:53
enum limpet::_r_protocol r_prtcl
float S2_dec
decrement for S2 beats
Definition: restitute.h:39
TrgList saveState
instants at wich we save state vectors
Definition: restitute.h:51
int n
number of pulses required for protocol
Definition: restitute.h:29
float bcl
basic cycle length
Definition: restitute.h:35
float bcl_end
final basic cycle length
Definition: restitute.h:44
Define multiple ionic models to be used in different regions.
double * lst
store instants of pulse delivery
Definition: restitute.h:30
int beats_per_bcl
number of beats for a particular bcl
Definition: restitute.h:45
float S2_end
bcl of last premature beat
Definition: restitute.h:37
void restitution_save_sv(MULTI_IF *miif, int R1, restitution *r, action_potential *AP)
Definition: restitute.cc:275
float S2_start
bcl of first premature beat
Definition: restitute.h:36
restitute_S1S2 S1S2
Definition: restitute.h:56
_r_protocol
Definition: restitute.h:27
restitute_dynamic dyn
Definition: restitute.h:57
float bcl_start
initial basic cycle length
Definition: restitute.h:43
double dur
total duration of protocol
Definition: restitute.h:52
int beats_per_S2
number of beats before S2
Definition: restitute.h:38
bool * pmat
store flag to indicate prematurity
Definition: restitute.h:31
int numppBeats
number of prepaced beats before protocol
Definition: restitute.h:54