(* 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 = { HTA[t], MG[t], SDLTSH[t], TSH2[t] }; initialValues = { HTA[0] == 0.14, MG[0] == 0.0, SDLTSH[0] == 0.0, TSH2[0] == 0.9 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4, v\[LetterSpace]5, v\[LetterSpace]6 }; rateEquations = { v\[LetterSpace]1 -> DHAP*k1, v\[LetterSpace]2 -> GAP*k2, v\[LetterSpace]3 -> k3*MG[t]*TSH2[t], v\[LetterSpace]4 -> k4*HTA[t], v\[LetterSpace]5 -> (V5*HTA[t])/(Km5 + HTA[t]), v\[LetterSpace]6 -> (V6*SDLTSH[t])/(Km6 + SDLTSH[t]) }; parameters = { Km5 -> 0.506, Km6 -> 0.196, V5 -> 6.084, V6 -> 5.306, k1 -> 0.0064, k2 -> 0.00066, k3 -> 0.34, k4 -> 1.01, DHAP -> 0.16, GAP -> 0.0072, default\[LetterSpace]compartment -> 1.0 }; assignments = { }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "min", "metabolite" -> "mM/", "extent" -> "mM"} }; (* Time evolution *) odes = { HTA'[t] == 1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]4, MG'[t] == 1.0*v\[LetterSpace]2 +1.0*v\[LetterSpace]4 +1.0*v\[LetterSpace]1 -1.0*v\[LetterSpace]3, SDLTSH'[t] == 1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]6, TSH2'[t] == 1.0*v\[LetterSpace]6 +1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]3 }; 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]}]