Interactive replay modus
Introduction
The lightforge interactive replay modus enabels the option to rerun a calculation. Thus, you can directly use the calculated data to generate new output files of your interest. In the following, a few features of this mode are introduced, which enables a much better visualization of the ongoing calculated processes.
How to start the replay modus
You have to start this modus in the folder, in which the calculation is stored and was successfully finished, and to source the LightForge software. Then, you can start the lightforge.py and using the following command will reun the simulation:
lightforge.py -s settings -r 0
The same settings as in the simulation will be used and -r reruns the first trajectory, however, you can also select other runs. Now, the interactive mode started and you can type info to see the lengh of the simulation and other information.
Visualization of the moving particles
In the replay modus, you can type:
trajectory startframe endframe skipping_rate rerun_trajec.xyz
This will create a file rerun_trajec.xyz in your current directory, which can be visualized e.g. with VMD illustrated in the figure below.
This file contains all particles, which appear in the simulation.
The electrons are colored in blue, holes in red and excitons in green.
However in simulations with doping, green particles have no physical meaning and are just there as kinda place holders,
enabling the visualization.
The written trajectory will contain all frames between e.g. step 500 and 5000, if you type 500 (startframe) 5000 (endframe) 0(skipping rate).
Skipping frames should be selected carefully with respect to the total simulation lengh, delived by typing info.

Visualizing the moving particles via snapshots in 2D (x direction and time)
The same command as before also produces a rerun_trajec.png,
which is a 2D-plot, showing for each not skipped frame the particles (color code) and their position in the length of the device.
The figure below displays the diffusion of triplet excitons (green) in a pristine BCP layer,
which is a result of the following Lightforge tutorial

Visualization of the current
In the replay modus, you can type:
current startframe endframe
This delivers a plot into the following folder:
results/experiments/current_characteristics/ named as percolation_(directions)(holes or electrons)0(startframe)(endframe).png e.g. percolation_directions_xy_holes_0_100000_500000.png, as illustrated below.

Outlook
Further features will be documented soon. For sepecific use cases, you can directly contact us, therefore, we can implement or show the requested functionality.
The results of the search are