DoubleWell¶
Systems / SDEs / Noise-driven systems
A particle in a bistable potential driven by noise — noise-induced switching between the two wells.
Start here¶
import tsdynamics as ts
system = ts.systems.DoubleWell()
traj = system.run(final_time=200.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.
seed=0 fixes the noise realization. For SDEs, dt controls both the numerical step and output spacing; compare smaller steps before interpreting a statistic.
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.
state-dependent
Method and evidence
Trace of the drift Jacobian; stochastic path contraction also depends on diffusion.
Recorded parameters and software
{
"parameters": {
"a": 1.0,
"b": 1.0,
"sigma": 0.5
},
"parameter_expressions": {},
"state_dimension": 1,
"explicit_time": false,
"library_version": "6.0.3",
"python": "3.14.8",
"numpy": "2.4.4",
"scipy": "1.17.1",
"protocol_version": 1
}Definition¶
Parameters¶
| Symbol | Default | Role |
|---|---|---|
a |
1 |
curvature of the potential at the origin (barrier / well locations) |
b |
1 |
quartic stiffness confining the wells |
sigma |
0.5 |
noise amplitude (sets the escape rate) |
State variables: x
Explore further¶
- Integration methods — choose a numerical scheme and compare seeded sample paths.
- 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¶
Kramers (1940), Physica 7, 284-304
doi:10.1016/S0031-8914(40)90098-2