Text this: Algorithms for hydrodynamic and magnetohydrodynamic incompressible internal flows