Run CFD simulation
The particle trajectory code is capable of being coupled with steady state CFD simulation results, specifically those generated by OpenFOAM. As an example case of CFD simulation, let's copy squareBend case directory from OpenFOAM tutrial by the following command:
cp -r $FOAM_TUTORIALS/compressible/rhoSimpleFoam/squareBend ~/
After that, you should have a squareBend directory on your home directory. The command:
./Allrun
from the created ~/squareBend directory generates a mesh and performs the steady-state CFD simulation (using rhoSimpleFoam solver) with considering compressibility and with turbulent model. It takes couple of minuts to obtain your final result (the gif image below is stopped before done the simulation). The simulation should be done with 156 steps, meaning the directory named 156 is generated under your ~/squareBend/ directory. The detail of this CFD simulation is not discussed here since taht is out of focus in this manual.

Last updated