What mechanism generates heat in a protostar before nuclear fusion begins?

Answer

Gravitational contraction

During the protostar phase, the heat radiated away is purely mechanical energy resulting directly from the intense compression caused by gravity, a process known as Kelvin-Helmholtz contraction.

What mechanism generates heat in a protostar before nuclear fusion begins?
protostarstellar evolutionstar formationastrophysics