(* 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], NRLn[t], NRn[t], RE[t], REL[t] }; initialValues = { Ln\[LetterSpace][0] == 0.0, NRLn[0] == 0.0, NRn[0] == 370.0, RE[0] == 3.7, REL[0] == 0.0 }; rates = { v\[LetterSpace]1, v\[LetterSpace]2, v\[LetterSpace]3 }; 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 -> -(k22*NRLn[t]) + k12*Ln\[LetterSpace][t]*NRn[t] }; parameters = { Kapb -> 3.24*^-11, Kapf -> 3.24*^-11, Vcytosol -> 1.55*^-12, Vnucleus -> 4.5*^-13, k1 -> 60.0, k12 -> 60.0, k2 -> 60.0, k22 -> 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, NRLn'[t] == 1.0*v\[LetterSpace]3 -1.0*v\[LetterSpace]1, NRn'[t] == -1.0*v\[LetterSpace]3, 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]}]