There are three functions that are mandatory even in the most simple case:

void initialize_MIIF( MULTI_IF * );

Allocates data structures, finds vertex list belonging to each ionic model and initializes model parameters with default values.

void initialize_currents( MULTI_IF *MIIF, float dt );

Allocates data vectors that are globally defined (typically, this is Vm, but LIMPET supports
also strain Λ,Tension, [K]e, [Na]e, [Ca]e as global vectors), initializes these data and calls routines to initialize the state of all ionic models.

void compute_ionic_current( MULTI_IF *pMIIF );

This is the actual integration routine that is called in the main loop. This function loops over all ionic models and advances the solution by a single time step dt.
Optional calls:

void tune_IMPs( ION_IF *, const char *im_pars, const char *plgs, const char

Parses the modifier strings and overrules the default settings of model parameters.

void dump_MIIF( MULTI_IF *, char *, int, const fn double tm);

A call to this routine writes a checkpoint file that can be used to restart a simulation from there.

float restore_MIIF( MULTI_IF *, const char *, int );

This routine restarts a simulation from a previously generated checkpoint file.

void read_sv( MULTI_IF *m, int reg, const char *fn );

Reads in a single cell state vector from a file and spreads this state out over an enire region of a model.

void save_sv( MULTI_IF *m, int reg, const char *fn );

Saves the state of the vertex 0 in a region. This single cell state vector can be read in later to initialize the state vector of an ionic model in a region.
[LIMPET API] . previous page . next page .