Application of dynamically adaptive grids to the analysis of flows with a multiscale structure