The physical dimension of energy is defined as mass times length squared over time squared.
(= Energy-Dimension (* Mass-Dimension (* (Expt Length-Dimension 2) (Expt Time-Dimension -2))))