LightForge Commandline Usage

Gerating input files

LightForge requires a settings file in yaml-format. Check out the tutorials where LightForge is involved, or follow the GUI documentation to generate sample settings via the SimStack Client.

Running lightforge locally

You can use lightforge in serial mode and paralellized mode using mpi. In the parallel mode, calculations of independent data points for e.g. statistics or different fields are distributed over available CPUs using MPI. For testing purposes it is recommended to use serial mode.

To run lightforge in serial mode type:

activate nmsci-2024.1
lightforge -s settings

This will construct the system and then propagate the charges and the excitons as defined in the settings file. A pictures showing the energy levels of the system can be found in the material folder. The average charge density and final particle positions are printed in the folder experiments. To perform a current measurement specified in the experiments block_ in the settings file type:

activate nmsci-2024.1
lightforge -s settings

For this example the simulation will run until the convergence criterion speciefid by max_iterations or iv_fluctuation is reached. Termination criteria may differ for different measurement modes_ . Depending on your system environment, you may miss some libraries to invoke the serial mode directly. In this case try starting lightforge by typing:

Running a simulation on remote resources

After setting up your settings file use on of the following commands to run lightforge.

Parallel submission for multi-node execution:

activate nmsci-2024.1
export OMP_NUM_THREADS=1
mpirun -x OMP_NUM_THREADS --bind-to none --hostfile $HOSTFILE --mca btl self,vader,tcp python -m mpi4py `which lightforge` -s settings >> progress.txt 2> lf_mpi_stderr

For single-node execution, use the following command instead, for e.g. usage of 32 cores:

mpirun -x OMP_NUM_THREADS --bind-to none -n 32 --mca btl self,vader,tcp python -m mpi4py `which lightforge` -s settings >> progress.txt 2> lf_mpi_stderr

Serial submission:

activate nmsci-2024.1
lightforge -s settings

Monitoring the calculation

In the case of a serial calculation the status of the calculation is printed out to the terminal. In case of a parallel calculation the status of the simulation of each data

The results of the search are