Command Line Interface (CLI)¶
- Last updated
Jul 25, 2024
- Author
Gianfranco Ulian
Quantas is a Command Line Interface (CLI) tool. It was intended in this way mainly for three reasons:
with respect to Graphical User Interfaces (GUIs), it saves computing resources for… computing!
since it does not need any graphical environment, it is possible to install the software on High-Performance Computing systems and use it on-site.
development time.
After the installation of the software, you can see the different command-line arguments and options by simply writing on your console (UNIX), command-propt (Windows) or terminal (Mac OS).
quantas -h
or
quantas --help
The output should be this one:
Usage: quantas [OPTIONS] COMMAND [ARGS]...
________ __
\_____ \ __ _______ _____/ |______ ______
/ / \ \| | \__ \ / \ __\__ \ / ___/
/ \_/. \ | // __ \| | \ | / __ \_\___ \
\_____\ \_/____/(____ /___| /__| (____ /____ >
\__> \/ \/ \/ \/
Options:
-v, --version Show the software version and exit.
-h, --help Show this message and exit.
Commands:
eosfit Equation of state (EoS) fitting.
export Export results from binary format (HDF5) to text format.
ha Harmonic Approximation calculation.
inpgen Generate inputs file for Quantas from input files.
qha Quasi-Harmonic Approximation calculation.
soec Second-order elastic moduli analisys.
General concepts¶
Quantas routines are subdivided in different sub-commands, which can be individually
called. Each command is followed by some parameters.
Parameters¶
The parameters used by Quantas are of two types:
arguments: they are positional parameters, for example
input_file_name.yamlwhenquantas ha input_file_name.yamllaunching harmonic approximation calculations;options: they are called by using flags (for example
-for--flag-name), followed by a single value.
Multi-value options¶
Some options of quantas are associated with multiple values, for example the temperature
settings employed during (quasi-)harmonic approximation calculations. In this case, the appropriate number of (expected) values are to be provided.
Case-sensitive options¶
Some options of quantas are case-sensitive, in particular those related to the
measurement unit selection.
Getting help¶
Each quantas sub-command has an associated help string that provides guidance to the user
on the mandatory arguments and options that can be provided. The help strings are called by
appending -h or --help after the selected command, for example
quantas soec --help, or just quantas soec -h.
Printing/output options¶
The following are general options that can be employed in (most) sub-commands.
-o OUTFILE, --outfile OUTFILE¶
Specify the output file name. By default, Quantas creates an output file composed as
input_file_basename + _COMMAND_NAME.log.
--q, --quiet¶
Suppress streaming information on the console, reporting the output only the log file.
-p, --plot¶
Activate plotting options for calculators.
Note
At the moment, only the SOEC calculator has the capability of doing plot of the results.
--dpi DPI¶
Set the resolution (dot-per-inch, DPI) of the output plot figures (default: 80).
-d, --debug¶
Activates debugging information on screen. Useful to report Quantas bugs or strange behaviour of the code on some systems.
Aborting a calculation¶
If the user needs to stop a currently running calculation, just press Ctrl+C and Quantas will gently stop execution.