(* Generated by JWS Online *) (* This is an experimental feature of JWS Online. Please report any mistakes.*) (* Note that the following notable SBML entities or features are not supported in notebook outputyet: *) (* Events *) (* Constraints *) (* Units and UnitDefinitions *) (* AlgebraicRules *) (* conversionFactors *) variables = { NN[t], Nplus[t] }; initialValues = { NN[0] == 10.0, Nplus[0] == 0.0 }; rates = { v1, v2, v3, v4, v5 }; rateEquations = { v1 -> alpha*sigma, v2 -> dN*Nplus[t], v3 -> sigma, v4 -> p*NN[t], v5 -> dN*NN[t] }; parameters = { alpha -> 0.125, dN -> 0.001, p -> 0.00092, sigma -> 0.032, default -> 1.0 }; assignments = { ratio -> Nplus[t]/NN[t] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { NN'[t] == 1.0*v3 +1.0*v4 -1.0*v5, Nplus'[t] == 1.0*v1 -1.0*v2 }; timeCourse = NDSolve[Join[odes, initialValues]//.rateEquations//.assignments//.parameters, variables, {t, 0, 100}]; (* Steady-state solution initialized with result of time evolution *) findRootEquations = odes /.D[_[t],t]->0; findRootVariables = Partition[Flatten[{#, #/.timeCourse/.t->100} &/@variables],2]; steadyStateVariables = FindRoot[findRootEquations//.rateEquations//.assignments//.parameters, findRootVariables, MaxIterations->100] fluxes = #//.assignments//.parameters/.steadyStateVariables&/@rateEquations (* Plot the time evolution of the variables *) plotTable=Table[Plot[variables[[i]]/.parameters/.timeCourse,{t,0,100},PlotLegends->variables[[i]],PlotRange->Full],{i,Length[variables]}]