Command-line reference: mrf
mrf is a single entry point with subcommands. Get help at any level:
mrf --help
mrf analyze --help
mrf derive . ins --help
mrf create
Generate a fresh VASP directory from a Materials Project id, a structure file, or a formula.
mrf create mp-48
mrf create structure.cif
mrf create "Li 10x10x10"
mrf create mp-48 --output graphite
By default the input is written to a directory named after the system;
--output overrides the directory name.
mp-* ids require a Materials Project API key (PMG_MAPI_KEY in
~/.config/.pmgrc.yaml, set via pmg config --add PMG_MAPI_KEY <key>),
and POTCAR generation requires a pseudopotential directory
(PMG_VASP_PSP_DIR in ~/.config/.pmgrc.yaml).
mrf derive
Derive a new calculation from an existing VASP directory. This is the primary tool for chaining calculations.
mrf derive <input_dir> [--output <output_dir>] <subcommand> [args]
Subcommands:
Subcommand |
Purpose |
Example |
|---|---|---|
|
switch exchange-correlation functional |
|
|
override pseudopotentials |
|
|
set or unset INCAR tags |
|
|
change k-point density or grid |
|
|
set up a relaxation (ISIF) |
|
|
static SCF calculation |
|
|
apply lattice strain |
|
|
make a supercell |
|
|
random position perturbation |
|
|
selective-dynamics constraints |
|
|
insert atom/molecule at sites |
|
|
delete species |
|
|
fill all insertion sites |
|
|
NEB between two runs |
|
|
all unique diffusion paths |
|
|
input from ATAT str.out |
|
derive is one-to-one (change a setting, get one directory) or
one-to-many (ins, strain, neb_diffusion write several
directories).
mrf status
Check running status, convergence, warnings, and timing across a tree.
mrf status
mrf status --problematic
mrf status --exclude "test_runs"
Features:
identifies running SLURM jobs;
checks electronic, ionic, and multi-step convergence;
surfaces VASP warnings and suspicious structural changes (large displacement, symmetry change, stress / force anomalies);
reports convergence speed (wall-clock per electronic and ionic step).
mrf analyze
Tabular summary of key properties across a tree. Grouping by identical INCAR is on by default.
mrf analyze
mrf analyze --fields energy e_per_atom displ
mrf analyze --fields ALL
mrf analyze --nogroup
mrf analyze --format csv
mrf analyze --format json
Fields: energy, e_per_atom, max_force, %vol, displ,
space_group, framework_space_group, a, b, c, alpha, beta,
gamma, and the %-changes of each. The table view shows a smaller set by
default. Pass --fields ALL to show every field. Energies judged
unreliable (for example, from a volume/shape relaxation that shifted
the k-point grid) or unconverged are shown as unreliable /
unconverged instead of a number, so they are not silently used.
--format controls the output. The default table renders a rich
table; csv, json, and orgtbl bypass rich and emit all fields
(unless --fields narrows them) for programmatic use.
mrf diff
Compare settings or structures across several directories.
mrf diff incar dir1 dir2 dir3
mrf diff structure dir1 dir2 dir3
mrf diff structure dirs --copy-to unique/
incar reports common settings and per-group differences. structure
groups directories that converged to the same structure (symmetry-aware)
and sorts the groups by energy; --copy-to copies one representative
per group.
mrf visualize
Generate visual summaries.
mrf visualize neb
mrf visualize atat
mrf visualize . hull --ion Li
mrf visualize . voltage --ion Li
neb writes a trajectory CIF for each converged NEB; atat summarizes
cluster-expansion fits; hull plots a formation-energy convex hull;
voltage plots a voltage profile.
mrf run
Submit or run a job; forwards to gorun (see gorun).
mrf run vasp --nodes 2 --time-limit 24:00:00
# restart an existing run with adjusted setup
mrf run vasp --incar ALGO:All