Skip to content

Simple OpenFOAM Workflow Example


Your environment will need to have a job scheduler such as Slurm, which can be set up by following the Flight Solo cluster build methods.

Run Job

  1. Download a job script to the working directory. This script assumes that it is being launched from the home directory, change it if that is not the case. It also cannot be run as the root user.

    flight silo file pull openflight:openfoam/
  2. Submit the job to the queue system:


  3. Check that the job is running (it may take some time to complete):


View Results

Once the cavity job has finished running, the results can be visualised through a desktop session.

  1. Connect to VNC or web-suite desktop (For more information on launching desktops, see the Flight Desktop section).

  2. Navigate to the cavity directory and launch the paraFoam viewer:

    cd cavity

  3. In the window that opens, scroll down to "Mesh parts" and select all the boxes, then click apply

  4. Next, change the display to 'U' in the drop-down menu, click play to change the timestamp and then click and drag to rotate the subject