Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Command line

The package holds two programs: faris-app, the desktop, and faris, the command line. The faris command needs no graphics, Python, OpenMC or Avila Core, except for the commands marked below. Run faris --version to check the version and faris COMMAND --help for every flag of a command.

Errors exit with status 2. A study file that fails verification exits 1.

Commands

CommandWhat it does
faris validate SCENARIOValidates a scenario without running physics.
faris export --scenario S --output OExports geometry metadata and its evaluation status. It refuses an existing destination. It is not the study export below.
faris doctorReports which optional tools are on PATH. It runs nothing.
faris study-file createWrites a .faris file from recorded bundles and assumptions.
faris study-file inspect FILESummarises a file without extracting it.
faris study-file verify FILERehashes every blob and rebuilds every bundle. Exits 1 on any failure.
faris study-file unpack FILE DIRWrites the contents back out as ordinary files. Refuses an existing directory.
faris study-file export FILE --output DIRWrites the export folder.
faris history runOne deterministic history from --assumptions, --rates and --output.
faris history validateValidates --assumptions and --rates without calculating.
faris history from-runBinds rates from a successful transport run and calculates the history.
faris history ensembleAn ensemble of histories on sampled transport rates.
faris history compare-runsCompares two runs under identical assumptions.
faris history sensitivityFull-rerun sensitivity over a --grid file.
faris transport packPackages a completed run into a portable bundle.
faris transport validate-requestValidates a transport request against the exact scenario bytes.
faris transport normalizeConverts solver-reported per-source scores to physical rates and densities.
faris reactor runRuns fixed-source transport through OpenMC. Needs your own OpenMC and data. See Run your own transport.
faris reactor inspectRevalidates a saved run’s input, artifact, volumes and normalization.
faris control absorberA synthetic one-group absorber, a mathematical control and not reactor physics. Needs OpenMC.
faris study generate and faris study compileGenerate a Core study, and compile it with an Avila Core executable you choose. No solver runs.
faris evidence prepare, run, inspect, stagePackage and execute identified evidence with Avila Core. See Evidence.

Work with study files

faris study-file create --bundle port/bundles/reference.transport-bundle.json \
  --control-bundle control/bundles/reference.transport-bundle.json \
  --sweep-bundle sweep/blanket-045cm.transport-bundle.json \
  --assumptions operating-assumptions.json \
  --evidence saved-study-port-reference.json [--pack-evidence] -o demo.faris
faris study-file inspect demo.faris
faris study-file verify demo.faris
faris study-file unpack demo.faris out/
faris study-file export demo.faris --output exports/

--bundle, --physics and --sweep-bundle are repeatable. --pack-evidence stores the Core evidence inside the file. --view records a view from a JSON file, --zstd-level sets the compression level (default 15), and --preview stores a PNG thumbnail. create never overwrites an existing file. See Study files.

Calculate a history

Operating histories and their uncertainty run headless from a recorded transport run:

faris history from-run --scenario <scenario.json> --run <run.json> \
  --assumptions scenarios/arc-inspired/demountable-magnet-assumptions.json \
  --output history.json --rates-output rates.json
faris history ensemble --assumptions scenarios/arc-inspired/demountable-magnet-assumptions.json \
  --rates rates.json --samples 200 --output ensemble.json

--samples is 1 to 2000 and defaults to 200. --seed and --threads are optional. An ensemble that is not evaluated is written and exits 0, so read its status. Uncertainty ensembles explains the result, and Method the calculation.

Desktop options

faris-app takes a .faris file as its argument. Options you may want:

OptionEffect
--step STEPOpens on design, simulate, operate, compare or evidence.
--tour auto|always|neverControls the guided tour.
--interface-scale NStarts with the interface magnified by N (0.75 to 2).
--initial-year NStarts the timeline at year N.
--field-view VIEWStarts with a field view for results loaded with --run.
--core PATHThe Avila Core executable used by Compile study.
--window-width N, --window-height NThe initial window size.

Run faris-app --help for the rest.

Next: Run your own transport.