(* 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 = { EpoR[t], SAv[t], SAv\[LetterSpace]EpoR[t], SAv\[LetterSpace]EpoRi[t], dSAve[t], dSAvi[t] }; initialValues = { EpoR[0] == 76.0, SAv[0] == 999.293, SAv\[LetterSpace]EpoR[0] == 0.0, SAv\[LetterSpace]EpoRi[0] == 0.0, dSAve[0] == 0.0, dSAvi[0] == 0.0 }; rates = { reaction\[LetterSpace]1, reaction\[LetterSpace]2, reaction\[LetterSpace]3, reaction\[LetterSpace]4, reaction\[LetterSpace]5, reaction\[LetterSpace]6, reaction\[LetterSpace]7, reaction\[LetterSpace]8 }; rateEquations = { reaction\[LetterSpace]1 -> Bmax\[LetterSpace]SAv*cell*kt, reaction\[LetterSpace]2 -> cell*kt*EpoR[t], reaction\[LetterSpace]3 -> cell*kon\[LetterSpace]SAv*EpoR[t]*SAv[t], reaction\[LetterSpace]4 -> cell*koff\[LetterSpace]SAv*SAv\[LetterSpace]EpoR[t], reaction\[LetterSpace]5 -> cell*kt*SAv\[LetterSpace]EpoR[t], reaction\[LetterSpace]6 -> cell*kex\[LetterSpace]SAv*SAv\[LetterSpace]EpoRi[t], reaction\[LetterSpace]7 -> cell*kdi*SAv\[LetterSpace]EpoRi[t], reaction\[LetterSpace]8 -> cell*kde*SAv\[LetterSpace]EpoRi[t] }; parameters = { Bmax\[LetterSpace]SAv -> 76.0, kde -> 0.0164042, kdi -> 0.00317871, kex\[LetterSpace]SAv -> 0.01101, koff\[LetterSpace]SAv -> 0.00679946, kon\[LetterSpace]SAv -> 2.29402*^-06, kt -> 0.0329366, cell -> 1.0, cellsurface -> 1.0, medium -> 1.0 }; assignments = { SAv\[LetterSpace]cells -> dSAvi[t] + SAv\[LetterSpace]EpoRi[t], SAv\[LetterSpace]medium -> dSAve[t] + SAv[t] }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { EpoR'[t] == 1.0*reaction\[LetterSpace]1 +1.0*reaction\[LetterSpace]4 -1.0*reaction\[LetterSpace]2 -1.0*reaction\[LetterSpace]3, SAv'[t] == 1.0*reaction\[LetterSpace]4 +1.0*reaction\[LetterSpace]6 -1.0*reaction\[LetterSpace]3, SAv\[LetterSpace]EpoR'[t] == 1.0*reaction\[LetterSpace]3 -1.0*reaction\[LetterSpace]4 -1.0*reaction\[LetterSpace]5, SAv\[LetterSpace]EpoRi'[t] == 1.0*reaction\[LetterSpace]5 -1.0*reaction\[LetterSpace]6 -1.0*reaction\[LetterSpace]7 -1.0*reaction\[LetterSpace]8, dSAve'[t] == 1.0*reaction\[LetterSpace]8 , dSAvi'[t] == 1.0*reaction\[LetterSpace]7 }; 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]}]