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 saved result file openfoam-example-results.tar.gz to an S3 bucket at destination s3://my-bucket/my-dir/openfoam-example-results.tar.gz.

One method to download the results file to your workstation and view it is to use the AWS CLI to interface with the S3 bucket where your results are stored. 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 command below copies the result file at S3 URI s3://my-bucket/my-dir/openfoam-example-results.tar.gz to your working directory.

$ aws s3 cp s3://my-bucket/my-dir/openfoam-example-results.tar.gz .
download: s3://my-bucket/my-dir/openfoam-example-results.tar.gz to ./openfoam-example-results.tar.gz

You can decompress the results archive in your working directory using the following command:

$ tar -zxf ./motorbike-example-results.tar.gz

After decompressing the results tarball, will be contained in directory motorBike. To view the results, we can simply use the cat command to output the contents of the file to our terminal. The command below outputs the contents of file motorBike/log.decomposePar

$ $ cat log.decomposePar
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2112                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _d44c8318-20220111 OPENFOAM=2112 version=2112
Arch   : "LSB;label=32;scalar=64"
Exec   : decomposePar -decomposeParDict system/decomposeParDict.6
Date   : Jun 21 2022
Time   : 22:26:34
Host   : 50-116-15-68.ip.linodeusercontent.com
PID    : 72939
I/O    : uncollated
Case   : /data/motorBike
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



Decomposing mesh

Create mesh

Calculating distribution of cells
Decomposition method hierarchical [2] (region region0)

Finished decomposition in 0 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes

Processor 0
    Number of cells = 640
    Number of faces shared with processor 1 = 64
    Number of processor patches = 1
    Number of processor faces = 64
    Number of boundary faces = 384

Processor 1
    Number of cells = 640
    Number of faces shared with processor 0 = 64
    Number of processor patches = 1
    Number of processor faces = 64
    Number of boundary faces = 384

Number of processor faces = 64
Max number of cells = 640 (0% above average 640)
Max number of processor patches = 1 (0% above average 1)
Max number of faces between processors = 64 (0% above average 64)

Time = 0

Processor 0: field transfer
Processor 1: field transfer

End

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