(* 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 = { y[t], z[t] }; initialValues = { y[0] == 1.4, z[0] == 0.1 }; rates = { reaction\[LetterSpace]0000001, reaction\[LetterSpace]0000002, reaction\[LetterSpace]0000003, reaction\[LetterSpace]0000004, reaction\[LetterSpace]0000005, reaction\[LetterSpace]0000006 }; rateEquations = { reaction\[LetterSpace]0000001 -> beta*Cytosol*v1, reaction\[LetterSpace]0000002 -> Cytosol*v0, reaction\[LetterSpace]0000003 -> Cytosol*kf*y[t], reaction\[LetterSpace]0000004 -> (intracellular\[LetterSpace]Ca\[LetterSpace]storepool*VM2*z[t]^n)/(K2^n + z[t]^n), reaction\[LetterSpace]0000005 -> (Cytosol*VM3*y[t]^m*z[t]^p)/((KR^m + y[t]^m)*(KA^p + z[t]^p)), reaction\[LetterSpace]0000006 -> extracellular*k*z[t] }; parameters = { K2 -> 1.0, KA -> 0.9, KR -> 2.0, VM2 -> 65.0, VM3 -> 500.0, flag -> 0.0, k -> 10.0, kf -> 1.0, m -> 2.0, n -> 2.0, p -> 4.0, tstim -> 4.0, v0 -> 1.0, v1 -> 7.3, Cytosol -> 1.0, extracellular -> 1.0, intracellular\[LetterSpace]Ca\[LetterSpace]storepool -> 1.0 }; assignments = { beta -> (0.96*flag)/E^(0.2*(t - tstim)) }; events = { }; speciesAnnotations = { y[t]->"http://identifiers.org/obo.chebi/CHEBI:29108", y[t]->"http://identifiers.org/kegg.compound/C00076", z[t]->"http://identifiers.org/obo.chebi/CHEBI:29108", z[t]->"http://identifiers.org/kegg.compound/C00076" }; reactionAnnotations = { }; units = { {"time" -> "", "metabolite" -> "", "extent" -> ""} }; (* Time evolution *) odes = { y'[t] == 1.0*reaction\[LetterSpace]0000004 -1.0*reaction\[LetterSpace]0000003 -1.0*reaction\[LetterSpace]0000005, z'[t] == 1.0*reaction\[LetterSpace]0000001 +1.0*reaction\[LetterSpace]0000002 +1.0*reaction\[LetterSpace]0000003 +1.0*reaction\[LetterSpace]0000005 -1.0*reaction\[LetterSpace]0000004 -1.0*reaction\[LetterSpace]0000006 }; 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]}]