openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
stretch.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 STRETCH_H
5 #define STRETCH_H
6 
7 #include "MULTI_ION_IF.h"
8 
9 namespace limpet {
10 
11 // define passive and active strain protocols
13 
14 struct pulseStretch {
16  float sr; //< stretch ratio
17  float onset;
18  float duration;
19  float rise;
20  float fall;
21 };
22 
23 struct isoStretch {
25 };
26 
29 } ;
30 
33 };
34 
35 typedef union _stretch {
42 
43 
44 void initializePulseStretch(float strain, float onset, float duration,
45  float rise, float fall, stretch *s);
47 
48 } // namespace limpet
49 
50 #endif
Define multiple ionic models to be used in different regions.
centralize time managment and output triggering
Definition: timer_utils.h:58
union limpet::_stretch stretch
void apply_stretch(MULTI_IF *miif, stretch *s, timer_manager *tm)
Definition: stretch.cc:40
void initializePulseStretch(float strain, float onset, float duration, float rise, float fall, stretch *s)
Definition: stretch.cc:23
_stretch_protocol
Definition: stretch.h:12
@ STRAIN_PULSE
Definition: stretch.h:12
@ AUXOTONIC
Definition: stretch.h:12
@ ISOMETRIC
Definition: stretch.h:12
@ ISOSARCOMETRIC
Definition: stretch.h:12
enum limpet::_stretch_protocol s_prtcl
s_prtcl prtcl
Definition: stretch.h:24
auxotonicStretch auxo
Definition: stretch.h:40
s_prtcl prtcl
Definition: stretch.h:36
isoStretch iso
Definition: stretch.h:38
isoSarcoStretch isoSarco
Definition: stretch.h:39
pulseStretch pulse
Definition: stretch.h:37