SearcharxivSearch

arXiv subjects

Hongke Lu

Publications and source records attributed to Hongke Lu.

2 recordsLinked to original sources

JAX-in-Cell: A Differentiable Particle-in-Cell Code for Plasma Physics Applications

JAX-in-Cell is a fully electromagnetic, multispecies, and relativistic 1D3V Particle-in-Cell (PIC) framework implemented entirely in JAX. It provides a modern, Python-based alternative to traditional PIC frameworks. It leverages Just-In-Time compilation and automatic vectorization to achieve the performance of traditional compiled codes on CPUs, GPUs, and TPUs. The resulting framework bridges the gap between educational scripts and production codes, providing a testbed for differentiable physics and AI integration that enables end-to-end gradient-based optimization. The code solves the Vlasov-Maxwell system on a staggered Yee lattice with either periodic, reflective, or absorbing boundary conditions, allowing both an explicit Boris solver and an implicit Crank-Nicolson method via Picard iteration to ensure energy conservation. Here, we detail the numerical methods employed, validate against standard benchmarks, and showcase the use of its auto-differentiation capabilities.

physics.plasm-ph

Observation of nonaxisymmetric standard magnetorotational instability induced by a free-shear layer

The standard magnetorotational instability (SMRI) is widely believed to be responsible for the observed accretion rates in astronomical disks. It is a linear instability triggered in the differentially rotating ionized disk flow by a magnetic field component parallel to the rotation axis. Most studies focus on axisymmetric SMRI in conventional base flows with a Keplerian profile for accretion disks or an ideal Couette profile for Taylor-Couette flows, since excitation of nonaxisymmetric SMRI in such flows requires a magnetic Reynolds number Rm more than an order of magnitude larger. Here, we report that in a magnetized Taylor-Couette flow, nonaxisymmetric SMRI can be destabilized in a free-shear layer in the base flow at Rm $\gtrsim$ 1, the same threshold as for axisymmetric SMRI. Global linear analysis reveals that the free-shear layer reduces the required Rm, possibly by introducing an extremum in the vorticity of the base flow. Nonlinear simulations validate the results from linear analysis and confirm that a novel instability recently discovered experimentally (Nat. Commun. 13, 4679 (2022)) is the nonaxisymmetric SMRI. Our finding has astronomical implications since free-shear layers are ubiquitous in celestial systems.

astro-ph.HE