openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
restitute.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) NumeriCor GmbH
2 // SPDX-License-Identifier: LicenseRef-APL-1.1
3 
4 #ifndef RESTITUTE_H
5 #define RESTITUTE_H
6 
7 #include "MULTI_ION_IF.h"
8 #include "ap_analyzer.h"
9 
10 namespace limpet {
11 
13 struct TrgList {
14  int n;
15  double *lst;
16  bool *pmat;
17 };
18 
20  float bcl;
21  float S2_start;
22  float S2_end;
24  float S2_dec;
25 };
26 
28  float bcl_start;
29  float bcl_end;
31  float bcl_dec;
32 };
33 
34 struct restitution {
37  double dur;
39  int numppBeats;
40  union {
43  } rtype;
44 };
45 
46 void restitution_trigger_list(char *restitution_file,restitution *r,char *protocol,int*,double**);
47 void restitution_save_sv(MULTI_IF *miif, int R1, restitution *r, action_potential *AP);
48 
49 } // namespace limpet
50 
51 #endif
Define multiple ionic models to be used in different regions.
_r_protocol
Definition: restitute.h:12
@ S1S2_fast
Definition: restitute.h:12
@ S1S2
Definition: restitute.h:12
@ DYNAMIC
Definition: restitute.h:12
enum limpet::_r_protocol r_prtcl
void restitution_trigger_list(char *r_file, restitution *r, char *protocol, int *n_dop, double **t_dop)
Definition: restitute.cc:30
void restitution_save_sv(MULTI_IF *miif, int R1, restitution *r, action_potential *AP)
Definition: restitute.cc:260
int n
number of pulses required for protocol
Definition: restitute.h:14
double * lst
store instants of pulse delivery
Definition: restitute.h:15
bool * pmat
store flag to indicate prematurity
Definition: restitute.h:16
float S2_start
bcl of first premature beat
Definition: restitute.h:21
float bcl
basic cycle length
Definition: restitute.h:20
float S2_end
bcl of last premature beat
Definition: restitute.h:22
float S2_dec
decrement for S2 beats
Definition: restitute.h:24
int beats_per_S2
number of beats before S2
Definition: restitute.h:23
int beats_per_bcl
number of beats for a particular bcl
Definition: restitute.h:30
float bcl_start
initial basic cycle length
Definition: restitute.h:28
float bcl_dec
decrement in bcl
Definition: restitute.h:31
float bcl_end
final basic cycle length
Definition: restitute.h:29
union limpet::restitution::@0 rtype
TrgList saveState
instants at wich we save state vectors
Definition: restitute.h:36
double dur
total duration of protocol
Definition: restitute.h:37
restitute_S1S2 S1S2
Definition: restitute.h:41
TrgList trigs
trigger list for defining stim sequence
Definition: restitute.h:35
r_prtcl prtcl
protocol type
Definition: restitute.h:38
restitute_dynamic dyn
Definition: restitute.h:42
int numppBeats
number of prepaced beats before protocol
Definition: restitute.h:39