(* 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 = { Ln\[LetterSpace][t], NR[t], NRLc[t], NRLn[t], NRc[t], RE[t], REL[t] }; initialValues = { Ln\[LetterSpace][0] == 0.0, NR[0] == 83.5, NRLc[0] == 0.0, NRLn[0] == 0.0, NRc[0] == 83.5, RE[0] == 3.7, REL[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3, v\[LetterSpace]4, v\[LetterSpace]5, v\[LetterSpace]6 }; rateEquations = { v\[LetterSpace]1 -> k1*NRLn[t]*RE[t] - k2*REL[t], v\[LetterSpace]2 -> TR[Kapf, Lc, Kapb, Ln\[LetterSpace][t]]/Vnucleus, v\[LetterSpace]3 -> k12*Ln\[LetterSpace][t]*NR[t] - k22*NRLn[t], v\[LetterSpace]4 -> k13*Lc*NRc[t] - k23*NRLc[t], v\[LetterSpace]5 -> TR[Kapf4, NRc[t], Kapb4, NR[t]]/Vcytosol, v\[LetterSpace]6 -> TR[Kapf5, NRLc[t], Kapb5, NRLn[t]]/Vcytosol }; parameters = { EXTERNAL -> 0.0, Kapb -> 3.24*^-11, Kapb4 -> 5.4*^-12, Kapb5 -> 5.4*^-12, Kapf -> 3.24*^-11, Kapf4 -> 5.4*^-12, Kapf5 -> 5.4*^-12, Vcytosol -> 1.55*^-12, Vnucleus -> 4.5*^-13, k1 -> 60.0, k12 -> 60.0, k13 -> 60.0, k2 -> 60.0, k22 -> 60.0, k23 -> 60.0, Lc -> 0.005, default\[LetterSpace]compartment -> 1.0 }; assignments = { TR[Kapf_,Cvar_,Kapb_,Nvar_] -> Cvar*Kapf - Kapb*Nvar }; events = { }; speciesAnnotations = { }; reactionAnnotations = { }; units = { {"time" -> "min", "metabolite" -> "nmol/L", "extent" -> "nM"} }; (* Time evolution *) odes = { Ln\[LetterSpace]'[t] == 1.0*v\[LetterSpace]2 -1.0*v\[LetterSpace]3, NR'[t] == 3.44444444444444*v\[LetterSpace]5 -1.0*v\[LetterSpace]3, NRLc'[t] == 1.0*v\[LetterSpace]4 -1.0*v\[LetterSpace]6, NRLn'[t] == 1.0*v\[LetterSpace]3 +3.44444444444444*v\[LetterSpace]6 -1.0*v\[LetterSpace]1, NRc'[t] == -1.0*v\[LetterSpace]5 -1.0*v\[LetterSpace]4, RE'[t] == -1.0*v\[LetterSpace]1, REL'[t] == 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]}]