Example: Overview

This section presents selected examples demonstrating key applications of eTraj, illustrating its capabilities across representative scenarios. The example and the corresponding post-processing codes are provided in the examples/ directory.

The implementation consists of two types of scripts: simulation scripts (named test_*.jl) that execute trajectory simulations and generate JLD2 output files, and visualization scripts (named plot_*.jl) that process these files to produce figures. To run the plotting scripts, the user must install and successfully build the Plots.jl and PyPlot.jl packages.

The execution time of the program is primarily determined by the number of effective trajectories, defined as those not filtered out due to probabilities below the sample_cutoff_limit threshold. Additional factors influencing computational efficiency include the choice of initial condition and phase methods, the system's dimensionality (specified by the dimension parameter), the relative error tolerance of the ODE integrator (specified by the traj_rtol parameter), and the occurrence of electron recollisions, which necessitate finer time steps for accurate resolution. A summary of the execution times for the presented examples is provided in the table below.

The execution time does not include the package loading or precompilation time. The examples are run on an AMD Ryzen 9 7950X CPU with 12 available cores and 32 GB of RAM, on WSL Ubuntu 22.04 LTS, Julia version 1.11.1.

ExampleConfigurationCoresEff. traj.Exec. timeSpeed
test_2cycs_CPADK-CTMC1254.2M3'53''4.3 μs/traj
ADK-CTMC854.2M4'43''5.2 μs/traj
ADK-CTMC654.2M5'32''6.1 μs/traj
ADK-CTMC454.2M7'23''8.2 μs/traj
ADK-CTMC254.2M11'22''12.5 μs/traj
ADK-CTMC154.2M20'49''23.0 μs/traj
SPANE-CTMC1269.7M4'25''3.8 μs/traj
SPA-CTMC1283.9M22'38''16.2 μs/traj
test_8cycs_CPADK-CTMC12131M15'20''7.0 μs/traj
ADK-QTMC12131M17'59''8.2 μs/traj
ADK-SCTS12131M20'32''9.4 μs/traj
test_1cyc_CPADK-CTMC1222.8M1'42''4.5 μs/traj
ADK-QTMC1222.8M2'00''5.3 μs/traj
ADK-SCTS1222.8M2'02''5.4 μs/traj
test_Bichromatic_CCPI₀ = 1×10¹⁴ W/cm²1218.7M3'54''12.5 μs/traj
I₀ = 3×10¹⁴ W/cm²1229.0M6'04''12.5 μs/traj
I₀ = 5×10¹⁴ W/cm²1232.9M7'00''12.8 μs/traj
I₀ = 7×10¹⁴ W/cm²1235.2M7'35''12.9 μs/traj
test_MoleculesH₂ HOMO1214.7M1'45''7.1 μs/traj
CO HOMO1216.2M1'47''6.6 μs/traj
O₂ α-HOMO1215.7M1'45''6.7 μs/traj
O₂ α-HOMO-11215.3M1'42''6.7 μs/traj
C₆H₆ HOMO1222.3M2'21''6.3 μs/traj
C₆H₆ HOMO-11222.0M2'19''6.3 μs/traj