Numerical simulations using a dynamic solution-adaptive grid algorithm, with applications to unsteady internal flows