Hydrodynamic models of transiently heated coronal loops