Skip to content

Command Line Interface#

The usual way of launching quatrex is via its command line interface (CLI). There is one main command, quatrex run, which is used to run a simulation. It takes as an argument the path to a TOML file containing the simulation parameters.

quatrex#

quatrex [OPTIONS] COMMAND [ARGS]...
Option Description
--version Print the version and exit.
--help Show a help message.

quatrex mesh#

quatrex mesh [OPTIONS] CONFIG

Generates and visualizes the device's electrostatics mesh based on the provided configuration. This produces a mesh file and has to be invoked before running simulations including electrostatics.

Argument Description
config Path to the quatrex TOML configuration file.
Option Description
--off-screen Whether to use off-screen rendering. A visualization of the mesh will be generated without displaying it on the screen.
--help Show a help message.

quatrex pre-process#

quatrex pre-process [OPTIONS] CONFIG

Runs different pre-processing steps based on the provided configuration. This currently includes plotting the contact bandstructure and calculating contact parameters for electrostatics simulations. Calculating the contact parameters is turned off by default since it will overwrite the configuration file. The pre-processing steps are defined in the pre_process section of the configuration file.

Back-up configuration file

When parameters are overwritten in the configuration file, the original values are saved in a backup file named quatrex_config_original.toml in the same directory as the configuration file. After running the pre-processing steps once, it cannot be run again without deleting this backup file. This is to prevent accidental overwriting of the original parameters.

Parameter provenance comments

Newly written parameters are marked in the TOML file with a comment that they were generated by the pre-processing step.

Argument Description
config Path to the quatrex TOML configuration file. This can also be a path to a folder containing the configuration file (quatrex_config.toml). If not given, quatrex will look for a file named quatrex_config.toml in the current directory.
Option Description
--abort-on-exception/ --no-abort-on-exception Force abort the entire MPI environment on an unhandled exception to prevent hanging processes.
--help Show a help message.

quatrex run#

quatrex run [OPTIONS] [CONFIG]

Run a simulation with the given configuration file.

Argument Description
config Path to the quatrex TOML configuration file. This can also be a path to a folder containing the configuration file (quatrex_config.toml). If not given, quatrex will look for a file named quatrex_config.toml in the current directory.
Option Description
--abort-on-exception/ --no-abort-on-exception Force abort the entire MPI environment on an unhandled exception to prevent hanging processes.
--help Show a help message.