Search arXivSearch

arXiv · 2512.22635

amangkurat: A Python Library for Symplectic Pseudo-Spectral Solution of the Idealized (1+1)D Nonlinear Klein-Gordon Equation

Abstract

This study introduces amangkurat, an open-source Python library designed for the robust numerical simulation of relativistic scalar field dynamics governed by the nonlinear Klein-Gordon equation in $(1+1)$D spacetime. The software implements a hybrid computational strategy that couples Fourier pseudo-spectral spatial discretization with a symplectic Størmer-Verlet temporal integrator, ensuring both exponential spatial convergence for smooth solutions and long-term preservation of Hamiltonian structure. To optimize performance, the solver incorporates adaptive timestepping based on Courant-Friedrichs-Lewy (CFL) stability criteria and utilizes Just-In-Time (JIT) compilation for parallelized force computation. The library's capabilities are validated across four canonical physical regimes: dispersive linear wave propagation, static topological kink preservation in phi-fourth theory, integrable breather dynamics in the sine-Gordon model, and non-integrable kink-antikink collisions. Beyond standard numerical validation, this work establishes a multi-faceted analysis framework employing information-theoretic entropy metrics (Shannon, Rényi, and Tsallis), kernel density estimation, and phase space reconstruction to quantify the distinct phenomenological signatures of these regimes. Statistical hypothesis testing confirms that these scenarios represent statistically distinguishable dynamical populations. Benchmarks on standard workstation hardware demonstrate that the implementation achieves high computational efficiency, making it a viable platform for exploratory research and education in nonlinear field theory.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sandy H. S. Herho, Siti N. Kaban. 2025-12-27. amangkurat: A Python Library for Symplectic Pseudo-Spectral Solution of the Idealized (1+1)D Nonlinear Klein-Gordon Equation. https://arxiv.org/abs/2512.22635

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

KEEP EXPLORING

Related papers

Duck hunting with quantum mechanics

We bridge two sides of singular perturbation theory: the classical theory of slow-fast systems and the semi-classical approach to quantum mechanical systems. For a specific but physically important class of dynamical systems, we show that purely classical and exotic objects, so-called canard solutions, are shadows of instantons in the corresponding quantum system. We demonstrate that canard solutions exist in a domain of parameter space whose boundaries are determined by an instanton action. We illustrate our statements analytically for the relevant example, the overdamped Josephson junction, and confirm them numerically. For the Josephson junction, the canard window is the exponentially narrow gap between consecutive Shapiro steps.

nlin.PS

Rolls and Snaking in a Swift-Hohenberg Equation with Non-smooth Nonlinearity

We study rolls and homoclinic snaking in a variation of the one-dimensional Swift-Hohenberg equation, whose standard forms are prototypical order-parameter models for pattern formation in the sciences. Motivated by classes of differential equation models that involve continuous non-smooth low order nonlinear terms, we replace the standard quadratic-cubic nonlinearity by $ν|u|^α-u^3$, $α\in [1,2]$ with $ν> 0$. In the vicinity of zero, for $α<2$ this nonlinearity falls outside the scope of classical Taylor expansion and bifurcation analysis. Our partially analytical and partially numerical results highlight that the non-smooth term modifies the criticality of pattern-forming bifurcations and alters the associated branches of solutions. In particular, $α\in(1,2)$ implies subcriticality of roll bifurcations for any $ν>0$. At $α=1$ differentiability is lost, which has a strong impact on the bifurcations of sign-changing rolls including the disappearance of homoclinic snaking. Homoclinic snaking thus emerges non-smoothly as $α$ increases from $α=1$, and persists when retaining an additional, e.g., quadratic term.

nlin.PS