Back to the main Index

Steady state scan

te.ParameterScan.SteadyStateScan scans the steady state.


In [2]:
%matplotlib inline
import tellurium as te

r = te.loada('''
    $Xo -> S1; vo;
    S1 -> S2; k1*S1 - k2*S2;
    S2 -> $X1; k3*S2;
    
    vo = 1
    k1 = 2; k2 = 0; k3 = 3;
''')

p = te.SteadyStateScan(r,
    value = 'k3',
    startValue = 2,
    endValue = 3,
    numberOfPoints = 20,
    selection = ['S1', 'S2']                      
)
p.plotArray()
result = p.collect_plotArray_result()