| MathSBML Home Page | MathSBML Site Map |
resetIC |
|
resetIC[model, variable, value] resets the initial condition of variable in model, which is the output of SBMLRead. resetIC[model, variable→value] is equivalent to resetIC[model, variable, value]. resetIC[model, {var1→value1,var2→value2,...}] will reset a set of initial conditions to the specified values. resetIC new in version 2.5.15 ExampleDownload notebook file
newModel[];
addCompartment[C1, size -> 1];
addSpecies[A, initialAmount -> 100];
addSpecies[B, initialAmount -> 100];
addSpecies[X, initialAmount -> 0];
addParameter[K -> .5];
addReaction[A + B -> X, kineticLaw -> K*k*A*B, parameters -> {k -> 1}];
m = loadSimulator[context -> None, evaluateParameters -> False];
sim = SBMLNDSolve[m, .1]; SBMLPlot[sim];
[31 May 2006]
|