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.

Simulation CodeOpenFOAM 5.0 – simpleFoam
Analysis Typesteady-state, incompressible flow
DescriptionFlow around a motorcycle
Suggested HardwareEmerald / 18 cores
Command
sed -i -- "s/numberOfSubdomains .*/numberOfSubdomains $RESCALE_NODES_PER_SLOT;/g" system/decomposeParDict
. $WM_PROJECT_DIR/bin/tools/RunFunctions
decomposePar
runParallel simpleFoam
reconstructPar
rm -rf processor*
Estimated Run Time4 minutes