OpenFOAM (ESI)

Available Versions:

version 2412 / version 2406 / version 2206

OpenFOAM is a versatile computational fluid dynamics (CFD) toolset built on the Finite Volume method, capable of handling a wide range of engineering and scientific applications. It provides robust solutions for fluid flow (including turbulence, heat transfer, and chemical reactions), as well as solid dynamics and electromagnetics. With OpenFOAM, you can model and simulate complex fluid dynamics scenarios across diverse fields, such as aerodynamics, energy systems, and industrial processes.

When configuring an OpenFOAM simulation through the Inductiva API, the process follows several steps: domain partitioning, meshing, solving, and post-processing. To set up the simulation, you’ll need configuration files organized into three main folders; time, constant, and system.

Give it a Go: Try OpenFOAM (ESI) on the Cloud with Inductiva!

Here’s a quick example code to get you started. This example follows the motorbike tutorial from OpenFOAM repository and shows how to run an OpenFOAM simulation on a c3d-standard-180 Google Cloud machine using our API. To try it out, simply paste the code into your Python environment.

For more details on the simulator’s features and configurations, visit the official OpenFOAM (ESI) site.

                            """OpenFOAM ESI example."""
import inductiva

# Allocate Google cloud machine
cloud_machine = inductiva.resources.MachineGroup( \
    provider="GCP",
    machine_type="c3d-standard-180")

# Initialize the Simulator
openfoam = inductiva.simulators.OpenFOAM(distribution="esi", version="2412")

# Run simulation with config files in the input directory
task = openfoam.run( \
    input_dir="/path/to/my/openfoam/files",
    shell_script="./Allrun",
    on=cloud_machine)

# Wait for the simulation to finish and download the results
task.wait()
cloud_machine.terminate()

task.download_outputs()

                        

Dive Deep

Use Case: Running MB9 Micro-benchmark by ExaFOAM

In this advanced OpenFOAM example, we simulate a high-lift wing configuration from the MB9 micro-benchmark of the ExaFOAM benchmarks. This benchmark is a precursor to the HPC Grand Challenge, which simulates a full aircraft configuration using wall-modeled LES (WMLES) for turbulence.

We use a 2D, three-element high-lift wing in this simulation, applying WMLES for turbulence modeling. The simulation is executed via the Inductiva API, first on a 360 vCPU machine and then on an MPI cluster with two large machines to test if we can reduce execution time by half.

Use Case: Running MB9 Micro-benchmark by ExaFOAM

We’ve got 20 simulators ready for you to explore.

Just one click away from running your favorite open-source simulators on the cloud and at scale!

Why not give it a try? Explore our example codes and discover everything our API can offer.

amr-wind

AMR-Wind

cans

CaNS

CP2K

CP2K

dualsphysics

DualSPHysics

Finite Volume Community Ocean Model

FVCOM

fds

FDS

gromacs

GROMACS

GX

GX

nwchem

NWChem

OpenFAST

OpenFAST

openfoam-esi

OpenFOAM (ESI)

openfoam-foundation

OpenFOAM (Foundation)

Quantum ESPRESSO

Quantum ESPRESSO

reef3d

Reef3D

schism

SCHISM

SNL-SWAN

SNL-SWAN

splishsplash

SPlisHSPlasH

swan

SWAN

swash

SWASH

xbeach

XBeach

Request a Simulator

Can't Find Your Simulator?
Get in Touch with Us!

If you can't find your simulator on our page, let us know!

Check out our blog

inductiva API v0.9: New Simulators, Dynamic Disk Resizing

Release news: Inductiva API v0.9 is here!

Discover the latest updates in Inductiva API v0.9, featuring new simulators like NWChem and FVCOM, dynamic disk resizing, dynamic code execution for OpenFOAM, and an enhanced metrics dashboard for better simulation tracking!

Manual to compile FVCOM model simulator, highlighting common issues and solutions for engineers compiling FVCOM on Linux, MacOS and Windows systems.

Compiling FVCOM: A Handy Guide to Solving Common Issues

Struggling to compile FVCOM? Our step-by-step manual tackles common errors and provides solutions for running FVCOM on a modern machine.

Aerodynamic simulation of a race car using OpenFOAM

Transform your Complex Simulations into easy-to-use Python Packages with the Inductiva API

Discover how you can tap into Inductiva API´s functionalities to package and share your complex simulation applications, allowing others to make use of them without requiring in-depth domain knowledge or having to set up their own computational resources.