openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Classes | Namespaces | Macros | Typedefs | Functions
MULTI_ION_IF.h File Reference

Define multiple ionic models to be used in different regions. More...

#include <ctime>
#include <cstdarg>
#include <cstddef>
#include <string>
#include <sys/resource.h>
#include "ION_IF.h"
#include "timer_utils.h"
#include "fem_types.h"
#include "sf_interface.h"
Include dependency graph for MULTI_ION_IF.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  limpet::SV_DUMP
 data structure to manage state variable file dumps More...
 
struct  limpet::Trace_Info
 data structure to manage trace dumps. Should eventually be combined with the state variable dumps, but I'm keeping it separate for now for my own sanity. More...
 
class  limpet::MULTI_IF
 

Namespaces

 limpet
 

Macros

#define FARADAY   96485
 Faraday's constant. More...
 
#define USED_DAT(I, F)   ( (I)->get_reqdat()&F || (I)->get_moddat()&F)
 
#define get_plug_params(M, R, P)   (P ## _Params *)get_IIF_plugparam(*(M.IIF[R]), P ## _ID)
 
#define SVD_add(I, R, T, M)
 

Typedefs

typedef double limpet::Real
 

Functions

void limpet::doppel_MIIF (MULTI_IF *orig, MULTI_IF *miif_doppel)
 
void limpet::doppel_update (MULTI_IF *orig, MULTI_IF *miif_doppel)
 
void limpet::free_doppel (MULTI_IF *m)
 
void limpet::dup_IMP_node_state (IonIfBase &IF, int from, int to, GlobalData_t **localdata)
 
void * limpet::get_IIF_plugparam (IonIfBase &, int)
 
int limpet::get_plug_flag (char *plgstr, int *out_num_plugins, IonTypeList &out_plugins)
 
int limpet::IMPdataLabel2Index (const char *sv)
 
char * limpet::tokstr_r (char *s1, const char *s2, char **lasts)
 
void limpet::open_trace (MULTI_IF *MIIF, int n_traceNodes, int *traceNodes, int *label, opencarp::sf_mesh *imesh)
 Set up ionic model traces at some global node numbers. More...
 
void limpet::dump_trace (MULTI_IF *MIIF, limpet::Real time)
 

Detailed Description

Define multiple ionic models to be used in different regions.

Author
Edward Vigmond
Version
Date
2019-10-25

Definition in file MULTI_ION_IF.h.

Macro Definition Documentation

◆ FARADAY

#define FARADAY   96485

Faraday's constant.

Definition at line 147 of file MULTI_ION_IF.h.

◆ get_plug_params

#define get_plug_params (   M,
  R,
 
)    (P ## _Params *)get_IIF_plugparam(*(M.IIF[R]), P ## _ID)

get the parameter structure for a plug-in

This is a wrapper for get_IIF_plugparam() that casts the void pointer to the proper type

Parameters
MMIIF
Rinteger specifying region
Pplug-in
Returns
pointer to parameter structure cast to proper type

Definition at line 314 of file MULTI_ION_IF.h.

◆ SVD_add

#define SVD_add (   I,
  R,
  T,
 
)
Value:
{T ## _state *sv; int dtype = 0; sv_dump_add(&I, R, \
T ## _ID, offsetof(T ## _state, \
M), \
sizeof(sv->M), dtype, # R "." # T "." # M, # T, \
# R); }
#define offsetof(TYPE, MEMBER)
Definition: ION_IF.cc:109

add a variable to the list of state variables to be dumped

This is a fancy wrapper for sv_dump_add()

Parameters
IMIIF
Rinteger region identifier
TIMP name
Mmember name

Definition at line 326 of file MULTI_ION_IF.h.

◆ USED_DAT

#define USED_DAT (   I,
 
)    ( (I)->get_reqdat()&F || (I)->get_moddat()&F)

test if a global data vector is used

\param I IMP \param F flag

Definition at line 301 of file MULTI_ION_IF.h.