⚠️ All commands displayed below assume you are in the directory containing the present README file.
docker pull barbagroup/petibm:0.5.1-GPU-OpenMPI-xenial
nvidia-docker run --rm -it -v $(pwd):/data barbagroup/petibm:0.5.1-GPU-OpenMPI-xenial /data/run.sh
ℹ️
For reference, each simulation completed 2,500 time steps in about 1 hour using
- 4 MPI processes (Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz)
- 1 NVIDIA K40 GPU device
Activate your conda
environment (see instructions):
conda activate petibm-examples
To plot the drag coefficient versus the Reynolds number
python scripts/plot_drag_coefficient.py
We compare the drag coefficient with the correlation from Clift et al. (1978) and the experimental data from Roos & Willmarth (1971).
The figure is saved as a PNG file (drag_coefficient.png
) in the sub-folder figures
on the present directory.
Figure: Drag coefficient on the sphere versus the Reynolds number. Comparison with the correlation from Clift et al. (1978) and the experimental data from Roos & Willmarth (1971).
- Clift, R., Grace, J. R., & Weber, M. E. (1978). Bubbles, drops, and particles–Academic Press. New York, 510.
- Roos, F. W., & Willmarth, W. W. (1971). Some experimental results on sphere and disk drag. AIAA journal, 9(2), 285-291.