Command-line reference¶
The module entry point is python -m phast. Run it without a subcommand or with --help for the command summary.
Commands¶
Command |
Purpose |
|---|---|
|
Validate, resolve, and run a supported YAML configuration. |
|
Report pre-simulation diagnostics without running the solve. |
|
Explain configuration contents without generating a mesh or running. |
|
Export the JSON Schema for YAML configurations. |
|
Report environment and solver-backend status. |
|
Generate supported products from a completed run. |
|
Scaffold a starter YAML configuration. |
explain is accepted as an alias for explain-config; json-schema is an alias for schema.
run options¶
run CONFIG accepts --device, --output_dir, --validate-only, --trajectory, --trajectory-format {zarr,h5,both}, --h5, --plots, --gif, --fast, --profile, --num_steps, --print_every, --h5_every, --validation-id, --time_integrator, and --rho_inf. CLI values override the corresponding YAML values. --validate-only performs configuration or workflow validation and exits before execution; it is not runtime validation.
Other command options¶
precheck accepts a YAML path either as CONFIG or as --config CONFIG.
Do not supply both forms together. It also accepts material and mesh
parameters such as --preset, --h_min, and --t_total. Run
python -m phast precheck --help for all options.
schema accepts --output, --check, and --indent. postprocess accepts a run directory and post-processing options such as --dpi. new accepts a name and starter options including --type and --material; consult the command help for the complete local option set.
Examples¶
python -m phast precheck examples/dynamic/B2_kalthoff_winkler/config.yaml
python -m phast explain-config examples/dynamic/B2_kalthoff_winkler/config.yaml
python -m phast precheck --config examples/dynamic/B2_kalthoff_winkler/config.yaml
python -m phast run config.yaml --validate-only
python -m phast run config.yaml --device cuda --trajectory-format zarr
python -m phast schema --output configs/phast.schema.json
python -m phast doctor
python -m phast postprocess runs/example --dpi 300