Library of routines for calculating responses to concentration jumps.
Calculate weighted components for relaxation for each state p * An.
Parameters : | k : int
A : array-like, shape (k, k, k)
p_occup : array-like, shape (k, 1)
|
---|---|
Returns : | w : ndarray, shape (k, k) |
Write output to text file as lines of t,j,p0,p1,p2....pn,pOpen with option to omit arguments.
Parameters : | cjump : dictionary
relax : dictionary
kA : int
offset : float
output_option : int
|
---|---|
Returns : | lines : a list of strings |
Convert concentration profile and relaxation dictionaries into arrays.
Parameters : | cjump : dictionary
relax : dictionary
kA : int
|
---|---|
Returns : | t : ndarray, shape(dict length, 1)
cj : ndarray, shape(dict length, 1)
rl : ndarray, shape(dict length, 1)
|
Accurate, fast approximation of the error function from http://www.johndcook.com/blog/2009/01/19/stand-alone-error-function-erf/
Parameters : | x : float |
---|---|
Returns : | float : |
Construct a “top-hat” pulse with rise and fall from error function.
Parameters : | pulse_width : int
pulse_conc : float
rise_t : float
centre : int
time_step : int
|
---|---|
Returns : | z : dictionary (key- float, value- float)
|
testing - make a family of pulses to examine properties alternate main() no arguments returns nothing
Generate a dictionary containing concentration jump profile.
Parameters : | pa : dictionary
|
---|---|
Returns : | cjump : dictionary
|
Parameters : | cjump : dictionary
mec : dcpyps.Mechanism
paras : dictionary
|
---|---|
Returns : | relax : dictionary
|
Calculate a single concentration jump and a single relaxation.
Parameters : | mec : dcpyps.Mechanism
parameters : dictionary
|
---|---|
Returns : | cjump : dictionary
relax : dictionary |