Let off steam

Photo of a steam train
The phrase blow off steam or let off steam means to release strong feelings like anger or stress, or to get rid of pent up energy. People might say this when they go to the gym, or if they have bored children inside they take them to the park to blow off some steam.
This idiom came from the time of steam engines, when there was a pressure buildup you had to let some steam out.

He went for a long run to blow off steam after work.