Fourier modeling of steady and unsteady nonaxisymmetrical flows