Skip to main content

Crate caroli_cli

Crate caroli_cli 

Source
Expand description

The caroli command: a system and its simulations described in a TOML file.

title = "Clean BHZ ribbon"

[parameters]
M = -0.137

[model]
preset = "bhz"
mass = "M"

[system]
size = [40, 20]

[[run]]
type = "transmission"
energies = { from = -0.3, to = 0.3, count = 61 }

caroli run input.toml writes one CSV table per [[run]] in an output directory. The input format is described in crates/caroli-cli/README.md, with commented examples in crates/caroli-cli/inputs/.

Modules§

build
From the input to caroli’s objects: parameters, model, disorder, sample and leads.
input
The input file: TOML tables read with serde. Unknown keys are errors, so that a misspelt option does not pass unnoticed.
run
The calculations: each writes one CSV table, a row per scan point, configuration and value.

Functions§

describe
A short description of the system: lattice, sample, leads, runs.
output_name
Name of the table of run k.
parse
Parses an input file.
run_all
Runs the calculations of input (all, or those of only), writing their tables in out_dir. Returns a summary line per calculation.

Type Aliases§

Error
An error of the command, whose message says what is wrong.