Search arXiv⌕ Search

arXiv · 0704.3182

Python for Education: Computational Methods for Nonlinear Systems

Abstract

We describe a novel, interdisciplinary, computational methods course that uses Python and associated numerical and visualization libraries to enable students to implement simulations for a number of different course modules. Problems in complex networks, biomechanics, pattern formation, and gene regulation are highlighted to illustrate the breadth and flexibility of Python-powered computational environments.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Christopher R. Myers, James. P. Sethna. 2007-04-24. Python for Education: Computational Methods for Nonlinear Systems. https://arxiv.org/abs/0704.3182

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Testing the consistency of the resonant wave interaction approximation with simulated dynamics of idealized 2D internal wave fields

Nonlinear interactions of internal ocean waves play an important role in ocean mixing and are of theoretical interest even in idealized settings. According to the resonant wave interaction approximation, which is commonly used to derive the kinetic equation for the energy spectrum, the dominant interactions are between wave triads whose wavevectors satisfy $\mathbf{k}=\mathbf{p}+\mathbf{q}$, and whose frequencies satisfy $ω_{\mathbf{k}} = |ω_{\mathbf{p}}\pmω_{\mathbf{q}}|$. In order to test the validity of the resonant wave interaction approximation, we examine several analytical derivations of the theory. The assumptions underlying each derivation are tested using idealized direct 2D, non-rotating numerical simulations, representing near-observed energy levels of the oceanic internal wave field. We show that the slow-amplitude assumptions underlying the derivations are inconsistent with the simulated dynamics in this particular set of simulations. In addition, most of the triads satisfying the resonant conditions do not contribute significantly to nonlinear wave energy transfer in our idealized 2D simulations, while some interactions that are dominant in nonlinear energy transfers do not satisfy the resonance conditions. Understanding the relevance of these results to the observed 3D rotating ocean internal wave field requires further study.

nlin.CD↗

A Second-Order Asymptotic Expansion for Nonlinear Filtering in the Lorenz--63 System

A challenge in nonlinear filtering is to incorporate nonlinear effects into approximations of the conditional mean while retaining a finite-dimensional recursive algorithm. We derive a second-order asymptotic expansion of the filtering mean with respect to the system-noise intensity. We apply this expansion to the Lorenz--63 model, a prototypical three-dimensional chaotic dynamical system. The first-order approximation is computed using a Kalman--Bucy filter for the system linearized around the deterministic reference trajectory. The second-order correction incorporates the Hessian of the Lorenz--63 drift and is computed through a closed recursive system with 3+9+18=30 independent scalar components. The full system, including the reference trajectory and the first-order mean and covariance, has 42 independent scalar components. To support stable tracking of chaotic trajectories over long time intervals, we introduce recentering of the expansion and redistribution of Gaussian components between expansion orders. In the numerical experiments, we compare the proposed algorithm with an ensemble transform Kalman filter (ETKF) as a practical benchmark and a particle filter (PF) as a numerical reference. Under the full-observation settings, the proposed algorithm achieves a lower root-mean-square error relative to the truth and a smaller distance to the 10,000-particle PF reference than the 20-member ETKF. These results suggest that the proposed second-order extension of Kalman filtering has the potential to balance filtering accuracy and computational cost.

nlin.CD↗

Heterogeneity-induced chaos in globally coupled Stuart--Landau oscillators

We show that linear-growth-rate heterogeneity combined with complex global coupling can generate quasiperiodicity and chaos in a finite population of Stuart-Landau oscillators with identical natural frequencies and no Kerr-type nonlinear frequency shift. Lyapunov spectra identify limit cycles, quasiperiodic tori, and chaotic attractors, while the order-parameter amplitude exhibits signatures consistent with period-doubling-like transitions towards chaos. We further derive a finite-size invariant manifold of vanishing-order-parameter phase-locked solutions represented by closed polygons with fixed side lengths and demonstrate their configuration-dependent transverse stability. Ensemble sampling reveals pronounced coexistence among polygonal and ordinary phase-locked cycles, quasiperiodic tori, and chaotic attractors. An amplitude-time rescaling identifies the leading parameter approximately organizing the regime boundaries and the similar bifurcation and multistability patterns. These results advance our understanding of collective dynamics in amplitude-inclusive oscillator networks by revealing how heterogeneity and complex coupling jointly shape dynamical complexity, bifurcation structure, and multistability.

nlin.CD↗