Skip to Content

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.

Inspecting OpenFOAM results saved to a persistent volume

Any Fuzzball job that mounts the same persistent volume used to save results of an OpenFOAM workflow can be used to access the results in later workflows.

If you only need to inspect the results with generic linux commandline tools, you can create a small Fuzzball interactive shell job from the CLI like so:

$ fuzzball run --volume user/persistent:/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

Fetching OpenFOAM results from AWS S3 for local visualization

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. We will use the AWS CLI in the examples below. If you do not have the AWS CLI installed, please see the AWS CLI installation instructions for more information.

Using the AWS CLI command aws s3 cp, the result file can be downloaded 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.