Simple OpenFOAM Workflow Example
Tip
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
-
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/cavity-example.sh
-
Submit the job to the queue system:
sbatch cavity-example.sh
-
Check that the job is running (it may take some time to complete):
squeue
View Results
Once the cavity job has finished running, the results can be visualised through a desktop session.
-
Connect to VNC or web-suite desktop (For more information on launching desktops, see the Flight Desktop section).
-
Navigate to the cavity directory and launch the paraFoam viewer:
cd cavity paraFoam
-
In the window that opens, scroll down to "Mesh parts" and select all the boxes, then click apply
-
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