OpenFOAM Motorbike Example

OpenFOAM is an open source Computation Fluid Dynamics (CFD) solver. It is a C++ toolbox with a large library, allowing for complex models and simulations to be carried out. It also comes with packages to allow parallel computation functionality, which you are able to do easily on Rescale.

This job uses OpenFOAM to calculate the steady flow around a motorcycle and rider. This case changes the number of parallel subdomains based on the number of cores selected for the job. It then decomposes the mesh into parts for each parallel process to solve using decomposePar. simpleFoam is used as the solver for this case, performing steady-state, incompressible RANS calculations over the mesh. After the solve is complete, the mesh and solution is recomposed into a single domain with reconstructPar.

This case runs on 18 cores, with each core solving approximately 20K cells. The solution is run for 2000 steps.

Streamlines colored with velocity magnitude

Streamlines colored with velocity magnitude

Import Job Setup Get Job Results

Simulation Code OpenFOAM 5.0 - simpleFoam
Analysis Type steady-state, incompressible flow
Description Flow around a motorcycle
Suggested Hardware Onyx / 18 cores
sed -i -- "s/numberOfSubdomains .*/numberOfSubdomains $RESCALE_NODES_PER_SLOT;/g" system/decomposeParDict
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runParallel simpleFoam
rm -rf processor*
Estimated Run Time 4 minutes