Author : Denis Fouchard
This repo hosts the work done on OpenFoam as part of the course Aerodynamics: an experiment of virtual product development (POLI48) at Politecnico di Milano.
Simulation of the flow around the Ahmed body with roofbox
First attempt at improving the roofbox geometry
Credit : Juan Mateos Budiño
Adding a hole in the roofbox
Credit : Juan Mateos Budiño
Shape the roofbox like a shark fin
Credit : Juan Mateos Budiño
Shape the roofbox like a droplet
Credit : Paul Archer
To run the simulation, you need to have OpenFoam installed on your machine. Then, you can run the following commands in the terminal:
openfoam
cd ...
./Allrun.sh
To visualize the results, you can use the following command:
touch a.foam
Then open the file a.foam
with ParaView.
You can run the simulation yourself and get the forces.dat
file from postProcessing/forces/0/forces.dat
to plot the drag coefficient, or use the one provided in the plotting
folder. The plot is done with Python using numpy
, pandas
and matplotlib
.
Credit : Denis Fouchard
Here is an example of the simulation results:
[1] S.R. Ahmed, G. Ramm, Some Salient Features of the Time-Averaged Ground Vehicle Wake, SAE-Paper 840300, 1984.