Checkmark=facebooklinklinkedinOngoing indicator +Left-facing arrowRight-facing arrowCheckmarkDown-pointing chevronLeft-pointing chevronRight-pointing chevrontwitter



OpenFOAM 5.0, ParaView 5.4.0

OpenFOAM is a toolbox for customized numerical solvers. It contains processing utilities for the solution of continuum mechanics problems, including computational fluid dynamics (CFD). This version is based on the OpenFOAM Foundation edition.

Running your OpenFOAM workload on Nerdalize

  1. Make sure you’ve set up Nerd, our CLI.

  2. Upload your dataset.

    $ nerd dataset upload <path>
    14.28 KiB / 28.01 KiB [=====>-----] 51% 4s
    Upload complete! ID of new dataset: <dataset-id>

    Don’t have a dataset at hand? Download the pitzDaily example and unzip it.

  3. Start OpenFOAM.

    $ nerd workload start nerdalize/openfoam -s 2 --input-dataset <dataset-id>
    Workload created with ID: <workload-id>
  4. Run your simulation.

    $ nerd task create <workload-id>
    Started task with ID: <task-id>

    Optionally, the variable OPENFOAM_RUN_FILE can be used to execute a run script other than the default This allows you to run multiple simulations on one input dataset. For example:

    $ nerd task create <workload-id> -e
    Started task with ID: <task-id>
  5. Review the simulation logs (optional).

    1. List the workload’s workers.

      $ nerd workload describe <workload-id>
      Workload Details:
      ID:              <workload-id>
      Image:           nerdalize/openfoam
      Created:         18 minutes ago
      Workers:         <worker-id> (Running)
    2. Request the log output for a worker.

      $ nerd worker logs <workload-id> <worker-id>
  6. Check on the status of your tasks.

    $ nerd task list <workload-id>
    TASK ID               CMD   OUTPUT ID              STATUS    CREATED
    <task-id>             []    <output-id>            SUCCESS   22 minutes ago

    When your task’s status is SUCCESS it’s finished and you can continue to download the output.

  7. Download the collection of output files.

    $ nerd dataset download <output-id> <target-dir>
  8. Stop OpenFOAM.

    $ nerd workload stop <workload-id>

You’ve run an OpenFOAM simulation. Awesome!

You can run another simulation or use your own image.
Have any questions about using Nerdalize compute?

Get in touch