amangkurat: A Python Library for Symplectic Pseudo-Spectral Solution of the Idealized (1+1)D Nonlinear Klein-Gordon Equation
Sandy H. S. Herho, Siti N. Kaban

TL;DR
The amangkurat Python library offers a symplectic pseudo-spectral solver for the (1+1)D nonlinear Klein-Gordon equation, enabling accurate, efficient simulations of various relativistic scalar field phenomena with advanced analysis tools.
Contribution
This work introduces amangkurat, a novel Python library combining spectral methods, symplectic integration, and adaptive techniques for robust Klein-Gordon simulations with comprehensive phenomenological analysis.
Findings
Validated across four physical regimes including solitons and kinks.
Achieves exponential spatial convergence and long-term Hamiltonian preservation.
Demonstrates high computational efficiency suitable for research and education.
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 D spacetime. The software implements a hybrid computational strategy that couples Fourier pseudo-spectral spatial discretization with a symplectic St\o 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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical methods for differential equations · Nonlinear Photonic Systems · Nonlinear Waves and Solitons
