(* 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 = { e[t], ez[t], w[t], z[t] }; initialValues = { e[0] == 0.0, ez[0] == 0.0, w[0] == 0.0, z[0] == 2.4*^-05 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3 }; rateEquations = { v\[LetterSpace]1 -> k1*z[t], v\[LetterSpace]2 -> -(k22*ez[t]) + k21*e[t]*z[t], v\[LetterSpace]3 -> k3*ez[t] }; parameters = { k1 -> 0.004, k21 -> 1000.0, k22 -> 0.00021, k3 -> 0.00054, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { e'[t] == 2.0*v\[LetterSpace]3 +1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]2, ez'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]3, w'[t] == 1.0*v\[LetterSpace]3 +1.0*v\[LetterSpace]1 , z'[t] == -1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]1 }; 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]}]