Dynamics of swirling jets and flames