⚠️ 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 create --name=oscillating -v $(pwd):/data -v $(pwd)/../../cmake-modules:/tmp/cmake-modules barbagroup/petibm:0.5.1-GPU-OpenMPI-xenial
nvidia-docker start oscillating
nvidia-docker exec oscillating /data/build.sh
nvidia-docker exec oscillating /data/run.sh
nvidia-docker stop oscillating
nvidia-docker rm oscillating
ℹ️
For reference, the simulation completed 10,000 time steps in about 50 minutes using
- 2 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
Plot the history of the drag coefficient:
python run/scripts/plot_drag_coefficient.py
The figure is saved as a PNG file (drag_coefficient.png
) in the sub-folder figures
of the simulation directory.
Figure: History of the drag coefficient on an inline oscillating cylinder at Reynolds number
Plot the vertical profiles of the velocity components at different position along the horizontal axis:
python scripts/plot_velocity_profiles.py
The figure is saved as a PNG file (velocity_profiles.png
) in the sub-folder figures
of the simulation directory.
Figure: Vertical profiles of the velocity components (
Plot the vorticity field at phase angles
python scripts/plot_vorticity.py
The figure is saved as a PNG file (vorticity.png
) in the sub-folder figures
of the simulation directory.
Figure: Vorticity field around an inline oscillating cylinder at Reynolds number
Plot the pressure field at phase angles
python scripts/plot_pressure.py
The figure is saved as a PNG file (pressure.png
) in the sub-folder figures
of the simulation directory.
Figure: Pressure field around an inline oscillating cylinder at Reynolds number
- Dütsch, H., Durst, F., Becker, S., & Lienhart, H. (1998). Low-Reynolds-number flow around an oscillating circular cylinder at low Keulegan–Carpenter numbers. Journal of Fluid Mechanics, 360, 249-271.