Numerical computation of internal and external flows, volume 2: Computational methods for inviscid and viscous flows