(* 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 = { T[t], g[t] }; initialValues = { T[0] == 0.0489547, g[0] == 12.2751 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3 }; rateEquations = { v\[LetterSpace]1 -> k1, v\[LetterSpace]2 -> k2*g[t]*T[t], v\[LetterSpace]3 -> (k3*T[t])/(k4 + T[t]) }; parameters = { k1 -> 0.36, k2 -> 0.02, k3 -> 6.0, k4 -> 13.0, s -> 1.0, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { T'[t] == 2.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]3, g'[t] == 1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2 }; 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]}]