How nathanrooy/ahmed-bluff-body-cfd works
Project type and purpose
• This is a CFD‐validation repository for the Ahmed bluff‐body geometry, built around OpenFOAM. Its purpose is to provide a standard set of RANS and LES cases (with corresponding meshes, solver settings, and post‐processing) so that users can reproduce or extend automotive/motorsport CFD results.
File structure
• Top level
• README.md – project overview, results tables, instructions
• docs/ – visual assets, e.g. animated gif of flow around the body
• geometry/ – raw STL and FreeCAD source for the Ahmed body at two decklid angles
• openfoam_rans/ – RANS validation case directory
• openfoam_les/ – LES validation case directory
• Each case directory (openfoam_rans & openfoam_les) follows the standard OpenFOAM layout:
• 0/ – initial boundary conditions (U, p, k, ω or ν̃, nut)
• constant/ – mesh surface files (triSurface) + transportProperties, turbulenceProperties
• system/ – controlDict, fvSchemes, fvSolution, snappyHexMeshDict, blockMeshDict, decomposeParDict & post‐processing dicts (forceCoeffs, cuttingPlane, streamLines)
• Allrun & Allclean – shell scripts automating mesh generation, solver launch, parallel decomposition, reconstruction, and post-processing
Key architecture insights from README
• Two parallel workflows:
• RANS (simpleFoam + kOmegaSST) for steady-state solutions
• LES (pisoFoam + SpalartAllmarasDDES) for transient solutions
• Mesh generation is handled by snappyHexMesh (with blockMesh seed) producing ≈8M cells for RANS case
• Post-processing utilities extract aerodynamic coefficients (Cₓ, Cₗ), cutting planes, and streamline images
Detail without overcomplicating
• OpenFOAM directory as a component
• Flow of data from geometry to final aerodynamic coefficients