Fuzzball Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Viewing OpenFOAM Results

In the previous section, we showed how to save results to a persistent volume, and/or to S3. In the following sections we will discuss how to access and visualize the results.

Viewing OpenFOAM results saved to a persistent volume

Any later Fuzzball job that mounts the persistent volume the OpenFOAM workflow wrote to can read those results.

If you only need to inspect the results with standard Linux command-line tools, you can create a small Fuzzball interactive shell job from the CLI like so:

$ fuzzball run --volume <volume-name>:/data --image docker://rockylinux:9 --tty -- /bin/bash
Workflow "dd8f141c-0cb3-48ba-8d2f-66e8768e2e89" started.
Waiting for job to start...

(fuzzball:/)$ cd /data/results/openfoam
(fuzzball:/data/results/openfoam)$ ls -lh
total 12K
drwxrwxr-x. 14 user group 6.0K Apr  3 16:17 openfoam-motorbike-1775229598
drwxrwxr-x. 14 user group 6.0K Apr  3 18:46 openfoam-motorbike-1775241546
drwxrwxr-x. 14 user group 6.0K Apr  6 17:47 openfoam-motorbike-1775497198
(fuzzball:/data/results/openfoam)$ ls -lh openfoam-motorbike-1775497198
total 60K
drwxrwxr-x.  3 user group 6.0K Apr  6 17:47 0.orig
drwxrwxr-x.  3 user group 6.0K Apr  6 17:47 500
-rwxrwxr-x.  1 user group  438 Apr  6 17:47 Allclean
-rwxrwxr-x.  1 user group 1.6K Apr  6 17:47 Allrun
-rw-rw-r--.  1 user group   37 Apr  6 17:47 FB_WORKFLOW_ID
drwxrwxr-x.  8 user group 6.0K Apr  6 17:47 VTK
drwxrwxr-x.  5 user group 6.0K Apr  6 17:47 constant
drwxrwxr-x. 10 user group 6.0K Apr  6 17:47 postProcessing
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor0
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor1
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor2
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor3
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor4
drwxrwxr-x.  9 user group 6.0K Apr  6 17:47 processor5
drwxrwxr-x.  3 user group 6.0K Apr  6 17:47 system

Replace <volume-name> with the name of your persistent volume. To pin a specific provisioner, use <provisioner>/<volume-name>:/data instead.

Viewing OpenFOAM results saved to S3

If you want to fetch results saved to AWS S3 for local visualization with Paraview, for example, you can download the results file to your workstation with the AWS CLI or any other method that can interact with data stored in S3. The examples below use the AWS CLI.

Use the AWS CLI command aws s3 cp to download the result file to your workstation. The workflow catalog template appends a timestamp to the results name. That makes the results in our example s3://S3Bucket/ResultsPath/openfoam-motorbike-1775497198.tar.gz where S3Bucket and ResultsPath were the parameters you provided to the workflow template. You can copy this file and unpack the archive like so:

$ aws s3 cp s3://S3Bucket/ResultsPath/openfoam-motorbike-1775497198.tar.gz .
download: s3://S3Bucket/ResultsPath/openfoam-motorbike-1775497198.tar.gz to ./openfoam-motorbike-1775497198.tar.gz

$ tar -zxf openfoam-motorbike-1775497198.tar.gz

After decompressing the archive, you can post-process your results and create visualizations using open source software ParaView.