Discretize the fluid flow equations for conservation of matter, momentum, and energy, and any other relevant physical quantity, and solve them on a computer. Increase the resolution of the simulation until the results converge.
(Then think really hard about the results, supplement the detailed calculations with analytic treatments of simplified analogous cases, etc. But you asked for the most general procedure, and this is it).