Skip to content

CircadianRhythm

Systems / ODEs / Chemical & biological systems

A molecular circadian clock — entrainable biochemical oscillation.

continuous · ODE5 dimensionsoscillatory

Start here

Python
import tsdynamics as ts

system = ts.systems.CircadianRhythm()
traj = system.run(final_time=20.0, dt=0.01, seed=0)
ts.plot(traj)

traj.t contains the sample times and traj.y the state array; system.info shows the defaults. In a notebook the last line displays the plot. In a Python script, call .show() on it to open a window, or .save("trajectory.svg") to export it.

With an adaptive ODE solver, dt sets the output spacing; rtol and atol control local integration error. For a fixed-step solver, reduce dt to check numerical convergence.

projection (m, fc, fn)
projection (m, fs, fn)

Interactive: drag to rotate

This finite simulation illustrates one initial condition and view. The diagnostics below report their own inputs and observation windows.

Dynamics at the default parameters

Lyapunov exponents measure separation rates along an orbit. The Kaplan–Yorke dimension is derived from those rates, not a direct geometric measurement. Finite runs depend on the initial condition, transient and observation window; a value near zero needs a convergence check.

Lyapunov spectrum
Finite-time / numerical estimate
$-0.002665,\; -0.004017,\; -0.11,\; -0.2117,\; -1.04$
per time unit
Method and evidence

Benettin QR tangent dynamics

Finite-time estimate, not a convergence certificate. All state-space directions were computed.

Settings

{
  "backend": "jit",
  "k": 5,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    -0.011283026625757687,
    -0.09330580276446483,
    0.047731405203201384,
    -0.09108115652546754,
    0.09686617130511305
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "rk45"
}

Preparation

{
  "seed": 1711808141,
  "ic_policy": "declared/in-basin start, else seeded small ball"
}

Estimator runtime in the recorded environment: 0.1283 s.

Kaplan–Yorke dimension
Finite-time / numerical estimate
$D_{KY} = 0$
Method and evidence

Kaplan–Yorke interpolation of the recorded spectrum

Lyapunov dimension estimate; equality with a fractal or information dimension requires additional dynamical assumptions.

Settings

{
  "backend": "jit",
  "k": 5,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    -0.011283026625757687,
    -0.09330580276446483,
    0.047731405203201384,
    -0.09108115652546754,
    0.09686617130511305
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "rk45"
}
Divergence ∇·f
Symbolic
$\nabla\!\cdot f = \frac{fn vdn}{fn^{2} + 2 fn kdn + kdn^{2}} + \frac{fs vd}{fs^{2} + 2 fs kd + kd^{2}} - k - k_{1} - k_{2} + \frac{m vm}{km^{2} + 2 km m + m^{2}} - \frac{vd}{fs + kd} - \frac{vdn}{fn + kdn} - \frac{vm}{km + m}$
state-dependent
Equilibria / fixed points
Finite-time / numerical estimate
none found in this search
Method and evidence

A seeded numerical search, not a completeness proof. Stability means linear asymptotic stability. Marginal/nonhyperbolic roots have no nonlinear stability verdict from this linearisation.

max Re(eigenvalue) for flows; max |multiplier| - 1 for maps. Boundary band: 1e-7 * max(1, max |eigenvalue|).

Settings

{
  "method": "newton",
  "n_seeds": 80,
  "seed": 0
}

Estimator runtime in the recorded environment: 0.0392 s.

Recorded parameters and software
{
  "parameters": {
    "Ki": 1,
    "k": 0.5,
    "k1": 0.3,
    "k2": 0.15,
    "kd": 1.4,
    "kdn": 0.4,
    "km": 0.4,
    "ks": 1,
    "n": 4,
    "vd": 6,
    "vdn": 1.5,
    "vm": 0.7,
    "vmax": 4.7,
    "vmin": 1.0,
    "vs": 6
  },
  "parameter_expressions": {},
  "state_dimension": 5,
  "explicit_time": false,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

\[ \begin{aligned} \dot{m} &= \frac{2.5 Ki^{n} \left(vmax - vmin\right) \left(vmin + 0.5 \cos{\left(th \right)} + 0.5\right)}{Ki^{n} + fn^{n}} - \frac{m vm}{km + m} \\ \dot{fc} &= - fc k - fc k_{1} + fn k_{2} + ks m \\ \dot{fs} &= fc k - \frac{fs vd}{fs + kd} \\ \dot{fn} &= fc k_{1} - fn k_{2} - \frac{fn vdn}{fn + kdn} \\ \dot{th} &= \frac{\pi}{12} \end{aligned} \]

Parameters

Symbol Default Role
Ki 1 threshold for repression by nuclear PER
k 0.5 phosphorylation / turnover rate of cytosolic PER
k1 0.3 transport rate of PER into the nucleus
k2 0.15 transport rate of PER out of the nucleus
kd 1.4 Michaelis constant of cytosolic PER degradation
kdn 0.4 Michaelis constant of nuclear PER degradation
km 0.4 Michaelis constant of mRNA degradation
ks 1 rate of PER synthesis from mRNA
n 4 Hill coefficient of transcriptional repression
vd 6 maximum degradation rate of cytosolic PER
vdn 1.5 maximum degradation rate of nuclear PER
vm 0.7 maximum rate of mRNA degradation
vmax 4.7 upper bound of the phase-modulated transcription rate
vmin 1 lower bound of the phase-modulated transcription rate
vs 6 maximum rate of mRNA synthesis

State variables: m, fc, fs, fn, th

Explore further

Reference

Leloup, Gonze & Goldbeter (1999); Gonze, Leloup & Goldbeter (2000)
doi:10.1177/074873099129000948

BibTeX
BibTeX
@misc{circadianrhythm,
  title = {CircadianRhythm system},
  note = {Leloup, Gonze & Goldbeter (1999); Gonze, Leloup & Goldbeter (2000)},
  doi = {10.1177/074873099129000948}
}