Analysis of Heat Budget, Dissipation and Frontogenesis in a Shallow Density Current