openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
clamp.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 CLAMP_H
5 #define CLAMP_H
6 
7 #include "trace.h"
8 #include "timer_utils.h"
9 #include "sf_interface.h"
10 
11 namespace limpet {
12 
13 struct Clamp {
14  double val_pre;
15  double val;
16  double val_post;
17  double start;
18  double dur;
19  double tau;
20  char *file;
22  int transient;
23  char *sv;
24  int impDataID;
25 };
26 
27 
28 bool initialize_clamp(Clamp *cl, double cl_val, double ini_val, double start, double dur, const char *f,int,float*);
30 void initialize_sv_clamp(Clamp *cl, const char *sv, char *f, double);
31 void sv_clamp( Clamp *cl, opencarp::timer_manager *tm, MULTI_IF*, bool trigger );
32 void initialize_AP_clamp(Clamp *cl, char *f, double);
33 void AP_clamp( Clamp *cl, opencarp::timer_manager *tm, opencarp::sf_vec *v, bool trigger );
34 int process_sv_clamps( char *SVs, char *files, Clamp **clamps, double dt );
35 
36 } // namespace limpet
37 
38 #endif
centralize time managment and output triggering
Definition: timer_utils.h:58
void clamp_signal(MULTI_IF *pMIIF, Clamp *cl, timer_manager *tm)
Definition: clamp.cc:54
void sv_clamp(Clamp *cl, timer_manager *tm, MULTI_IF *miif, bool trigger)
Definition: clamp.cc:123
bool initialize_clamp(Clamp *cl, double cl_val, double ini_val, double start, double dur, const char *f, int trans, float *duration)
Definition: clamp.cc:30
int process_sv_clamps(char *SVs, char *files, Clamp **clamps, double dt)
Definition: clamp.cc:182
void initialize_AP_clamp(Clamp *cl, char *f, double)
void initialize_sv_clamp(Clamp *cl, const char *sv, char *file, double dt)
Definition: clamp.cc:102
void AP_clamp(Clamp *cl, timer_manager *tm, sf_vec *v, bool trigger)
Definition: clamp.cc:163
Interface to SlimFem.
int impDataID
Definition: clamp.h:24
double tau
Definition: clamp.h:19
double val_post
Definition: clamp.h:16
double start
Definition: clamp.h:17
double val
Definition: clamp.h:15
double val_pre
Definition: clamp.h:14
double dur
Definition: clamp.h:18
char * file
Definition: clamp.h:20
trace tr
Definition: clamp.h:21
char * sv
Definition: clamp.h:23
manage input, output, resampling of traces
Definition: trace.h:10
Timers and timer manager.