Structural evolution and breakage of dense agglomerates in shear flow and Taylor-Green vortex