Which of the following is a form of mechanical energy?
A. Chemical energy
B. Gravitational potential energy
C. Thermal energy
D. Nuclear energy