Data Structures | Functions

ne_sim_gslode.h File Reference

Continuous time networks dynamics simulatior. More...

#include "ne_std.h"
#include "ne_sys.h"
#include "ne_dyn_vec.h"
#include <gsl/gsl_odeiv.h>

Go to the source code of this file.

Data Structures

struct  ne_sim_gslode_params_t
 ODE solver simulation parameters structure. More...

Functions

ne_sim_gslode_params_tne_sim_gslode_params_alloc (const gsl_odeiv_step_type *step, double eps_abs, double eps_rel, double length, ne_bool_t fixedStep, double initStep, double minStep)
 Allocates the structure required to perform the integration.
void ne_sim_gslode_params_free (ne_sim_gslode_params_t *params)
 Free the memory used by the solver strucutre.
ne_dyn_vec_tne_sim_gslode (ne_sys_t *sys, void *params, double *iy, FILE *file)
 Continuous time simulator function.
int ne_sim_gslode_sys_fn (double t, const double y[], double dydt[], void *params)

Detailed Description

Continuous time networks dynamics simulatior.

The numerical ODE solver used for the simulation of continuous dynamics. The solver is taken from the GSL library allowing for many differing stepping methods to be chosen at run-time with user-defined error tolerances.

Author:
T.E. Gorochowski

Definition in file ne_sim_gslode.h.


Function Documentation

ne_dyn_vec_t* ne_sim_gslode ( ne_sys_t sys,
void *  params,
double *  iy,
FILE *  file 
)

Continuous time simulator function.

Definition at line 59 of file ne_sim_gslode.c.

ne_sim_gslode_params_t* ne_sim_gslode_params_alloc ( const gsl_odeiv_step_type *  step,
double  eps_abs,
double  eps_rel,
double  length,
ne_bool_t  fixedStep,
double  initStep,
double  minStep 
)

Allocates the structure required to perform the integration.

Definition at line 29 of file ne_sim_gslode.c.

void ne_sim_gslode_params_free ( ne_sim_gslode_params_t params  ) 

Free the memory used by the solver strucutre.

Definition at line 52 of file ne_sim_gslode.c.