Demo workflows#

A good way to get started with MatFlow is to run one of the built-in workflows. This will also test your installation, configuration, and some of your environments.

Submit a workflow#

MatFlow comes with some demo workflows, which can be listed using

matflow demo-workflow --list

We can run the following command to copy the in-built workflow file to the current directory (note the final dot at the end),

matflow demo-workflow copy modify_volume_element_grid_size .

which we can then use to submit the workflow.

matflow go modify_volume_element_grid_size.yaml

This small workflow should complete in less than 30s. Note that there is also a convenience shortcut for the demo workflows which combines the copy-then-submit pattern we saw above:

matflow demo-workflow go modify_volume_element_grid_size

However, in general workflows would first be created in a yaml file which is then submitted using matflow go WORKFLOW_FILE.

Check the status of a workflow#

After submitting a workflow, you can check whether it has run successfully using

matflow show -f

For clarification of the output, a legend can be shown using

matflow show --legend

Cancel a workflow#

Sometimes you might want to cancel a workflow that is running. Use

matflow cancel WORKFLOW_REF

where WORKFLOW_REF is either the path to the workflow directory, or the ID of the workflow displayed by matflow show.