MultiChua¶
Systems / ODEs / Chaotic attractors
A ring of Chua circuits coupled through their x-variables — multi-scroll chaos and synchronization from linked double-scroll units.
Start here¶
import tsdynamics as ts
system = ts.systems.MultiChua()
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.
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.
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": 9,
"final_time": 400.0,
"transient": 100.0,
"dt": 0.1,
"ic": [
-0.0992686992430139,
-0.009460609643708252,
0.012315441691339468,
-0.05311712744556865,
-0.02666164994868654,
-0.016417856787526986,
0.024953456074616322,
0.07329246870974614,
-0.06541599404512158
],
"rtol": 1e-09,
"atol": 1e-12,
"solver": "rk45"
}
Preparation
{
"seed": 1115398726,
"ic_policy": "declared/in-basin start, else seeded small ball"
}
Estimator runtime in the recorded environment: 0.3599 s.
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": 9,
"final_time": 400.0,
"transient": 100.0,
"dt": 0.1,
"ic": [
-0.0992686992430139,
-0.009460609643708252,
0.012315441691339468,
-0.05311712744556865,
-0.02666164994868654,
-0.016417856787526986,
0.024953456074616322,
0.07329246870974614,
-0.06541599404512158
],
"rtol": 1e-09,
"atol": 1e-12,
"solver": "rk45"
}
0 stable · 24 unstable · 0 marginal / undetermined
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.0438 s.
Recorded parameters and software
{
"parameters": {
"alpha": 15.6,
"beta": 28.0,
"m0": -1.143,
"m1": -0.714,
"kappa": 0.1,
"n_circuits": 3
},
"parameter_expressions": {},
"state_dimension": 9,
"explicit_time": false,
"library_version": "6.0.3",
"python": "3.14.8",
"numpy": "2.4.4",
"scipy": "1.17.1",
"protocol_version": 1
}Definition¶
@staticmethod
def _equations(Y, t, *, alpha, beta, m0, m1, kappa, n_circuits):
"""
Right-hand side of the MultiChua model.
X: State vector [x1, y1, z1, x2, y2, z2, ..., xn, yn, zn]
"""
dim = 3 * n_circuits
dXdt = [None] * dim
for i in range(n_circuits):
# Extract indices for the current circuit
x_idx = 3 * i
y_idx = x_idx + 1
z_idx = x_idx + 2
# State variables for this circuit
x = Y(x_idx)
y = Y(y_idx)
z = Y(z_idx)
# Coupled neighbor indices (periodic boundary conditions)
x_prev = Y((x_idx - 3) % dim) # Previous x (cyclic indexing)
x_next = Y((x_idx + 3) % dim) # Next x (cyclic indexing)
# Nonlinear Chua diode function
ramp_x = m1 * x + 0.5 * (m0 - m1) * (abs(x + 1) - abs(x - 1))
# Chua equations with coupling
xdot = alpha * (y - x - ramp_x) + kappa * (x_next - x_prev)
ydot = x - y + z
zdot = -beta * y
# Assign derivatives
dXdt[x_idx] = xdot
dXdt[y_idx] = ydot
dXdt[z_idx] = zdot
return dXdt
Parameters¶
| Symbol | Default | Role |
|---|---|---|
alpha |
15.6 |
Chua circuit parameter |
beta |
28 |
Chua circuit parameter |
m0 |
-1.143 |
inner slope of the Chua diode |
m1 |
-0.714 |
outer slope of the Chua diode |
kappa |
0.1 |
ring coupling strength |
n_circuits |
3 |
number of circuits in the ring (structural — changing it recompiles) |
Explore further¶
- Lyapunov spectra and Kaplan–Yorke dimension — measure separation rates, then check convergence with a longer run.
- Fixed points and stability — find the equilibria or fixed points that organize the dynamics.
- Plotting and export — choose components, style a figure, or save it for a paper.
- Find a compatible analysis with
ts.analysis.find(system)orts.analysis.find(traj).
Reference¶
Yalçın, Suykens & Vandewalle (2005), Cellular Neural Networks, Multi-Scroll Chaos and Synchronization, World Scientific
doi:10.1142/9789812567741