The paper deals with swirling flow (SF) phenomenon which occurs in fluid flow after local obstacle. The
phenomenon of SF has been considered in many studies, but here is some different approach to this problem.
Based on the theorem of conservation and transfer of energy, a mathematical model of SF was developed in
the form of differential equation which defines the velocity profile. During research, special accent was put on
the following parameters: swirling parameter, swirling intensity, swirling flux and swirling coefficient. Firefly
Algorithm (FA) optimization model, in conjunction with Simulink, was used to get velocity profile vs. time
dependence and to verify the developed model. The diagrams of velocity profile were obtained for variation of
the initial boundary values of given parameters and conclusions were derived upon mathematical model and
simulation of the process