LPSE 2D — JAX Port of C++ LPSE
Select this implementation with solver: lpse-2d. It lives in
adept._lpse2d_cpp, exposed through adept.lpse2d_cpp, and contains the core C++
parity work from PR #372 (source revision a62b52c93b4a40e7fe9a57346569f207d66e4a7d).
The additional physics and parity tooling in PR #378 remain a follow-up.
The existing solver: envelope-2d continues to use adept.lpse2d and the
entire existing implementation in adept._lpse2d. Its configurations, defaults,
stepping, diagnostics and tests are unchanged by this split. Switching the
top-level key opts into the port’s conventions; it does not promise identical
results. The two implementations do not import each other’s solver code.
Select the physics
Within lpse-2d, choose the formulation and source terms independently of the
top-level solver key:
Physics |
|
|
|
|---|---|---|---|
TPD only, in 2D |
|
|
|
SRS only, in 2D |
|
|
|
Coupled TPD + SRS |
|
|
|
separate is the port’s separate-equation formulation. The legacy implementation
is selected only by envelope-2d. The combined formulation requires both sources
on or both off and terms.light.solver: spectral; it supports either prescribed
or evolved pumps. Use a y extent resolving more than one cell for 2D; ny = 1
is quasi-1D.
For example, the physics selection for a TPD-only deck is:
solver: lpse-2d
terms:
epw:
solver: separate
source:
tpd: true
srs: false
The core port defaults to the C++ TPD source, while thermal noise and exponential
absorbers are explicit options (terms.epw.source.noise_model: thermal and
grid.boundary_profile: exp). Its hand-written deck defaults remain flat noise
and tanh absorbers. The LPSE deck translator selects the LPSE conventions.
Example decks live in configs/lpse-2d/. To run one:
uv run run.py --cfg configs/lpse-2d/tpd
Equations and Quantities
These equations model the evolution and interaction of the complex envelopes of light waves and plasma waves. This is faster than modeling the plasma waves using a fluid or kinetic solver along with modeling the light waves.
Note on Pump Depletion
One can solve these equations with or without “pump depletion”. “Pump depletion” is the effect of the plasma waves on the light waves. By default the pump is prescribed analytically (an external driver for the plasma waves), which is adequate below the absolute instability threshold; above it the plasma-wave and Raman fields grow without bound because nothing depletes the pump.
Setting terms.light.pump_depletion: true evolves the pump E0 with the selected light solver and a boundary injector. The separate formulation supports finite-difference or spectral light; the combined formulation requires spectral light. Every active instability contributes its reciprocal pump term:
SRS contributes \(-i e/(4 \omega_1 m_e) (\nabla^2 \phi) \mathbf{E}_1\).
TPD contributes \(i e/(4 \omega_0 m_e) e^{i(\omega_0-2\omega_{p0})t} E_{h,y}\nabla\!\cdot\!\mathbf{E}_h\) to the y-polarized pump. This is the discrete reciprocal of the existing TPD source and conserves \(\int[|E_0|^2+(\omega_{p0}/\omega_0)|\mathbf{E}_h|^2]\) for the coupling terms alone.
Both terms are included when TPD and SRS are enabled together. Dynamic pump evolution enables true transmission/absorption diagnostics and provides the physical saturation channel needed above threshold.
The LASY speckle driver currently supplies a prescribed transverse profile. It cannot be combined with pump depletion; speckled broadband TPD is available with a prescribed pump.
SRS diagnostics
With terms.epw.source.srs on, the default time series includes OSIRIS-comparable channels (fields converted to \(m_e c \omega_0/e\), lengths to \(c/\omega_0\), fluxes normalized to the nominal incident flux):
series |
meaning |
OSIRIS scan2 counterpart |
|---|---|---|
|
\(\frac{1}{4}\,dx \sum_x \langle|E_{epw}|^2\rangle_y\) (cycle-averaged field energy) |
|
|
total EPW energy handed to electrons per ps (Landau + collisional, the solver’s own rates – with |
absorbed fraction / hot-electron source |
|
total EPW energy removed by the absorbing boundaries per ps |
— |
|
pump flux at probes near each edge |
|
|
Raman flux leaving left / right |
|
|
legacy probes (unchanged) |
— |
post_process logs scalar metrics with the same names and definitions as osiris_lpi (laser_reflectivity, laser_transmissivity, laser_absorbed_frac, per-quarter _seg{i}of4 variants, epw_growth_rate per \(\omega_0\) with the identical automated fit window, electron_energy_frac_final, and the laser_incident_flux_ratio health check).
Electron Plasma Waves
Two Plasmon Decay
Laser Driver
We only have a plane wave implementation for now:
Boundary Conditions
Set per axis under terms.epw.boundary:
Value |
Behaviour |
|---|---|
|
A damping layer of width |
anything else |
Periodic — the underlying representation is spectral, so this is the default behaviour when no absorbing layer is requested. |
x and y are configured independently, which is the usual arrangement for TPD: absorbing along the
density gradient, periodic transverse to it. The \(k=0\) mode is masked out of the spectral operators.
Forcing and Drivers
With terms.light.pump_depletion: false, the laser is prescribed forcing and is therefore appropriate
only while depletion is negligible. With depletion enabled, the injected pump propagates through the
box and receives the reciprocal TPD and/or SRS feedback described above.
Term |
Role |
|---|---|
\(E_0\) (laser driver) |
A sum of \(N_c\) plane-wave components, each with amplitude \(A_j\), frequency offset \(\Delta\omega_j\), and phase \(\phi_j\). Bandwidth models (SSD, CPP speckle) are built by populating these components — see the example decks |
\(S_\text{TPD}\) |
The two-plasmon-decay source coupling \(E_0\) to the plasma-wave envelope. |
\(S_h\) |
A noise/seed source for the plasma waves. |
\(\nu_e^\circ\) |
Landau damping of the plasma-wave envelope. |
Ion-acoustic waves
terms.iaw.active: true evolves the fractional ion-density perturbation and ion-velocity divergence using the MATLAB LPSE split step. The pressure contains acoustic restoring force plus ponderomotive drive from the EPW, pump, and Raman fields. The resulting density perturbation feeds back into the detuning of all three envelope equations. IAW boundary damping defaults to the EPW boundary configuration; collisional and Landau damping are independently configurable.
Hybrid particles and the 2D boundary
The HPE particle tracker supplies self-consistent Landau-damping feedback and hot-electron diagnostics in both quasi-1D and 2D runs. For ny > 1, a single box-wide ensemble carries (x, y, p_x, p_y) and samples both electric-field components; angle-resolved projected-velocity histograms provide the resonant distribution for every (k_x, k_y) mode without assigning particles to individual grid cells. Periodic boundaries wrap particles, while reservoir walls use flux-weighted thermal-tail reinjection. HPE can be combined with TPD, SRS, pump depletion, and IAWs, as demonstrated by configs/lpse-2d/tpd-srs-iaw.yaml; srs-hpe.yaml remains the smaller quasi-1D example.
What Gets Saved
binary/:
File |
Contents |
|---|---|
|
The real-space envelope fields over time |
|
The same in wavenumber space — this is where TPD growth is measured |
|
Scalar time series |
When IAWs are active, fields.xr and k-fields.xr also contain iaw_density and iaw_velocity_divergence; series.xr includes iaw_density_sq and iaw_density_abs_max.
The plasma-wave entries are built from the solver state, the k-space potential phi_k (numpy FFT convention). In a full-grid save (no save.fields.x / y), k-fields.xr holds phi = phi_k, ex = -1j * kx * phi_k and ey = -1j * ky * phi_k (fftshifted), and fields.xr holds their ifft2, so its ex, ey are \(-\partial_x \phi\), \(-\partial_y \phi\) of its phi, the same field the solver evolves and that the series.xr quantities e_sq and epw_energy integrate. An interpolated save does not satisfy these identities: its fields.xr phi, ex, ey are the full-grid fields interpolated to the save points, and its k-fields.xr is their DFT on the save grid scaled by (nx * ny) / (nx_save * ny_save), so neither the ifft2 of its k-fields.xr nor a derivative of its coarse phi reproduces its fields.xr (see save.fields). Field saves written before this was fixed (October 2026) carry an extra factor 4 / (nx * ny) on fields.xr ex and ey only.
plots/, per field k:
File |
Contents |
|---|---|
|
Spatial profiles, magnitude and real part |
|
Slices, linear / log / real part |
|
Space-time plots |
The log-scaled space-time plots are the ones to read for instability growth rates.
Configuration Reference
See the Configuration Reference for complete YAML schema documentation.